<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Kyle,
<div><br>
</div>
<div>I have recently done it this way for a particular area. You’ll probably need to modify the placement of xpos and ypos in the polargrid script.</div>
<div> </div>
<div>'map nps '<br>
'set lat 58 66'<br>
'set lon 116 136’</div>
<div>(do your mapping here)</div>
<div><br>
</div>
<div>'set gxout contour'<br>
'interval 58 66 2'<br>
'set ccolor 1'<br>
'set cstyle 5'<br>
'set cthick 3'<br>
'set clab off'<br>
'd lat'<br>
'interval 116 136 4'<br>
'set ccolor 1'<br>
'set cstyle 5'<br>
'set cthick 3'<br>
'set clab off'<br>
'd lon'<br>
'polargrid 116 136 4 58 66 2’<br>
<br>
</div>
<div>polargrid.gs is</div>
<div>* * * * * * * * * * * * * * * * * * * * * * * * * *<br>
* Draws grid lines at specified intervals<br>
* call is<br>
* polargrid lonmin lonmax lonincr latmin latmax latincr<br>
function polargrid(args)<br>
* parse arguments<br>
lonmin = subwrd(args,1)<br>
lonmax = subwrd(args,2)<br>
lonincr = subwrd(args,3)<br>
latmin = subwrd(args,4)<br>
latmax = subwrd(args,5)<br>
latincr = subwrd(args,6)<br>
<br>
midlat = (latmax+latmin)/2<br>
quarterlat = (latmax+midlat)/2<br>
'q dims'<br>
xline = sublin(result,2)<br>
yline = sublin(result,3)<br>
lonstart = subwrd(xline,6)<br>
lonend = subwrd(xline,8)<br>
midlon = (lonstart+lonend)/2<br>
*midlon = (lonmax+lonmin)/2<br>
istart=latmin<br>
while (istart <=latmax)<br>
'q w2xy 'midlon' ' istart<br>
xpos=subwrd(result,3)<br>
ypos=subwrd(result,6)<br>
'draw string 'xpos' 'ypos' 'istart<br>
istart=istart+latincr<br>
endwhile<br>
istart=lonmin<br>
while (istart <=lonmax)<br>
'q w2xy 'istart' ' quarterlat+0.5<br>
xpos=subwrd(result,3)<br>
ypos=subwrd(result,6)<br>
'draw string 'xpos' 'ypos' 'istart<br>
istart=istart+lonincr<br>
endwhile<br>
return<br>
*********************************</div>
<div>interval.gs is</div>
<div>
<div>*********************************</div>
</div>
<div><br>
</div>
<div>function interval(arg)<br>
*limitation that you must know for sure the start & end will be correct with the interval<br>
if (arg = '')<br>
say 'Enter Min Max and interval'<br>
pull cmdline<br>
else<br>
cmdline=arg<br>
endif<br>
min=subwrd(cmdline,1)<br>
max=subwrd(cmdline,2)<br>
int=subwrd(cmdline,3)<br>
<br>
number=(max-min)/int+1<br>
lev = min<br>
<br>
i=1<br>
while (i <= number-1)<br>
next = min+int*i<br>
lev = lev%' '%next<br>
i=i+1<br>
endwhile<br>
<br>
'set clevs ' lev</div>
<div>
<div>*********************************</div>
</div>
<div><br>
</div>
<div>Colleen</div>
<div><br>
</div>
<div>
<div>
<div>On Sep 11, 2014, at 6:29 PM, Kyle Clem <<a href="mailto:Kyle.Clem@vuw.ac.nz">Kyle.Clem@vuw.ac.nz</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div fpstyle="1" ocsi="0" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<div style="direction: ltr; font-family: Tahoma; font-size: 10pt;">Hi Everyone,
<div><br>
</div>
<div>I am trying to display lat/lon labels on a polar stereographic map projection. Does anyone know how to do this?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Kyle <br>
<div><br>
<div style="font-family: Tahoma; font-size: 13px;">
<div style="font-family: Tahoma; font-size: 13px;">
<div style="margin-top: 0px; margin-bottom: 0px; font-weight: bold; background-color: rgb(255, 255, 255);">
<span style="font-family: 'Monotype Corsiva';"><font class="Apple-style-span" color="#000080" size="4">----------------------<br>
</font></span></div>
<div style="margin-top: 0px; margin-bottom: 0px; font-weight: bold; background-color: rgb(255, 255, 255);">
<span style="font-family: 'Monotype Corsiva';"><font class="Apple-style-span" color="#000080" size="4">Kyle Clem, M.Sc.</font></span></div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">
<font face="Tahoma, Geneva, sans-serif" size="2">PhD Student</font></div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">
<font face="Tahoma, Geneva, sans-serif" size="2">School of Geography, Environment and Earth Sciences</font></div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">
<font face="Tahoma, Geneva, sans-serif" size="2">Victoria University of Wellington</font></div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">
<font face="Tahoma, Geneva, sans-serif" size="2">Cotton Building, Room 222</font></div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">
<font face="Tahoma, Geneva, sans-serif" size="2"><a href="mailto:kyle.clem@vuw.ac.nz">kyle.clem@vuw.ac.nz</a></font></div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a></div>
</blockquote>
</div>
<br>
</div>
</body>
</html>