[ncl-talk] Masking out ocean

Adam Phillips asphilli at ucar.edu
Fri May 22 09:44:07 MDT 2015


Hi Nisha,
Try setting the following:
res at mpFillOn = True
res at mpFillColors = (/-1,0,-1,-1/)    ; fill the ocean white (=0), other
areas = transparent
      ;see
http://www.ncl.ucar.edu/Document/Graphics/Resources/mp.shtml#mpFillColors
res at cnFillDrawOrder = "PreDraw"
res at mpFillDrawOrder = "Draw"
res at mpOutlineDrawOrder = "Draw"
res at cnLineDrawOrder = "PostDraw"
res at mpPerimDrawOrder = "PostDraw"

The various DrawOrder resources shown above may or may not be necessary for
your case. For an overview of the various DrawOrder resources see the NCL
Draw Order Applications page here:
http://www.ncl.ucar.edu/Applications/draworder.shtml

Hope that helps! If not, please respond to ncl-talk.
Adam


On Thu, May 21, 2015 at 7:11 PM, Manisha Ganeshan <
manisha.ganeshan86 at gmail.com> wrote:

> Hi,
>
> Is there a function like *res at cnFillDrawOrder      = "Predraw"*, to draw
> over the ocean (not continent)?.
>
> I really want to mask out the ocean in a coarse (3 degree lat) map. The
> landsea_mask and mask functions don't really help in visualizing coarse
> resolution maps.
>
> Thanks,
> Nisha
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>


-- 
Adam Phillips
Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/   303-497-1726

<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150522/5aa199bc/attachment.html 


More information about the ncl-talk mailing list