<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Charles,<div>The instructions are printed right there for you … "must include the following args: …" </div><div><br></div><div>Try this set of args, but you may need to change "./" in front of the file names with full paths.</div><div><br></div><div>ga-> run d:/Users/CHARLES/Desktop/Grads/narropen.gs ./cin.2013.nc cin 2184 1jan2013 3hr ./cin.2013.ctl </div><div><br></div><div>--Jennifer</div><div><br></div><div><br><div><div>On Jan 20, 2014, at 10:23 PM, Charles Vanya wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt">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><div><span>Now the question is how can I use the script since it has no instruction on how to use it?<br></span></div><div> </div><div><span style="font-family:garamond, new york, times, serif;"><span style="font-size:16px;"><span style="font-weight:bold;"><span style="font-family:arial, helvetica, sans-serif;"><span style="font-size:16px;">Charles Langton Vanya</span></span></span><br><span style="font-size:16px;"><span style="font-family:bookman old style, new york, times, serif;"><span style="font-style:italic;">(Principal Meteorologist)</span></span></span><br>---------------------------------------------------------------------------------<br></span></span></div><div style="color:rgb(0, 0, 0);background-color:transparent;font-style:normal;"><span style="font-family:tahoma, new york, times, serif;"><span style="font-size:16px;">Department of Climate Change and Meteorological
Services,</span></span></div><div style="color:rgb(0, 0, 0);background-color:transparent;font-style:normal;"><span style="font-family:tahoma, new york, times, serif;"><span style="font-size:16px;">Regional Government Offices-(Next to Immigration Office),</span></span></div><div style="color:rgb(0, 0, 0);background-color:transparent;font-style:normal;"><span style="font-family:tahoma, new york, times, serif;"><span style="font-size:medium;">Box 1808</span></span></div><div style="color:rgb(0, 0, 0);background-color:transparent;font-style:normal;"><span style="font-family:tahoma, new york, times, serif;"><span style="font-size:medium;">Blantyre,</span></span><span style="font-family:garamond, new york, times, serif;"><span style="font-size:16px;"><span style="font-family:tahoma, new york, times, serif;"><span style="font-size:medium;"> Malawi</span></span><br></span></span><span style="background-color:rgb(255, 255, 255);"><span style="font-family:garamond, new york, times, serif;"><span style="font-size:16px;">---------------------------------------------------------------------------------</span></span></span></div><div style="color:rgb(0, 0, 0);font-style:normal;"><span style="background-color:rgb(255, 255, 255);"><span style="font-size:16px;"><span style="font-family:garamond, new york, times, serif;">Tel: (+ 265) 1 822 014</span></span></span></div><div style="color:rgb(0, 0, 0);font-style:normal;"><span style="background-color:rgb(255, 255, 255);"><span style="font-size:medium;"><span style="font-family:garamond, new york, times, serif;">Cell: (+265) 888 980 545 / 999 380 545<br></span></span></span></div><div style="color:rgb(0, 0, 0);font-style:normal;"><span style="background-color:rgb(255, 255, 255);"><span style="font-size:medium;"><span style="font-family:garamond, new york, times,
serif;">Fax: (+265) 1 822 215</span></span></span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:garamond, new york, times, serif;background-color:transparent;font-style:normal;"><span style="background-color:rgb(255, 255, 255);"><font size="4"><span style="font-family:garamond, new york, times, serif;"><span style="font-size:16px;">----------------------------------------------------------------------------------</span></span><font size="3"><span style="font-family:Courier New, courier, monaco, monospace, sans-serif;"><br></span></font></font></span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:garamond, new york, times, serif;font-style:normal;"><span style="background-color:rgb(255, 255, 255);"><span style="background-color:rgb(0, 0, 191);"><span style="color:rgb(255, 255, 255);"><font size="4"><font size="3"><span style="font-family:Courier New, courier, monaco, monospace, sans-serif;">"Tell
me and I'll forget, show me and I may remember; involve me and I will understand"</span></font></font></span></span></span><br></div><div style="display: block;" class="yahoo_quoted"> <br> <br> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 10pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> On Tuesday, January 21, 2014 5:08 AM, Charles Vanya <<a href="mailto:charles.vanya@yahoo.com">charles.vanya@yahoo.com</a>> wrote:<br> </font> </div> <div class="y_msg_container"><div id="yiv1689625869"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt;">Thanks to Jennifer and Hoop for providing such kind of assistance.<br clear="none"> 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 clear="none"><div><span>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 clear="none"></span></div><div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><span>Should I to put the script in the same folder as data?</span></div><div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;">I want some direction on what do I need to do say."How do I link this file and the script?"<br clear="none"><span></span></div><div style="color:rgb(0, 0,
0);font-size:13.3333px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><span>Thanks all<br clear="none"></span></div><div> </div><div><span style="font-family:garamond, new york, times, serif;"><span style="font-size:16px;"><span style="font-weight:bold;"><span style="font-family:arial, helvetica, sans-serif;"><span style="font-size:16px;">Charles Langton Vanya</span></span></span><br clear="none"><span style="font-size:16px;"><span style="font-family:bookman old style, new york, times, serif;"><span style="font-style:italic;">(Principal
Meteorologist)</span></span></span><br clear="none">---------------------------------------------------------------------------------<br clear="none"></span></span></div><div style="color:rgb(0, 0, 0);background-color:transparent;font-style:normal;"><span style="font-family:tahoma, new york, times, serif;"><span style="font-size:16px;">Department of Climate Change and Meteorological Services,</span></span></div><div style="color:rgb(0, 0, 0);background-color:transparent;font-style:normal;"><span style="font-family:tahoma, new york, times, serif;"><span style="font-size:16px;">Regional Government Offices-(Next to Immigration Office),</span></span></div><div style="color:rgb(0, 0, 0);background-color:transparent;font-style:normal;"><span style="font-family:tahoma, new york, times, serif;"><span style="font-size:medium;">Box 1808</span></span></div><div style="color:rgb(0, 0, 0);background-color:transparent;font-style:normal;"><span style="font-family:tahoma, new york, times, serif;"><span style="font-size:medium;">Blantyre,</span></span><span style="font-family:garamond, new york, times, serif;"><span style="font-size:16px;"><span style="font-family:tahoma, new york, times, serif;"><span style="font-size:medium;"> Malawi</span></span><br clear="none"></span></span><span style="background-color:rgb(255, 255, 255);"><span style="font-family:garamond, new york, times, serif;"><span style="font-size:16px;">---------------------------------------------------------------------------------</span></span></span></div><div style="color:rgb(0, 0, 0);font-style:normal;"><span style="background-color:rgb(255, 255, 255);"><span style="font-size:16px;"><span style="font-family:garamond, new york, times, serif;">Tel: (+ 265) 1 822 014</span></span></span></div><div style="color:rgb(0, 0, 0);font-style:normal;"><span style="background-color:rgb(255, 255, 255);"><span style="font-size:medium;"><span style="font-family:garamond, new york, times, serif;">Cell: (+265) 888 980 545 / 999 380 545<br clear="none"></span></span></span></div><div style="color:rgb(0, 0, 0);font-style:normal;"><span style="background-color:rgb(255, 255, 255);"><span style="font-size:medium;"><span style="font-family:garamond, new york, times, serif;">Fax: (+265) 1 822 215</span></span></span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:garamond, new york, times, serif;background-color:transparent;font-style:normal;"><span style="background-color:rgb(255, 255, 255);"><font size="4"><span style="font-family:garamond, new york, times, serif;"><span style="font-size:16px;">----------------------------------------------------------------------------------</span></span><font size="3"><span style="font-family:Courier New, courier, monaco, monospace, sans-serif;"><br clear="none"></span></font></font></span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:garamond, new york, times, serif;font-style:normal;"><span style="background-color:rgb(255, 255, 255);"><span style="background-color:rgb(0, 0, 191);"><span style="color:rgb(255, 255, 255);"><font size="4"><font size="3"><span style="font-family:Courier New, courier, monaco, monospace, sans-serif;">"Tell me and I'll forget, show me and I may remember; involve me and I will understand"</span></font></font></span></span></span><br clear="none"></div><div class="yiv1689625869yahoo_quoted" style="display:block;"> <br clear="none"> <br clear="none"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"> <div class="yiv1689625869yqt3595997318" id="yiv1689625869yqt60151"><div dir="ltr"> <font size="2" face="Arial"> On Monday, January 20, 2014 8:35 PM, Jennifer Adams <<a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a>> wrote:<br clear="none"> </font> </div> <div class="yiv1689625869y_msg_container"><div id="yiv1689625869"><div>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. <div>--Jennifer</div><div><br clear="none"><div><br clear="none"><div><div class="yiv1689625869yqt0933783406" id="yiv1689625869yqtfd46067"><div>On Jan 20, 2014, at 1:02 PM, Hoop wrote:</div><br class="yiv1689625869Apple-interchange-newline" clear="none"></div><blockquote type="cite"><div><div class="yiv1689625869yqt0933783406" id="yiv1689625869yqtfd36370">Charles Vanya,<br clear="none"><br clear="none">The NARR data are on a Lambert Conformal Conic grid, not a regular<br clear="none">lat-lon grid. The good news is, there's a standard script for<br clear="none">opening them. It takes the arguments you give it, writes a<br clear="none">Data Descriptor File (DDF) for the NARR data file, and then opens<br clear="none">it with the "open" command. The name of the script is "narropen",<br clear="none">and, as I said, it's part of the standard suite of scripts. It may<br clear="none">be found at:<br clear="none"><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="ftp://cola.gmu.edu/grads/scripts/narropen.gs">ftp://cola.gmu.edu/grads/scripts/narropen.gs</a><br clear="none"><br clear="none">You can learn how to call it by running it without arguments.<br clear="none"><br clear="none">-Hoop<br clear="none"><br clear="none"><blockquote type="cite">Date: Mon, 20 Jan 2014 03:07:34 -0800 (PST)<br clear="none"></blockquote><blockquote type="cite">From: Charles Vanya <<a href="mailto:charles.vanya@yahoo.com">charles.vanya@yahoo.com</a>><br clear="none"></blockquote><blockquote type="cite">Subject: [gradsusr] How can
we write XDEF to open *.nc files?<br clear="none"></blockquote><blockquote type="cite">To: "<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>" <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br clear="none"></blockquote><blockquote type="cite"><br clear="none"></blockquote><blockquote type="cite">Dear All,<br clear="none"></blockquote><blockquote type="cite">?I am novel with GrADS and recently was doing a case study of a lightning<br clear="none"></blockquote><blockquote type="cite">that killed 8 people at once and same place. As I was trying to load<br clear="none"></blockquote><blockquote type="cite">cape.2013.nc and cin.2013.nc I encountered an error that I am failing to<br clear="none"></blockquote><blockquote type="cite">resolve up to now. The error is shwon below:<br clear="none"></blockquote><blockquote type="cite">=====================================================<br clear="none"></blockquote><blockquote type="cite"><br clear="none"></blockquote><blockquote type="cite">ga-> sdfopen
c:/Users/CHARLES/Downloads/cape.2013.nc<br clear="none"></blockquote><blockquote type="cite">Scanning self-describing file:? c:/Users/CHARLES/Downloads/cape.2013.nc<br clear="none"></blockquote><blockquote type="cite">gadsdf: SDF file has no discernable X coordinate.<br clear="none"></blockquote><blockquote type="cite">? To open this file with GrADS, use a descriptor file with an XDEF entry.<br clear="none"></blockquote><blockquote type="cite">? Documentation is at <a href="http://iges.org/grads/gadoc/SDFdescriptorfile.html">http://iges.org/grads/gadoc/SDFdescriptorfile.html</a><br clear="none"></blockquote><blockquote type="cite">ga->?======================================<br clear="none"></blockquote><blockquote type="cite">Now the question is how can I open such kind of data in Grads. I read<br clear="none"></blockquote><blockquote type="cite">through the mentioned document but it is not helpful to me. Can any one<br clear="none"></blockquote><blockquote type="cite">help me with guidance and set of commands to
open and read this data?<br clear="none"></blockquote><blockquote type="cite">the data is accessible from<br clear="none"></blockquote><blockquote type="cite"><a href="http://www.esrl.noaa.gov/psd/thredds/fileServer/Datasets/NARR/monolevel/cin.2013.nc?">http://www.esrl.noaa.gov/psd/thredds/fileServer/Datasets/NARR/monolevel/cin.2013.nc?</a><br clear="none"></blockquote><blockquote type="cite">Thanks in advance<br clear="none"></blockquote><blockquote type="cite">?<br clear="none"></blockquote><blockquote type="cite">Charles Langton Vanya<br clear="none"></blockquote><blockquote type="cite">(Principal Meteorologist)<br clear="none"></blockquote><blockquote type="cite">---------------------------------------------------------------------------------<br clear="none"></blockquote><blockquote type="cite"><br clear="none"></blockquote><blockquote type="cite">Department of Climate Change and Meteorological Services,<br clear="none"></blockquote><blockquote type="cite">Regional Government Offices-(Next to Immigration Office),<br clear="none"></blockquote><blockquote type="cite">Box 1808<br clear="none"></blockquote><blockquote type="cite">Blantyre,Malawi<br clear="none"></blockquote><blockquote type="cite">---------------------------------------------------------------------------------<br clear="none"></blockquote><blockquote type="cite">Tel:?? ??? (+ 265) 1 822 014<br clear="none"></blockquote><blockquote type="cite">Cell: ??? (+265) 888 980 545 / 999 380 545<br clear="none"></blockquote><blockquote type="cite"><br clear="none"></blockquote><blockquote type="cite">Fax:???? (+265) 1 822 215<br clear="none"></blockquote><blockquote type="cite">----------------------------------------------------------------------------------<br clear="none"></blockquote><blockquote type="cite"><br clear="none"></blockquote><blockquote type="cite">"Tell me and I'll forget, show me and I may remember; involve me and I will understand"<br clear="none"></blockquote>_______________________________________________<br clear="none">gradsusr mailing list<br clear="none"><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br clear="none">http://gradsusr.org/mailman/listinfo/gradsusr</div><br clear="none"></div></blockquote></div><br clear="none"><div>
<span class="yiv1689625869Apple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-size:medium;"><span class="yiv1689625869Apple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;orphans:2;white-space:normal;widows:2;word-spacing:0px;"></span></span><div style="word-wrap:break-word;"><span class="yiv1689625869Apple-style-span" style="border-collapse:separate;color:rgb(0, 0,
0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;orphans:2;white-space:normal;widows:2;word-spacing:0px;"><span class="yiv1689625869Apple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;orphans:2;white-space:normal;widows:2;word-spacing:0px;"></span></span><div>--</div><div>Jennifer M. Adams<br clear="none">Center for Ocean-Land-Atmosphere Studies (COLA)<br clear="none">111 Research Hall, Mail Stop 2B3<br clear="none">George Mason University<br clear="none">4400 University Drive<br clear="none">Fairfax, VA 22030 <div class="yiv1689625869yqt0933783406" id="yiv1689625869yqtfd38567"><br clear="none"><br clear="none"></div></div><div class="yiv1689625869yqt0933783406" id="yiv1689625869yqtfd12596"><div><br class="yiv1689625869khtml-block-placeholder" clear="none"></div><br class="yiv1689625869Apple-interchange-newline" clear="none"></div></div><div class="yiv1689625869yqt0933783406" id="yiv1689625869yqtfd33584"><br class="yiv1689625869Apple-interchange-newline" clear="none">
</div></div><div class="yiv1689625869yqt0933783406" id="yiv1689625869yqtfd80367">
<br clear="none"></div></div></div></div></div><br clear="none"><div class="yiv1689625869yqt0933783406" id="yiv1689625869yqtfd07703">_______________________________________________<br clear="none">gradsusr mailing list<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:gradsusr@gradsusr.org" target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br clear="none"></div><br clear="none"><br clear="none"></div></div> </div> </div> </div> </div></div></div><br><div class="yqt3595997318" id="yqt54042">_______________________________________________<br clear="none">gradsusr mailing list<br clear="none"><a shape="rect" ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br clear="none"><a shape="rect" href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br clear="none"></div><br><br></div> </div> </div> </div> </div></div>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>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></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>