Re: mask the ocean out in overlay plot

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Mon Nov 12 2012 - 09:56:29 MST

The NCL website is down, so I cannot confirm this, but I believe the
default ocean fill color is set to -1 (=transparent) and the default
land fill color is gray. Try adding these two resources:

mpres@mpOceanFillColor = "white"
mpres@mpLandFillColor = -1

If that doesn't work please respond to ncl-talk.
Adam

On 11/09/2012 03:25 PM, astroqing wrote:
> Hi,
> I want to draw a figure with shading, contour line, wind vectors and
> map overlaid together. Besides I still want to mask the ocean out.
> I tried as follows, but it failed and returned a empty figure. So I am
> writing for help! Thanks a lot.
> mpres@mpOutlineSpecifiers <mailto:mpres@mpOutlineSpecifiers> =
> (/"China:states","India","Nepal","Bhutan","Bangladesh","Myanmar", \
> "Thailand","Cambodia","Vietnam","Taiwan"/)
> mpres@mpFillDrawOrder <mailto:mpres@mpFillDrawOrder> = "Postdraw"
> rvres@cnFillDrawOrder <mailto:rvres@cnFillDrawOrder> = "Predraw"
> resV@vcVectorDrawOrder <mailto:resV@vcVectorDrawOrder> = "Draw"
> rv_cl = gsn_csm_contour(wks_cl,rvox(:,:),rvres)
> rv_bw = gsn_csm_contour(wks_bw,rvox(:,:),rvres)
> v_cl = gsn_csm_vector(wks_cl,ux(:,:),vx(:,:),resV)
> v_bw = gsn_csm_vector(wks_bw,ux(:,:),vx(:,:),resV)
> plot_cl = gsn_csm_map(wks_cl,mpres)
> plot_bw = gsn_csm_map(wks_bw,mpres)
> overlay(plot_bw,v_bw)
> overlay(plot_cl,v_cl)
> overlay(plot_bw,rv_bw)
> overlay(plot_cl,rv_cl)
> 2012-11-10
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
______________________________________________________________
Adam Phillips                                asphilli@ucar.edu
NCAR/Climate and Global Dynamics Division       (303) 497-1726
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Nov 12 09:56:45 2012

This archive was generated by hypermail 2.1.8 : Tue Nov 13 2012 - 14:27:24 MST