[ncl-talk] Regional stereographic plot - latitude labels
Adam Phillips
asphilli at ucar.edu
Thu Jan 3 10:55:22 MST 2019
Hi David,
There's a function (add_map_tickmarks2) that you can use embedded in some
of the NCL examples that will add tick mark labels to rectangular
projections. I took mptick example #9 here:
http://www.ncl.ucar.edu/Applications/mptick.shtml#ex9
and modified it to (mostly) match your projection. The script can be run on
its' own and runs quickly, making trial and error less painful. I have
attached the modified script and the resulting graphic.
Hope that helps!
Adam
On Wed, Jan 2, 2019 at 3:08 PM David Hebert, Code 7322 <
david.hebert at nrlssc.navy.mil> wrote:
> I am attempting to make a regional plot using stereographic projection,
> and limit the projection using ‘corners’. I am getting only longitude
> labels along the bottom and left plot boundary. See attached plot.
>
>
>
> The relevant settings I am using in my script are:
>
>
>
> res at mpProjection = "Stereographic"
>
> res at gsnAddCyclic = False
>
> res at mpGridAndLimbOn = True ; turn on lat/lon lines
>
> res at mpPerimOn = False ; turn off box around plot
>
> res at pmTickMarkDisplayMode = "Always" ; turn on ticks
>
>
>
> res at tmYROn = False
>
> res at tmXTOn = False
>
>
>
> res at mpGridLonSpacingF = 15.
>
> res at mpGridLatSpacingF = 2.
>
>
>
> ; set map limits based on tlat,tlon
>
> res at mpLimitMode = "Corners"
>
> res at mpLeftCornerLatF = tlat(0,0)
>
> res at mpLeftCornerLonF = tlon(0,0)
>
> res at mpRightCornerLatF = tlat(nj2-1,ni2-1)
>
> res at mpRightCornerLonF = tlon(nj2-1,ni2-1)
>
> res at mpRelativeCenterLon = True ; set a center lon
>
> res at mpCenterLonF = 180.0
>
> res at mpRelativeCenterLat = True ; set a center lat
>
> res at mpCenterLatF = -90.0 ; center lat
>
>
>
> Any suggestions on how to get the latitude labels on the left axis? Thank
> you for your help!
>
>
>
>
>
> *David A. Hebert*
>
> Oceanography Division, Code 7322
> Naval Research Laboratory
> Stennis Space Center, MS 39529
> (228)688-5846; DSN 828-5846
> http://www.nrl.navy.mil
>
>
> _______________________________________________
> 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
<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190103/b42b88d2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tickmarks.ncl
Type: text/x-ncl
Size: 11231 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190103/b42b88d2/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mptick.png
Type: image/png
Size: 62340 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190103/b42b88d2/attachment.png>
More information about the ncl-talk
mailing list