<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">Sorry about the delay in response. I've been in meetings for the last few days and only now catching up.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">To help see where you are on the map, you can turn on special map tickmarks:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">res@pmTickMarkDisplayMode = "Always"</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Without your data, I can't really say for certain if you are doing things correctly. But even with the data file, this is sometimes a guessing game.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If this data file came with documentation, then they may have included some information about where to get the actual lat/lon coordinates of your data. Sometimes they are provided on another file, or they might have a way to calculate them. You can then use this information to plot your data using real lat/lon coordinates, and compare it to your "native" plot.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 25, 2016 at 12:17 PM, 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">Mary,<div>I added your suggestions but my plots look a little confusing. I'm not sure whether the region is plotted correctly since I can't tell where the U.S. is or Alaska.</div><div><br></div><div>Any suggestions as to what may be going on? I attached my figure and my code. Thanks.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 20, 2016 at 11:44 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">Thanks Mary. I also just noticed on their website that they have a C-program that will convert the netcdf data to binary with lat lon info. But this might also work. Thanks!</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 20, 2016 at 11:36 AM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</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"><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"><a href="http://www.ncl.ucar.edu/Applications/native.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/native.shtml<br></a></div><div class="gmail_default"><br></div><div class="gmail_default">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"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><font face="monospace, monospace"> f = addfile("<a href="http://nws_precip_ak_20160221.nc" target="_blank">nws_precip_ak_20160221.nc</a>","r")</font></div><div class="gmail_default"><font face="monospace, monospace"> lat_corners = f->lat</font></div><div class="gmail_default"><font face="monospace, monospace"> lon_corners = f->lon</font></div><div class="gmail_default"><font face="monospace, monospace"> true_lat = f->true_lat</font></div><div class="gmail_default"><font face="monospace, monospace"> true_lon = f->true_lon</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">and then change the following resource values as follows:</font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div>
<div class="gmail_default"><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-wrap"> </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>--Mary</p><p><br></p></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><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><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></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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>
</blockquote></div><br><br clear="all"><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>
</div></div></blockquote></div><br><br clear="all"><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>
</div></div></blockquote></div><br></div>