[ncl-talk] mask ocean areas
Sri Nandini
snandini at marum.de
Tue Mar 6 05:21:38 MST 2018
Hello
Here i attach a plot using the same method as in mask_5.ncl example==>HOWEVER, the landsea.nc mask is quite coarse and covers large grid points.
Is there a landsea mask available for 1x1 resolution?
On Mar 5, 2018 11:06:13 PM, Dennis Shea wrote:
> Further ....
>
> NCL is distributed with a simple 1x1 global mask. This may be adequate for your needs.
>
> https://www.ncl.ucar.edu/Applications/mask.shtml
> Example 5
>
> ----
> https://www.ncl.ucar.edu/Document/Functions/Shea_util/landsea_mask.shtml
>
> The function indicates that multiple libraries must be loaded.
> However, if you have 6.2.0 onward these libraries are automatically loaded.
>
> ---
> Good luck
> On Mon, Mar 5, 2018 at 1:58 PM, Adam Phillips > <> asphilli at ucar.edu> >> wrote:
> > Hi Sri,
> > > > To add to Mary's reply you can also tell NCL to color fill the ocean basins last, thereby applying a graphical mask. > > Example:
> > res at mpFillOn = True
> > > > res at mpFillColors = (/-1,0,-1,-1/) ; set ocean to white, see: > > http://www.ncl.ucar.edu/Document/Graphics/Resources/mp.shtml#mpFillColors
> > > > res at mpFillDrawOrder = "PostDraw" ; do the map fill
> > res at mpPerimDrawOrder = "PostDraw" ; and perimeter draw last
> > > > res at mpOutlineDrawOrder = "Draw" ; draw the map outlines second
> > > > res at cnFillDrawOrder = "PreDraw" ; draw the color-filled contours first
> >
> >
> > Adam
> >
> > On Mon, Mar 5, 2018 at 1:06 PM, Mary Haley > > <> > haley at ucar.edu> > >> > wrote:
> > > Hi,
> > >
> > > Please see our masking examples at:
> > >
> > > http://www.ncl.ucar.edu/Applications/mask.shtml
> > > In particular, you may want to look at example mask_5.ncl which uses the landsea_mask function, or example mask_12.ncl which uses a shapefile to do the masking.
> > >
> > > --Mary
> > >
> > >
> > > On Mon, Mar 5, 2018 at 9:50 AM, Sri Nandini > > > <> > > snandini at marum.de> > > >> > > wrote:
> > > > Hello
> > > >
> > > > I am trying to mask out ocean areas in my plot.
> > > > Could someone please help me out with this? Is there mask data i can download from NCL?
> > > >
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > >
ncl-talk mailing list
> > > > ncl-talk at ucar.edu
> > > >
List instructions, subscriber options, unsubscribe:
> > > > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> > > >
> > >
> > > _______________________________________________
> > >
ncl-talk mailing list
> > > ncl-talk at ucar.edu
> > >
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> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > >
> > > >
> > _______________________________________________
> >
ncl-talk mailing list
> > ncl-talk at ucar.edu
> >
List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180306/2e88654a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mask.png
Type: image/png
Size: 178216 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180306/2e88654a/attachment.png>
More information about the ncl-talk
mailing list