<div dir="ltr">Alan,<div><br></div><div>From your code sample, it appears that you are trying to make plots from data with attached 2-D coordinates. It is important that the attached 2-D coordinate variables, lat and lon, are correctly preserved through every processing stage.<br>
<br>It looks like you may have more than one problem. In particular, the 2-D coordinate variables need special handling in NCL. At minimum, you need the following lines to correctly associate the 2-D coordinates with the data variable to be plotted:<br>
<br> SNOWLIQ@lat2d = lat<br> SNOWLIQ@lon2d = lon<br><br>If that doesn't work, then try a more general debugging approach. Begin with a known working plot script for Daymet data with 2-D coordinate variables, and an original Daymet data file. Example daymet_1 from this page is a good starting point:<br>
<br> <a href="http://www.ncl.ucar.edu/Applications/daymet.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/daymet.shtml</a><br><br>Get this example working with one of your original Daymet files. Then try the example with the output from each of your CDO and NCO processing stages.<br>
</div><div><br></div><div>It should never be necessary to flip the lat or lon coordinate variables in any stage that you described. Doing so may introduce additional problems. I can not explain why ncview displays the original data flipped, but that is beyond the scope of this forum.</div>
<div><br></div><div>--Dave</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 25, 2014 at 11:59 AM, Alan Rhoades <span dir="ltr"><<a href="mailto:alan.m.rhoades@gmail.com" target="_blank">alan.m.rhoades@gmail.com</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">Hello,<div><br></div><div>I've been trying to analyze several Lambert Conformal Projection datasets including: DayMet 1km and NARR 32km.</div>
<div><br></div><div>Prior to running my DayMet NCL script (see attached), I post-processed the data using CDO and NCO to first split the yearly datasets into monthly datasets (splitmon in CDO) and then create monthly average datasets (ncra in NCO). I do a similar methodology for the NARR dataset too.<br clear="all">
<div><br></div><div>For a while, I would get error messages from my NCL script indicating this:</div><div><br></div><div>"check_for_y_lat_coord: Warning: Data either does not contain a valid latitude coordinate array or doesn't contain one at all.</div>
<div>(0) A valid latitude coordinate array should have a 'units' attribute equal to one of the following values:"</div><div><br></div><div>So, I added metadata assignments to my script to get around this error and now the NCL script finishes (with no errors) and generates the *.eps file. However, the file is only 2.2 KB and is only a blank white box (see attached).</div>
<div><br></div><div>Note: In the DayMet NCL script I have to flip the lat and lon indices for the SNOWLIQ variable because when I ncview the data it is a mirror image of what I actually want (might be a function of the CDO post-processing step). In my NARR dataset NCL script, I don't do this step, but still get a similar outcome with a blank page and 2.2 KB *.eps file.</div>
<div><br></div><div>Any ideas as to what is going on?</div><div><br></div><div>Here are my environmental specifics too:</div><div><div>-NCAR Command Language Version 6.1.2</div></div><div>-Each Daymet file = 282 MB, so unfortunately I won't be able to attach the one specified in the NCL script</div>
<div>-Linux farm 3.11.0-20-generic #35-Ubuntu SMP Fri May 2 21:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux</div><div><br></div><div>All the best,</div><div><br></div><div>AR </div><span class="HOEnZb"><font color="#888888">-- <br>
<div dir="ltr"><font color="#006600"><div style="font-weight:bold">
<br></div><div><font color="#006600" size="4"><b>Alan Rhoades</b></font></div></font><div><div><b><font color="#000000">PhD Student, Atmospheric Science Graduate Group</font></b></div><div><b><font color="#000000">Climate Change Water and Society (CCWAS) NSF IGERT Trainee</font></b></div>
<div><b><font color="#000000">University of California, Davis</font></b></div><div><span style="font-family:arial,sans-serif;background-color:rgb(255,255,255)"><u><b><font><a href="mailto:alan.m.rhoades@gmail.com" target="_blank">alan.m.rhoades@gmail.com</a> </font></b></u></span></div>
<div><span style="font-family:arial,sans-serif;background-color:rgb(255,255,255)"><u><a href="mailto:amrhoades@ucdavis.edu" target="_blank"><b><font>amrhoades@ucdavis.edu</font></b></a></u></span></div><div><font color="#000000"><b>(530)-210-8344</b></font></div>
</div><div><font color="#003300"><b><br></b></font></div><div><b><i><font color="#006600">"It’s all really there. That’s what really gets you. But you gotta stop and think about it to really get the pleasure about the complexity, the inconceivable nature of nature."</font></i></b></div>
<div><b><i><font color="#006600">Richard Feynman</font></i></b></div></div>
</font></span></div></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>