<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Andrew,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Take a look at the first example on this page:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style=""><a href="http://www.ncl.ucar.edu/Applications/native.shtml">http://www.ncl.ucar.edu/Applications/native.shtml<br></a></div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">As a first cut, I would download the native_1.ncl script, and add these lines to read some data:</div><div class="gmail_default" style=""><font face="monospace, monospace"><br></font></div><div class="gmail_default" style=""><font face="monospace, monospace"> f = addfile("<a href="http://nws_precip_ak_20160221.nc">nws_precip_ak_20160221.nc</a>","r")</font></div><div class="gmail_default" style=""><font face="monospace, monospace"> lat_corners = f->lat</font></div><div class="gmail_default" style=""><font face="monospace, monospace"> lon_corners = f->lon</font></div><div class="gmail_default" style=""><font face="monospace, monospace"> true_lat = f->true_lat</font></div><div class="gmail_default" style=""><font face="monospace, monospace"> true_lon = f->true_lon</font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif">and then change the following resource values as follows:</font></div><div class="gmail_default" style=""><font face="monospace, monospace"><br></font></div>
<div class="gmail_default" style=""><div class="gmail_default"><font face="monospace, monospace">; The following resources are Required to plot this projection correctly</font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><font face="monospace, monospace"> res@mpProjection = "Stereographic" ; projection</font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><font face="monospace, monospace"> res@mpLimitMode = "Corners" ; method to zoom</font></div><div class="gmail_default"><font face="monospace, monospace"> res@mpLeftCornerLatF = lat(0)</font></div><div class="gmail_default"><font face="monospace, monospace"> res@mpLeftCornerLonF = lon(0)</font></div><div class="gmail_default"><font face="monospace, monospace"> res@mpRightCornerLatF = lat(2)</font></div><div class="gmail_default"><font face="monospace, monospace"> res@mpRightCornerLonF = lon(2)</font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><font face="monospace, monospace"> res@mpRelativeCenterLon = True ; set a center lon</font></div><div class="gmail_default"><font face="monospace, monospace"> res@mpCenterLonF = true_lon ; center lon</font></div><div class="gmail_default"><font face="monospace, monospace"> res@mpRelativeCenterLat = True<span style="white-space:pre"> </span> ; set a center lat</font></div><div class="gmail_default"><font face="monospace, monospace"> res@mpCenterLatF = true_lat ; center lat</font></div><div class="gmail_default"><font face="monospace, monospace"> res@tfDoNDCOverlay = True </font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">The one thing I'm not sure about is whether the fact that your file says "polar stereographic" is going to make a difference. You could also set this to get a polar plot:</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace"> res@mpEllipticalBoundary = True</font></div><div><font face="monospace, monospace"><br></font></div></div><div class="gmail_default">
<p class="">--Mary</p><p class=""><br></p></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 20, 2016 at 10:43 AM, Andrew Kren - NOAA Affiliate <span dir="ltr"><<a href="mailto:andrew.kren@noaa.gov" target="_blank">andrew.kren@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear ncl-talk,<div><br></div><div>I am trying to plot precipitation data of radar and station data from the NWS. It is in netcdf form. When I read in the data, the array of precipitation is two dimensional as expected in (lat,lon). However, there are no lat/lon coordinate arrays in the netcdf file. It only gives me the 4 corners of the lon / lat grid. I am sending the filedump of the netcdf file so you can see the format. </div><div><br></div><div>Is there a way in ncl to plot the data on a map without the given coordinate arrays?</div><div><br></div><div>Thanks,<span class="HOEnZb"><font color="#888888"><br><div><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>Andrew Kren, PhD<br>
Research Scientist I, Global Observing Systems Analysis (GOSA) Group<br>
NOAA ESRL Global Systems Division (Rm 3C515)<br>
325 Broadway, Boulder, CO 80305<br>
<a href="tel:%28303%29%20497-5418" value="+13034975847" target="_blank">(303) 497-5418</a><span><font color="#888888"><br>
</font></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></font></span></div></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>