[ncl-talk] Regional stereographic plot - latitude labels
David Hebert, Code 7322
david.hebert at nrlssc.navy.mil
Thu Jan 3 11:53:46 MST 2019
Hi Adam,
Works great, thank you! I put the add_map_tickmarks2 function in its own .ncl file and load it at the top of my plotting script. Makes it easier to use with other plotting scripts.
Thank you!
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 <http://www.nrl.navy.mil/>
From: Adam Phillips <asphilli at ucar.edu>
Sent: Thursday, January 03, 2019 11:55
To: David Hebert, Code 7322 <david.hebert at nrlssc.navy.mil>
Cc: ncl-talk at ucar.edu
Subject: Re: [ncl-talk] Regional stereographic plot - latitude labels
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 <mailto: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 <http://www.nrl.navy.mil/>
_______________________________________________
ncl-talk mailing list
ncl-talk at ucar.edu <mailto: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/ <http://www.cgd.ucar.edu/staff/asphilli/> 303-497-1726
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190103/d3d79a4e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5490 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190103/d3d79a4e/attachment.p7s>
More information about the ncl-talk
mailing list