<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Charles Vanya,<BR> <BR>Did you tried this?<BR> <BR>sdfopen E:\.......... (the path of your folder)\cape.2013.nc<BR> <BR>regards.<BR> <BR>T. Haghroosta<br> <BR><div>> From: gradsusr-request@gradsusr.org<br>> Subject: gradsusr Digest, Vol 47, Issue 46<br>> To: gradsusr@gradsusr.org<br>> Date: Mon, 20 Jan 2014 22:23:13 -0500<br>> <br>> Send gradsusr mailing list submissions to<br>>         gradsusr@gradsusr.org<br>> <br>> To subscribe or unsubscribe via the World Wide Web, visit<br>>         http://gradsusr.org/mailman/listinfo/gradsusr<br>> or, via email, send a message with subject or body 'help' to<br>>         gradsusr-request@gradsusr.org<br>> <br>> You can reach the person managing the list at<br>>         gradsusr-owner@gradsusr.org<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. Re: How can we write XDEF to open *.nc files? (Charles Vanya)<br>> 2. Re: How can we write XDEF to open *.nc files? (Charles Vanya)<br>> <br>> <br>> ----------------------------------------------------------------------<br>> <br>> Message: 1<br>> Date: Mon, 20 Jan 2014 18:59:31 -0800 (PST)<br>> From: Charles Vanya <charles.vanya@yahoo.com><br>> Subject: Re: [gradsusr] How can we write XDEF to open *.nc files?<br>> To: GrADS Users Forum <gradsusr@gradsusr.org><br>> Message-ID:<br>>         <1390273171.8538.YahooMailNeo@web162203.mail.bf1.yahoo.com><br>> Content-Type: text/plain; charset="iso-8859-1"<br>> <br>> Thanks to Jennifer and Hoop for providing such kind of assistance.<br>> ?I have downloaded? the data file and I am using Grads on windows,now my next question is "How can I run this script when I am unable to open the file in Grads?". <br>> <br>> I know? how to run some *.gs scripts where the scripts bears the path to the file you want to run. In this case I have several files in the smae folder but I just want one file called cape.2013.nc. <br>> <br>> Should I? to put the script in the same folder as data?<br>> I want some direction on what do I need to do say."How do I link this file and the script?"<br>> <br>> Thanks all<br>> <br>> ?<br>> Charles Langton Vanya<br>> (Principal Meteorologist)<br>> ---------------------------------------------------------------------------------<br>> <br>> Department of Climate Change and Meteorological Services,<br>> Regional Government Offices-(Next to Immigration Office),<br>> Box 1808<br>> Blantyre,Malawi<br>> ---------------------------------------------------------------------------------<br>> Tel:?? ??? (+ 265) 1 822 014<br>> Cell: ??? (+265) 888 980 545 / 999 380 545<br>> <br>> Fax:???? (+265) 1 822 215<br>> ----------------------------------------------------------------------------------<br>> <br>> "Tell me and I'll forget, show me and I may remember; involve me and I will understand"<br>> <br>> <br>> <br>> <br>> On Monday, January 20, 2014 8:35 PM, Jennifer Adams <jma@cola.iges.org> wrote:<br>> <br>> This file needs a PDEF entry, and narropen.gs will do all the work to create a working descriptor file for you. The only thing I would suggest is that you download the file and read it from your local disk instead of using a URL in your DSET entry and doing the I/O via opendap. The I/O for a pdef'd file via opendap is prohibitively slow. It is on my list of things to fix.?<br>> --Jennifer<br>> <br>> <br>> <br>> <br>> On Jan 20, 2014, at 1:02 PM, Hoop wrote:<br>> <br>> Charles Vanya,<br>> ><br>> >The NARR data are on a Lambert Conformal Conic grid, not a regular<br>> >lat-lon grid. ?The good news is, there's a standard script for<br>> >opening them. ?It takes the arguments you give it, writes a<br>> >Data Descriptor File (DDF) for the NARR data file, and then opens<br>> >it with the "open" command. ?The name of the script is "narropen",<br>> >and, as I said, it's part of the standard suite of scripts. ?It may<br>> >be found at:<br>> ><br>> >ftp://cola.gmu.edu/grads/scripts/narropen.gs<br>> ><br>> >You can learn how to call it by running it without arguments.<br>> ><br>> >-Hoop<br>> ><br>> ><br>> >Date: Mon, 20 Jan 2014 03:07:34 -0800 (PST)<br>> >><br>> >From: Charles Vanya <charles.vanya@yahoo.com><br>> >><br>> >Subject: [gradsusr] How can we write XDEF to open *.nc files?<br>> >><br>> >To: "gradsusr@gradsusr.org" <gradsusr@gradsusr.org><br>> >><br>> ><br>> >><br>> >Dear All,<br>> >><br>> >?I am novel with GrADS and recently was doing a case study of a lightning<br>> >><br>> >that killed 8 people at once and same place. As I was trying to load<br>> >><br>> >cape.2013.nc and cin.2013.nc I encountered an error that I am failing to<br>> >><br>> >resolve up to now. The error is shwon below:<br>> >><br>> >=====================================================<br>> >><br>> ><br>> >><br>> >ga-> sdfopen c:/Users/CHARLES/Downloads/cape.2013.nc<br>> >><br>> >Scanning self-describing file:? c:/Users/CHARLES/Downloads/cape.2013.nc<br>> >><br>> >gadsdf: SDF file has no discernable X coordinate.<br>> >><br>> >? To open this file with GrADS, use a descriptor file with an XDEF entry.<br>> >><br>> >? Documentation is at http://iges.org/grads/gadoc/SDFdescriptorfile.html<br>> >><br>> >ga->?======================================<br>> >><br>> >Now the question is how can I open such kind of data in Grads. I read<br>> >><br>> >through the mentioned document but it is not helpful to me. Can any one<br>> >><br>> >help me with guidance and set of commands to open and read this data?<br>> >><br>> >the data is accessible from<br>> >><br>> >http://www.esrl.noaa.gov/psd/thredds/fileServer/Datasets/NARR/monolevel/cin.2013.nc?<br>> >><br>> >Thanks in advance<br>> >><br>> >?<br>> >><br>> >Charles Langton Vanya<br>> >><br>> >(Principal Meteorologist)<br>> >><br>> >---------------------------------------------------------------------------------<br>> >><br>> ><br>> >><br>> >Department of Climate Change and Meteorological Services,<br>> >><br>> >Regional Government Offices-(Next to Immigration Office),<br>> >><br>> >Box 1808<br>> >><br>> >Blantyre,Malawi<br>> >><br>> >---------------------------------------------------------------------------------<br>> >><br>> >Tel:?? ??? (+ 265) 1 822 014<br>> >><br>> >Cell: ??? (+265) 888 980 545 / 999 380 545<br>> >><br>> ><br>> >><br>> >Fax:???? (+265) 1 822 215<br>> >><br>> >----------------------------------------------------------------------------------<br>> >><br>> ><br>> >><br>> >"Tell me and I'll forget, show me and I may remember; involve me and I will understand"<br>> >>_______________________________________________<br>> >gradsusr mailing list<br>> >gradsusr@gradsusr.org<br>> >http://gradsusr.org/mailman/listinfo/gradsusr<br>> ><br>> <br>> --<br>> Jennifer M. Adams<br>> Center for Ocean-Land-Atmosphere Studies (COLA)<br>> 111 Research Hall, Mail Stop 2B3<br>> George Mason University<br>> 4400 University Drive<br>> Fairfax, VA 22030?<br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> _______________________________________________<br>> gradsusr mailing list<br>> gradsusr@gradsusr.org<br>> http://gradsusr.org/mailman/listinfo/gradsusr<br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140120/bce13c2a/attachment-0001.html <br>> <br>> ------------------------------<br>> <br>> Message: 2<br>> Date: Mon, 20 Jan 2014 19:23:16 -0800 (PST)<br>> From: Charles Vanya <charles.vanya@yahoo.com><br>> Subject: Re: [gradsusr] How can we write XDEF to open *.nc files?<br>> To: Charles Vanya <charles.vanya@yahoo.com>,        GrADS Users Forum<br>>         <gradsusr@gradsusr.org><br>> Message-ID:<br>>         <1390274596.47728.YahooMailNeo@web162205.mail.bf1.yahoo.com><br>> Content-Type: text/plain; charset="iso-8859-1"<br>> <br>> Sorry for asking my question in a very poor way. But this is what I dd and I got this error?<br>> ------------------------------------<br>> ga-> run c:/Users/CHARLES/Desktop/Grads/narropen.gs<br>> must include following args:<br>> narropen netCDFfile VarName NumTimes StartTime DeltaT [out.ddf] [VerticalCoord]<br>> [HorizRes]<br>> Where:<br>> netCDFfile is full path to netcdf file<br>> VarName is the variable name in netcdf file<br>> NumTimes is the number of timesteps in the netCDF file<br>> StartTime is the first time in the file (e.g. 00z01jan1979)<br>> DeltaT is the time increment between timesteps (e.g. 3hr, 1dy, 1mo, or 1yr)<br>> out.ddf is the optional full path to the generated ddf file ./.ddf is the default<br>> VerticalCoord is one of following: sfc or press or subsfc (sfc default)<br>> HorizRes is the resolution to regrid to: 0.33 or 1.0 (0.33 default)<br>> ga-><br>> <br>> <br>> Now the question is how can I use the script since it has no instruction on how to use it?<br>> <br>> ?<br>> Charles Langton Vanya<br>> (Principal Meteorologist)<br>> ---------------------------------------------------------------------------------<br>> <br>> Department of Climate Change and Meteorological Services,<br>> Regional Government Offices-(Next to Immigration Office),<br>> Box 1808<br>> Blantyre,Malawi<br>> ---------------------------------------------------------------------------------<br>> Tel:?? ??? (+ 265) 1 822 014<br>> Cell: ??? (+265) 888 980 545 / 999 380 545<br>> <br>> Fax:???? (+265) 1 822 215<br>> ----------------------------------------------------------------------------------<br>> <br>> "Tell me and I'll forget, show me and I may remember; involve me and I will understand"<br>> <br>> <br>> <br>> <br>> On Tuesday, January 21, 2014 5:08 AM, Charles Vanya <charles.vanya@yahoo.com> wrote:<br>> <br>> Thanks to Jennifer and Hoop for providing such kind of assistance.<br>> ?I have downloaded? the data file and I am using Grads on windows,now my next question is "How can I run this script when I am unable to open the file in Grads?". <br>> <br>> I know? how to run some *.gs scripts where the scripts bears the path to the file you want to run. In this case I have several files in the smae folder but I just want one file called cape.2013.nc. <br>> <br>> Should I? to put the script in the same folder as data?<br>> I want some direction on what do I need to do say."How do I link this file and the script?"<br>> <br>> Thanks all<br>> <br>> ?<br>> Charles Langton Vanya<br>> (Principal Meteorologist)<br>> ---------------------------------------------------------------------------------<br>> <br>> Department of Climate Change and Meteorological Services,<br>> Regional Government Offices-(Next to Immigration Office),<br>> Box 1808<br>> Blantyre,Malawi<br>> ---------------------------------------------------------------------------------<br>> Tel:?? ??? (+ 265) 1 822 014<br>> Cell: ??? (+265) 888 980 545 / 999 380 545<br>> <br>> Fax:???? (+265) 1 822 215<br>> ----------------------------------------------------------------------------------<br>> <br>> "Tell me and I'll forget, show me and I may remember; involve me and I will understand"<br>> <br>> <br>> <br>> <br>> On Monday, January 20, 2014 8:35 PM, Jennifer Adams <jma@cola.iges.org> wrote:<br>> <br>> This file needs a PDEF entry, and narropen.gs will do all the work to create a working descriptor file for you. The only thing I would suggest is that you download the file and read it from your local disk instead of using a URL in your DSET entry and doing the I/O via opendap. The I/O for a pdef'd file via opendap is prohibitively slow. It is on my list of things to fix.?<br>> --Jennifer<br>> <br>> <br>> <br>> <br>> On Jan 20, 2014, at 1:02 PM, Hoop wrote:<br>> <br>> Charles Vanya,<br>> ><br>> >The NARR data are on a Lambert Conformal Conic grid, not a regular<br>> >lat-lon grid. ?The good news is, there's a standard script for<br>> >opening them. ?It takes the arguments you give it, writes a<br>> >Data Descriptor File (DDF) for the NARR data file, and then opens<br>> >it with the "open" command. ?The name of the script is "narropen",<br>> >and, as I said, it's part of the standard suite of scripts. ?It may<br>> >be found at:<br>> ><br>> >ftp://cola.gmu.edu/grads/scripts/narropen.gs<br>> ><br>> >You can learn how to call it by running it without arguments.<br>> ><br>> >-Hoop<br>> ><br>> ><br>> >Date: Mon, 20 Jan 2014 03:07:34 -0800 (PST)<br>> >><br>> >From: Charles Vanya <charles.vanya@yahoo.com><br>> >><br>> >Subject: [gradsusr] How can we write XDEF to open *.nc files?<br>> >><br>> >To: "gradsusr@gradsusr.org" <gradsusr@gradsusr.org><br>> >><br>> ><br>> >><br>> >Dear All,<br>> >><br>> >?I am novel with GrADS and recently was doing a case study of a lightning<br>> >><br>> >that killed 8 people at once and same place. As I was trying to load<br>> >><br>> >cape.2013.nc and cin.2013.nc I encountered an error that I am failing to<br>> >><br>> >resolve up to now. The error is shwon below:<br>> >><br>> >=====================================================<br>> >><br>> ><br>> >><br>> >ga-> sdfopen c:/Users/CHARLES/Downloads/cape.2013.nc<br>> >><br>> >Scanning self-describing file:? c:/Users/CHARLES/Downloads/cape.2013.nc<br>> >><br>> >gadsdf: SDF file has no discernable X coordinate.<br>> >><br>> >? To open this file with GrADS, use a descriptor file with an XDEF entry.<br>> >><br>> >? Documentation is at http://iges.org/grads/gadoc/SDFdescriptorfile.html<br>> >><br>> >ga->?======================================<br>> >><br>> >Now the question is how can I open such kind of data in Grads. I read<br>> >><br>> >through the mentioned document but it is not helpful to me. Can any one<br>> >><br>> >help me with guidance and set of commands to open and read this data?<br>> >><br>> >the data is accessible from<br>> >><br>> >http://www.esrl.noaa.gov/psd/thredds/fileServer/Datasets/NARR/monolevel/cin.2013.nc?<br>> >><br>> >Thanks in advance<br>> >><br>> >?<br>> >><br>> >Charles Langton Vanya<br>> >><br>> >(Principal Meteorologist)<br>> >><br>> >---------------------------------------------------------------------------------<br>> >><br>> ><br>> >><br>> >Department of Climate Change and Meteorological Services,<br>> >><br>> >Regional Government Offices-(Next to Immigration Office),<br>> >><br>> >Box 1808<br>> >><br>> >Blantyre,Malawi<br>> >><br>> >---------------------------------------------------------------------------------<br>> >><br>> >Tel:?? ??? (+ 265) 1 822 014<br>> >><br>> >Cell: ??? (+265) 888 980 545 / 999 380 545<br>> >><br>> ><br>> >><br>> >Fax:???? (+265) 1 822 215<br>> >><br>> >----------------------------------------------------------------------------------<br>> >><br>> ><br>> >><br>> >"Tell me and I'll forget, show me and I may remember; involve me and I will understand"<br>> >>_______________________________________________<br>> >gradsusr mailing list<br>> >gradsusr@gradsusr.org<br>> >http://gradsusr.org/mailman/listinfo/gradsusr<br>> ><br>> <br>> --<br>> Jennifer M. Adams<br>> Center for Ocean-Land-Atmosphere Studies (COLA)<br>> 111 Research Hall, Mail Stop 2B3<br>> George Mason University<br>> 4400 University Drive<br>> Fairfax, VA 22030?<br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> _______________________________________________<br>> gradsusr mailing list<br>> gradsusr@gradsusr.org<br>> http://gradsusr.org/mailman/listinfo/gradsusr<br>> <br>> <br>> <br>> <br>> _______________________________________________<br>> gradsusr mailing list<br>> gradsusr@gradsusr.org<br>> http://gradsusr.org/mailman/listinfo/gradsusr<br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140120/dcf12702/attachment.html <br>> <br>> ------------------------------<br>> <br>> _______________________________________________<br>> gradsusr mailing list<br>> gradsusr@gradsusr.org<br>> http://gradsusr.org/mailman/listinfo/gradsusr<br>> <br>> <br>> End of gradsusr Digest, Vol 47, Issue 46<br>> ****************************************<br></div>                                            </div></body>
</html>