<div>Hi Zilore </div>
<div> </div>
<div>I guess you need to check your path for adding the file. It may be something like this:</div>
<div> </div>
<div><strong>in1=addfile("/mnt/storage-space/disk1/lshl/AirTempFeb11.nc","r")<br></strong></div>
<div><strong></strong> </div>
<div><strong>the path need to be specified like above so that ncl can find the file.</strong></div>
<div><strong>hope this helps</strong></div>
<div><strong></strong> </div>
<div><strong>Rashed</strong></div>
<div><br></div>
<div class="gmail_quote">On Fri, Mar 25, 2011 at 2:45 PM, Zilore Mumba <span dir="ltr"><<a href="mailto:zmumba@gmail.com">zmumba@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">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 ncl scripts attached.<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><br>In all the three cases above the error is the same, as below<br>**************<br>
Copyright (C) 1995-2010 - All Rights Reserved<br> University Corporation for Atmospheric Research<br> NCAR Command Language Version 5.2.1<br> The use of this software is governed by a License Agreement.<br> 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><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> f1 = addfile("AirTempFeb11.nc","r")<br>
Air=f1->Air<br><br> lat = f1->lat<br> lon = f1->lon<br> lat_len = dimsizes(lat)<br> lon_len = dimsizes(lon)<br>; time = f1-> time<br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br><br>I would appreciate assistance, where am I making the mistake?<br>
Appreciation<br>Zilore<br><br><br>On Mon, Mar 21, 2011 at 6:49 PM, <<a href="mailto:gradsusr-request@gradsusr.org">gradsusr-request@gradsusr.org</a>> wrote:<br>> Send gradsusr mailing list submissions to<br>> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
><br>> To subscribe or unsubscribe via the World Wide Web, visit<br>> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>> or, via email, send a message with subject or body 'help' to<br>
> <a href="mailto:gradsusr-request@gradsusr.org">gradsusr-request@gradsusr.org</a><br>><br>> You can reach the person managing the list at<br>> <a href="mailto:gradsusr-owner@gradsusr.org">gradsusr-owner@gradsusr.org</a><br>
><br>> When replying, please edit your Subject line so it is more specific<br>> than "Re: Contents of gradsusr digest..."<br>><br>><br>> Today's Topics:<br>><br>> 1. WRF output (Dr.Gamal El Afandi)<br>
> 2. Re: WRF output (hachelaf rabah)<br>> 3. Regards Recipe-020: Spaghetti and Box-and-whisker plots and<br>> sorting in Grads (Becker, Bernd)<br>> 4. Re: Regards Recipe-020: Spaghetti and Box-and-whisker plots<br>
> and sorting in Grads (Jennifer Adams)<br>> 5. Re: curvilinear data (Jennifer Adams)<br>><br>><br>> ----------------------------------------------------------------------<br>><br>> Message: 1<br>
> Date: Fri, 18 Mar 2011 13:11:03 -0700 (PDT)<br>> From: "Dr.Gamal El Afandi" <<a href="mailto:gamalafandy@yahoo.com">gamalafandy@yahoo.com</a>><br>> Subject: [gradsusr] WRF output<br>> To: <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
> Message-ID: <<a href="mailto:144313.75860.qm@web113403.mail.gq1.yahoo.com">144313.75860.qm@web113403.mail.gq1.yahoo.com</a>><br>> Content-Type: text/plain; charset="iso-8859-1"<br>><br>> Hi All,<br>
> Could you please let me know if anyone has some scripts to visualize wrf output.<br>> ?<br>> With my kind regards<br>> Gamal<br>> _____________________________________________________<br>> Dr.Gamal Salah El Afandi,Postdoctoral Fellow.<br>
> Data to Insight Center?of Pervasive Technology Institute<br>> Indiana University Bloomington USA<br>> 2719 E 10th St.<br>> Innovation Center<br>> Room 130C.?<br>> Bloomington, IN ?47408,USA<br>> Phone:+1 812-856-1953<br>
> Fax:?+1 812-856-1735<br>> ?<br>> <a href="http://www.indiana.edu/" target="_blank">http://www.indiana.edu</a>.<br>> <a href="http://pervasivetechnologylabs.iu.edu/d2i/people" target="_blank">http://pervasivetechnologylabs.iu.edu/d2i/people</a><br>
> ?<br>> Al Azhar?University<br>> Faculty of science?at Cairo?<br>> Department of Astronomy and Meteorology<br>> Nasr City,Postal Code 11884<br>> Cairo,Egypt<br>> <a href="http://www.uazhar.edu.eg/astmet/Gamal.htm" target="_blank">http://www.uazhar.edu.eg/astmet/Gamal.htm</a><br>
> <a href="http://www.itap.purdue.edu/pto/NATO_KEEO/partCoDir_en.html" target="_blank">http://www.itap.purdue.edu/pto/NATO_KEEO/partCoDir_en.html</a><br>> <a href="http://www.ucar.edu/governance/iap/iapreps.shtml" target="_blank">http://www.ucar.edu/governance/iap/iapreps.shtml</a><br>
> Tel. 0020238701259 Home???Tel. 0020222618163 Work<br>> Tel. 0020103770593 Cell??????Fax 0020222629356 Work<br>> ________________________________________________________<br>><br>><br>><br>><br>> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>> URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20110318/06a13ef9/attachment-0001.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20110318/06a13ef9/attachment-0001.html</a><br>
><br>> ------------------------------<br>><br>> Message: 2<br>> Date: Fri, 18 Mar 2011 22:34:48 +0100<br>> From: hachelaf rabah <<a href="mailto:r.hachelaf@gmail.com">r.hachelaf@gmail.com</a>><br>> Subject: Re: [gradsusr] WRF output<br>
> To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>> Message-ID:<br>> <AANLkTinsONf81SQ9=<a href="mailto:FdXLUaWu%2BWepBXXBieyrf6OAPO5@mail.gmail.com">FdXLUaWu+WepBXXBieyrf6OAPO5@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset=ISO-8859-1<br>><br>> Hello Dr.Gamal<br>><br>> you can use ARWpost to generat .ctl and .data files<br>> or with WPPV3 to convert netcdf WRF output to grib format and plot it<br>
> also with GRADS.<br>> So what parameters you want to visualize.<br>><br>><br>> 2011/3/18, Dr.Gamal El Afandi <<a href="mailto:gamalafandy@yahoo.com">gamalafandy@yahoo.com</a>>:<br>>> Hi All,<br>
>> Could you please let me know if anyone has some scripts to visualize wrf<br>>> output.<br>>><br>>> With my kind regards<br>>> Gamal<br>>> _____________________________________________________<br>
>> Dr.Gamal Salah El Afandi,Postdoctoral Fellow.<br>>> Data to Insight Center of Pervasive Technology Institute<br>>> Indiana University Bloomington USA<br>>> 2719 E 10th St.<br>>> Innovation Center<br>
>> Room 130C.<br>>> Bloomington, IN 47408,USA<br>>> Phone:+1 812-856-1953<br>>> Fax: +1 812-856-1735<br>>><br>>> <a href="http://www.indiana.edu/" target="_blank">http://www.indiana.edu</a>.<br>
>> <a href="http://pervasivetechnologylabs.iu.edu/d2i/people" target="_blank">http://pervasivetechnologylabs.iu.edu/d2i/people</a><br>>><br>>> Al Azhar University<br>>> Faculty of science at Cairo<br>
>> Department of Astronomy and Meteorology<br>>> Nasr City,Postal Code 11884<br>>> Cairo,Egypt<br>>> <a href="http://www.uazhar.edu.eg/astmet/Gamal.htm" target="_blank">http://www.uazhar.edu.eg/astmet/Gamal.htm</a><br>
>> <a href="http://www.itap.purdue.edu/pto/NATO_KEEO/partCoDir_en.html" target="_blank">http://www.itap.purdue.edu/pto/NATO_KEEO/partCoDir_en.html</a><br>>> <a href="http://www.ucar.edu/governance/iap/iapreps.shtml" target="_blank">http://www.ucar.edu/governance/iap/iapreps.shtml</a><br>
>> Tel. 0020238701259 Home Tel. 0020222618163 Work<br>>> Tel. 0020103770593 Cell Fax 0020222629356 Work<br>>> ________________________________________________________<br>>><br>>><br>>><br>
>><br>><br>><br>> --<br>> Cordialement,<br>> Best regards,<br>> Rabah Hachelaf<br>><br>> ______<br>> ( )<br>> ( )<br>> (________)<br>> /////////<br>
><br>><br>> ------------------------------<br>><br>> Message: 3<br>> Date: Mon, 21 Mar 2011 15:45:13 -0000<br>> From: "Becker, Bernd" <<a href="mailto:bernd.becker@metoffice.gov.uk">bernd.becker@metoffice.gov.uk</a>><br>
> Subject: [gradsusr] Regards Recipe-020: Spaghetti and Box-and-whisker<br>> plots and sorting in Grads<br>> To: "GrADS Users Forum" <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
> Message-ID:<br>> <<a href="mailto:E209E2066317644FB35E5AA0E8C1FB7F29EF40@EXXMAIL02.desktop.frd.metoffice.com">E209E2066317644FB35E5AA0E8C1FB7F29EF40@EXXMAIL02.desktop.frd.metoffice.com</a>><br>><br>
> Content-Type: text/plain; charset="us-ascii"<br>><br>><br>><br>> Hello,<br>><br>> what have we available in Grads that can sort by size?<br>><br>> In recipe-020, box and whisker plot ranges are calculated by<br>
> fraction of standard deviation.<br>><br>> Assume, one were to plot quantiles after ranking:<br>><br>> how would one achieve the ranking?<br>><br>> of a stack of 2-d fields?<br>><br>> This can be a compute intensive and time consuming affair.<br>
> But it would certainly be nice to have.<br>><br>> (in metview, macro "distribution" does the trick)<br>><br>> many thanks for your suggestions.<br>><br>> Bernd.<br>><br>><br>> --<br>
> Bernd Becker Climate Impacts Product Development<br>> Met Office Hadley Centre FitzRoy Road Exeter Devon EX1 3PB United<br>> Kingdom<br>> Tel.: +44 (0) 1392 884511 Fax: +44 (0)870 900 5050<br>> <a href="mailto:E-mail%3Abernd.becker@metoffice.gov.uk">E-mail:bernd.becker@metoffice.gov.uk</a> -<br>
> <a href="http://www.metoffice.gov.uk/research/our-scientists/seasonal-to-decadal/" target="_blank">http://www.metoffice.gov.uk/research/our-scientists/seasonal-to-decadal/</a><br>> bernd-becker<br>><br>><br>
><br>><br>> ------------------------------<br>><br>> Message: 4<br>> Date: Mon, 21 Mar 2011 12:15:19 -0400<br>> From: Jennifer Adams <<a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a>><br>
> Subject: Re: [gradsusr] Regards Recipe-020: Spaghetti and<br>> Box-and-whisker plots and sorting in Grads<br>> To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
> Message-ID: <<a href="mailto:17CAFB17-2803-4B28-A343-CE9613A06D44@cola.iges.org">17CAFB17-2803-4B28-A343-CE9613A06D44@cola.iges.org</a>><br>> Content-Type: text/plain; charset="us-ascii"<br>><br>
> There's no way to do sorting in GrADS right now, but it's high on our<br>> list of features we'd like to implement. It will fall under the<br>> category of 'operations on define objects' and will require a fair bit<br>
> of available memory, depending on how much data you want to sort.<br>> --Jennifer<br>><br>><br>> On Mar 21, 2011, at 11:45 AM, Becker, Bernd wrote:<br>><br>>><br>>><br>>> Hello,<br>>><br>
>> what have we available in Grads that can sort by size?<br>>><br>>> In recipe-020, box and whisker plot ranges are calculated by<br>>> fraction of standard deviation.<br>>><br>>> Assume, one were to plot quantiles after ranking:<br>
>><br>>> how would one achieve the ranking?<br>>><br>>> of a stack of 2-d fields?<br>>><br>>> This can be a compute intensive and time consuming affair.<br>>> But it would certainly be nice to have.<br>
>><br>>> (in metview, macro "distribution" does the trick)<br>>><br>>> many thanks for your suggestions.<br>>><br>>> Bernd.<br>>><br>>><br>>> --<br>>> Bernd Becker Climate Impacts Product Development<br>
>> Met Office Hadley Centre FitzRoy Road Exeter Devon EX1 3PB<br>>> United<br>>> Kingdom<br>>> Tel.: +44 (0) 1392 884511 Fax: +44 (0)870 900 5050<br>>> <a href="mailto:E-mail%3Abernd.becker@metoffice.gov.uk">E-mail:bernd.becker@metoffice.gov.uk</a> -<br>
>> <a href="http://www.metoffice.gov.uk/research/our-scientists/seasonal-to-decadal/" target="_blank">http://www.metoffice.gov.uk/research/our-scientists/seasonal-to-decadal/</a><br>>> bernd-becker<br>>><br>
>><br>>> _______________________________________________<br>>> gradsusr mailing list<br>>> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>>> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
><br>> --<br>> Jennifer M. Adams<br>> IGES/COLA<br>> 4041 Powder Mill Road, Suite 302<br>> Calverton, MD 20705<br>> <a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a><br>><br>><br>><br>
> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20110321/6d2f37e9/attachment-0001.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20110321/6d2f37e9/attachment-0001.html</a><br>
><br>> ------------------------------<br>><br>> Message: 5<br>> Date: Mon, 21 Mar 2011 17:01:05 -0400<br>> From: Jennifer Adams <<a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a>><br>> Subject: Re: [gradsusr] curvilinear data<br>
> To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>> Message-ID: <<a href="mailto:6D6ACA6F-1D68-48C8-9662-94783407FAE0@cola.iges.org">6D6ACA6F-1D68-48C8-9662-94783407FAE0@cola.iges.org</a>><br>
> Content-Type: text/plain; charset="us-ascii"<br>><br>> It is possible to use PDEF to map curvilinear coordinates to a regular<br>> lat/lon grid, but I have never tried, and I know of nobody who has<br>
> already done this with GrADS. It requires some knowledge of how to<br>> convert any lat/lon value into real-valued i,j coordinates in the<br>> curvilinear grid. It has always been easier to do this interpolation<br>
> outside of GrADS.<br>> --Jennifer<br>><br>><br>> On Mar 18, 2011, at 2:00 PM, James T. Potemra wrote:<br>><br>>> As far as I know, GrADS will only be able to handle curvilinear grids<br>>> that are curvilinear in one dimension, i.e., lat(i)/lon(i), not<br>
>> lat(i,j)/lon(i,j). Of course you can always make the control file<br>>> whatever you want, but the display will not be correct.<br>>><br>>> Jim<br>>><br>>> Edward wrote:<br>>>><br>
>>> hi, gradsuser,<br>>>><br>>>> Does anybody has an idea to deal with the curvilinear data in grads?<br>>>> Do I need list all long/lat in ctl file? or interpolate outside<br>>>> grads<br>
>>> before grads?<br>>>><br>>>> Thanks for any help.<br>>>><br>>>><br>>>> Dawn<br>>>> ------------------------------------------------------------------------<br>
>>><br>>>> _______________________________________________<br>>>> gradsusr mailing list<br>>>> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>>>> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
>>><br>>> _______________________________________________<br>>> gradsusr mailing list<br>>> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>>> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
><br>> --<br>> Jennifer M. Adams<br>> IGES/COLA<br>> 4041 Powder Mill Road, Suite 302<br>> Calverton, MD 20705<br>> <a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a><br>><br>><br>><br>
> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20110321/3bf686b6/attachment.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20110321/3bf686b6/attachment.html</a><br>
><br>> ------------------------------<br>><br>> _______________________________________________<br>> gradsusr mailing list<br>> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
><br>><br>> End of gradsusr Digest, Vol 13, Issue 49<br>> ****************************************<br>><br><br>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>
<div>========================</div>
<div><em>Rashed Mahmood</em></div>
<div><em>PhD <font face="georgia,serif">Student</font></em></div>
<div><em>Institute of Atmospheric Physics (IAP)</em></div>
<div><em>Chinese Academy of Sciences (CAS)</em></div>
<div><em>Beijing, China.</em></div><br>