[ncl-talk] New York Map issue(s)
Rick Brownrigg
brownrig at ucar.edu
Fri Feb 17 15:24:58 MST 2017
Hi Nicholas,
Yes, you are right about the western border issue: attached is a plot
showing NCL's border (in white), and the Shapefile's border (in red).
(this map was very quickly put together, please ignore the lack of
esthetics). I'm not sure we can do anything about that in the short term.
I'll file a bug report.
As for the second issu, the docs do explicitly state that NCL's builtin
masking functions do not work with the HighRes/RANGS map databases.
However, for both purposes, state boundaries and masking, you might want to
consider using a shapefile as a source. Check out the examples page for
both a link to a good source of shapefiles, GADM, and for examples of how
to use them to perform masking.
http://ncl.ucar.edu/Applications/shapefiles.shtml
Hope this helps...
Rick
On Fri, Feb 17, 2017 at 8:59 AM, Bassill, Nicholas <nbassill at albany.edu>
wrote:
> Hi All,
> New subscriber, so bear with me here. Two things - (1) a likely bug,
> and (2) a question. I'm using NCL 6.3.
>
>
> (1) It appears that the state boundaries for New York are slightly off in
> the far western boundary. I'm attaching an image (NY.png) that plots the
> state of NY, but with data that is specifically limited by the *actual*
> western border to demonstrate this.
>
>
> The relevant map settings are:
>
>
> res at mpDataBaseVersion = "Ncarg4_1"
> res at mpDataSetName = "Earth..4"
> res at mpFillAreaSpecifiers = (/"Land", "Land:North America:United
> States:Conterminous US:New York","Water"/)
> res at mpSpecifiedFillColors = (/"white","transparent", "white"/)
> res at mpInlandWaterFillColor = 238
> res at mpLandFillColor = -1 ; transparent
> res at mpOutlineOn = True
> res at mpMaskOutlineSpecifiers = (/"Land"/)
> res at mpOutlineSpecifiers = (/ "Land:North America:United
> States:Conterminous US:New York"/)
> res at mpDataBaseVersion = "MediumRes"
>
>
> (2) Partially based off of that, and in an effort to have a more detailed
> coastline, I decided to try the "HighRes" dataset. However, I am not able
> to successfully do any masking. In this case I want *only* a fill in the
> shape of NY. For this I'm attaching the dataset I'm using
> (currenttemp.dat), the script I'm using (temp.ncl, based largely on
> http://www.ncl.ucar.edu/Applications/Scripts/mask_8.ncl for the mask),
> and a sample image (current.png).
>
> Any help with (2) would be greatly appreciated!
>
>
> Nick Bassill, PhD
>
> Modeler & Meteorologist, New York State Mesonet
>
> LC SB-28, 1400 Washington Ave.,
>
> SUNY, University at Albany, NY 12222
> (518) 442-6375
>
> http://nysmesonet.org/
>
> _______________________________________________
> 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/20170217/89bb04c9/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NCLvsShapefile.png
Type: image/png
Size: 27719 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170217/89bb04c9/attachment.png
More information about the ncl-talk
mailing list