<div dir="ltr">Dear Hoop,<br>Thank you so much for your prompt reply. I did a mistake when I copied to gmail. But the message was same.  ncdump gives the following<br><br>ga-&gt; !ncdump -h  /home/data/pre/1995/01/<a href="http://pre_1995_01_01_00.nc" target="_blank">pre_1995_01_01_00.nc</a><br>netcdf <a href="http://pre_1995_01_01_00.nc" target="_blank">pre_1995_01_01_00.nc</a> {<br>dimensions:<br>    LON = 3223 ;<br>    LAT = 4943 ;<br>    TIME = 1 ;<br>variables:<br>    double LON(LON) ;<br>        LON:units = &quot;degrees_east&quot; ;<br>        LON:long_name = &quot;Longitude&quot; ;<br>    double LAT(LAT) ;<br>        LAT:units = &quot;degrees_north&quot; ;<br>        LAT:long_name = &quot;Latitude&quot; ;<br>    double TIME(TIME) ;<br>        TIME:units = &quot;seconds since 1970-01-01 00:00:00 +0:00&quot; ;<br>        TIME:long_name = &quot;Time&quot; ;<br>    short PRE(TIME, LAT, LON) ;<br>        PRE:long_name = &quot;60-minutes precipitation&quot; ;<br>        PRE:units = &quot;1e-3 meter&quot; ;<br>        PRE:missing_value = -32768s ;<br>        PRE:scale_factor = 0.01f ;<br>        PRE:add_offset = 0.f ;<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 April 2016 at 11:48, Hoop <span dir="ltr">&lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;hoop@colorado.edu&#39;);" target="_blank">hoop@colorado.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Mano,<br>
<br>
I&#39;m confused.  Why does the path to your first file have a space inside<br>
of it?  You have:<br>
<br>
/home/data/pre/1995/01/ <a href="http://pre_1995_01_01.nc" rel="noreferrer" target="_blank">pre_1995_01_01.nc</a><br>
<br>
Shouldn&#39;t it be:<br>
<br>
/home/data/pre/1995/01/<a href="http://pre_1995_01_01.nc" rel="noreferrer" target="_blank">pre_1995_01_01.nc</a><br>
<br>
If that doesn&#39;t solve it, please send the output from running<br>
&quot;ncdump -ht &quot; on the first file.  If you are not familiar with<br>
ncdump, it is part of the standard NetCDF suite from Unidata:<br>
<br>
<a href="http://www.unidata.ucar.edu/software/netcdf/" rel="noreferrer" target="_blank">http://www.unidata.ucar.edu/software/netcdf/</a><br>
<br>
Thanks,<br>
-Hoop<div><div><br>
<br>
On 04/04/16 20:20, lpasmanoranjan wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Hoop,<br>
Thank you very much for your reply. I tried it for 2 files after saving<br>
<a href="http://sdfopent.gs" rel="noreferrer" target="_blank">sdfopent.gs</a> in my scripts directory. But getting<br>
the following error.<br>
<br>
<br>
My data directory: /home/data/pre/1995/01/<br>
Number of Times: 2 (<a href="http://pre_1995_01_01.nc" rel="noreferrer" target="_blank">pre_1995_01_01.nc</a> and<br>
<a href="http://pre_1995_01_02.nc" rel="noreferrer" target="_blank">pre_1995_01_02.nc</a>)<br>
(Kindly Note: each file has only one time data, so I changed the deltahr<br>
= 1 in the <a href="http://sdfopent.gs" rel="noreferrer" target="_blank">sdfopent.gs</a> script at line 150)<br>
<br>
Now I used the following command and got the subquent messages.<br>
<br>
ga-&gt; sdfopent /home/data/pre/1995/01/ <a href="http://pre_1995_01_01.nc" rel="noreferrer" target="_blank">pre_1995_01_01.nc</a><br>
pre_1995_01_%<a href="http://h2.nc" rel="noreferrer" target="_blank">h2.nc</a> 2<br>
Defaulting optional DDF arg to out.ddf<br>
yr1=1995.<br>
netCDFfile= /home/data/pre/1995/01/ <a href="http://pre_1995_01_01.nc" rel="noreferrer" target="_blank">pre_1995_01_01.nc</a><br>
Template= pre_1995_01_%<a href="http://h2.nc" rel="noreferrer" target="_blank">h2.nc</a><br>
NumTimes= 2<br>
Time1= 00Z01JAN1995<br>
Tstep= 1hr<br>
DDF= out.ddf<br>
gadsdf: Time dimension time is not an SDF dimension.<br>
SDF Descriptor file out.ddf was not successfully opened &amp; parsed.<br>
Scanning Descriptor File:  out.ddf<br>
gadsdf: Time dimension time is not an SDF dimension.<br>
SDF Descriptor file out.ddf was not successfully opened &amp; parsed.<br>
<br>
SET Error:  No files open yet<br>
SET Error:  No files open yet<br>
<br>
I must be doing some mistake, can anybody please help me to sort this<br>
problem. Thank you so much.<br>
<br>
On 5 April 2016 at 02:23, Hoop &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;hoop@colorado.edu&#39;);" target="_blank">hoop@colorado.edu</a>&gt; wrote:<br>
<br>
    Mano,<br>
<br>
    The standard script library:<br>
<br>
    <a href="http://cola.gmu.edu/grads/gadoc/library.html" rel="noreferrer" target="_blank">http://cola.gmu.edu/grads/gadoc/library.html</a><br>
<br>
    includes the script <a href="http://sdfopent.gs" rel="noreferrer" target="_blank">sdfopent.gs</a>.  It takes two additional<br>
    arguments beyond the one for sdfopen.  The second argument<br>
    is a template, like &quot;pre_%y4_%m2_%<a href="http://d2.nc" rel="noreferrer" target="_blank">d2.nc</a>&quot;, and the<br>
    third is<br>
    a count of time steps in the entire series.  The first argument<br>
    would be the first path in the time series.  See:<br>
<br>
    <a href="ftp://cola.gmu.edu/grads/scripts/sdfopent.gs" rel="noreferrer" target="_blank">ftp://cola.gmu.edu/grads/scripts/sdfopent.gs</a><br>
<br>
    -Hoop<br>
<br>
    On 04/04/16 10:00, <a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;gradsusr-request@gradsusr.org&#39;);" target="_blank">gradsusr-request@gradsusr.org</a>&gt; wrote:<br>
     &gt; Date: Mon, 4 Apr 2016 18:27:49 +0900<br>
     &gt; From: lpasmanoranjan &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;lpasmanoranjan@gmail.com&#39;);" target="_blank">lpasmanoranjan@gmail.com</a>&gt;<br>
     &gt; Subject: [gradsusr] How to use template option for .nc file (there is<br>
     &gt;       no      .ctl file)<br>
     &gt; To: GrADS Users Forum &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;gradsusr@gradsusr.org&#39;);" target="_blank">gradsusr@gradsusr.org</a>&gt;<br>
     &gt;<br>
     &gt; Dear Users,<br>
     &gt; I am having a problem in viewing the following dataset as<br>
    template option.<br>
     &gt; I have hourly dataset in .nc as following:<br>
     &gt;<br>
     &gt; 1995/01/<a href="http://pre_1995_01_01.nc" rel="noreferrer" target="_blank">pre_1995_01_01.nc</a><br>
     &gt; 1995/01/<a href="http://pre_1995_01_02.nc" rel="noreferrer" target="_blank">pre_1995_01_02.nc</a><br>
     &gt; 1995/01/<a href="http://pre_1995_01_03.nc" rel="noreferrer" target="_blank">pre_1995_01_03.nc</a><br>
     &gt; 1995/01/<a href="http://pre_1995_01_04.nc" rel="noreferrer" target="_blank">pre_1995_01_04.nc</a><br>
     &gt; 1995/01/<a href="http://pre_1995_01_05.nc" rel="noreferrer" target="_blank">pre_1995_01_05.nc</a><br>
     &gt; 1995/01/<a href="http://pre_1995_01_06.nc" rel="noreferrer" target="_blank">pre_1995_01_06.nc</a><br>
     &gt; and so on for 10 years<br>
     &gt;<br>
     &gt; *All individual datasets can be viewed in grads with sdfopen command*<br>
     &gt;<br>
     &gt; Can anybody please help me how to use template option.<br>
     &gt;<br>
     &gt; Thank you for any kind of help or suggestion in this regard.<br>
     &gt;<br>
     &gt; Kind Regards<br>
     &gt; Mano<br>
    _______________________________________________<br>
    gradsusr mailing list<br>
    <a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;gradsusr@gradsusr.org&#39;);" target="_blank">gradsusr@gradsusr.org</a><br>
    <a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
--<br>
Kind Regards,<br>
Mano<br>
</blockquote>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div><div dir="ltr"><div>Kind Regards,<br></div>Mano<br></div></div>
</div>
<br><br>-- <br><div dir="ltr"><div>Kind Regards,<br></div>Mano<br></div><br>