<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi Zilore,<br><br>I am not expert in NCL, but just a user.<br><br>I think the error is coming from the fact that NCL is case sensitive.<br><br>There is difference between <span style="color: rgb(255, 0, 0);">Air</span> and <span style="color: rgb(255, 0, 0);">air</span>.<br><br>If you type <span style="color: rgb(128, 0, 255);">ncdump -h AirTempFeb11.nc</span> (outside NCL) or <span style="color: rgb(128, 0, 255);">ncl_filedump AirTempFeb11.nc</span>&nbsp; you can see that in your file coming from NCEP the variable is <span style="color: rgb(255, 0, 127);">air</span>.<br><br>Change <br>Air=f1-&gt;Air <br>to<br>Air=f1-&gt;air<br><br>Regards<br><br><br>--- En date de&nbsp;: <b>Ven 25.3.11, zilore mumba <i>&lt;zmumba@yahoo.com&gt;</i></b> a écrit&nbsp;:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>De:
 zilore mumba &lt;zmumba@yahoo.com&gt;<br>Objet: [ncl-talk] Assist with Addfile and lat = f1--&gt;laat<br>À: ncl-talk@ucar.edu<br>Date: Vendredi 25 mars 2011, 7h52<br><br><div class="plainMail">Definition of lat/lon in a file.<br>With Excuses on people's time with a very basic problem I have, I<br>would like to request once more if someone can spare some of their<br>time to look at my definition of lat/lon in the native_2.ncl ncl script.<br>1. I have binary data (not GRIB, but written into binary by fortran)<br>converted through Grads (Lats4d) into NetCdf. Both the original binary<br>file and the NetCdf versions work in Grads but not in ncl. I assumed<br>it did not work because the file was binary (not GRIB).<br>2. I took model output data in GRIB and made a ctl with grib2ctl and<br>converted to NetCdf in Grads. It does not work in ncl.<br>3. I downloaded 850hPa temperature data (in NetCdf format) from the<br>NCEP reanalysis page. It does not work in
 ncl, but works in Grads.<br>In all the three cases above the error is the same, as below<br>**************<br>&nbsp;Copyright (C) 1995-2010 - All Rights Reserved<br>&nbsp;University Corporation for Atmospheric Research<br>&nbsp;NCAR Command Language Version 5.2.1<br>&nbsp;The use of this software is governed by a License Agreement.<br>&nbsp;See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>fatal:Either file (f1) isn't defined or variable (Air) is not a<br>variable in the file<br>fatal:Execute: Error occurred at or near line 20 in file native_2.ncl<br>***********************************<br>Here is how I introduced the file<br>!!!!!!!!!<br>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br>;*****************************************************<br>begin<br>&nbsp;f1 = addfile("AirTempFeb11.nc","r")<br>&nbsp;Air=f1-&gt;Air<br>&nbsp;lat =
 f1-&gt;lat<br>&nbsp;lon = f1-&gt;lon<br>&nbsp;lat_len = dimsizes(lat)<br>&nbsp;lon_len = dimsizes(lon)<br>; time = f1-&gt; time<br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br>I would appreciate assistance, where am I making the mistake?<br>Appreciation<br>Zilore<br><br><br><br>&nbsp; &nbsp; &nbsp; <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></div></blockquote></td></tr></table><br>