<div dir="ltr">I believe that it should be:<div><div>ncdump -h <a href="http://a.nc">a.nc</a></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 7, 2013 at 9:54 AM, Celso Bandeira de Melo Ribeiro <span dir="ltr"><<a href="mailto:celso.bandeira@ufjf.edu.br" target="_blank">celso.bandeira@ufjf.edu.br</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Muhammed,<br>
Hi Andrew,<br>
Thanks for your attention.<br>
<br>
I tried to use "t" against "time" (like: TDEF t 5 linear Jan2000 1mo), but<br>
it doesn't work.<br>
And I tried to use ncdump (like: ncdump -t ET_2000M01.cn) to discovery<br>
what the variable used in the sdf file but it showed me all the values of<br>
variable in the file and doesn't show me the time of variable.<br>
Maybe my files (ET_2000M01.cn, ET_2000M02.cn,...) have some problem with<br>
time.<br>
I am attaching one(ET_2000M2.nc) file.<br>
<div class="im"><br>
The descriptor file that I am using is:<br>
<br>
DSET ^ET_20%y2M%<a href="http://m2.nc" target="_blank">m2.nc</a><br>
OPTIONS template<br>
UNDEF 0<br>
YDEF length 526 LINEAR -20.25 0.05<br>
</div><div class="im">XDEF rows 651 LINEAR -80.05 0.05<br>
</div>TDEF t 5 linear Jan2000 1mo<br>
<div class="im">VARS 1<br>
ET=>et 0 t,x,y ET<br>
ENDVARS<br>
<br>
</div>And the error message that appear is:<br>
<div class="im"><br>
ga-> xdfopen amazon_ok1.ctl<br>
Scanning Descriptor File: amazon_ok1.ctl<br>
</div>gadsdf: Time dimension t is not an SDF dimension.<br>
SDF Descriptor file amazon_ok1.ctl was not successfully opened & parsed.<br>
ga-><br>
<br>
Could you help me to check the time in this files?<br>
I appreciate your help.<br>
<span class="HOEnZb"><font color="#888888">Celso<br>
</font></span><div><div class="h5"><br>
<br>
<br>
On Sun, 6 Oct 2013 10:43:11 +0800, Muhammad Yunus Ahmad Mazuki<br>
<<a href="mailto:ukm.yunus@gmail.com">ukm.yunus@gmail.com</a>> wrote:<br>
> I think the error is in the tdef line, when I used xdfopen to template<br>
> files that can be used with sdfopen, I used<br>
> tdef time 5 linear Jan2000 1mo<br>
> The 'time' term addition refers to the variable used in the sdf file. I<br>
> have seen netcdf file using 't' instead of time, so it may be different<br>
for<br>
> your case. You can also see what term your .nc files are using by using<br>
> ncdump.<br>
><br>
><br>
> On Sun, Oct 6, 2013 at 9:59 AM, Celso Bandeira de Melo Ribeiro <<br>
> <a href="mailto:celso.bandeira@ufjf.edu.br">celso.bandeira@ufjf.edu.br</a>> wrote:<br>
><br>
>> Hello Andrew,<br>
>><br>
>> I need a little more help with descriptor file (ctl).<br>
>><br>
>> I can open the file NetCDF one-by-one, using the descriptor file that<br>
you<br>
>> sent me, p.ex.:<br>
>><br>
>> DSET ^ET_2000M02.nc<br>
>> UNDEF 0<br>
>> YDEF length 526 LINEAR -20.25 0.05<br>
>> XDEF rows 651 LINEAR -80.05 0.05<br>
>> VARS 1<br>
>> ET=>et 0 x,y ET<br>
>> ENDVARS<br>
>><br>
>> It works fine!<br>
>><br>
>> But when I try open using the template for different months<br>
>> (ET_2000M01.nc, ET_2000M02.nc, ET_2000M03.nc, ..., ET_2000M05.nc) it<br>
>> doesn't work. The descriptor file that I am using is:<br>
>><br>
>> DSET ^ET_20%y2M%<a href="http://m2.nc" target="_blank">m2.nc</a><br>
>> OPTIONS template<br>
>> UNDEF 0<br>
>> YDEF length 526 LINEAR -20.25 0.05<br>
>> DTYPE netcdf<br>
>> TDEF 5 linear Jan2000 1mo<br>
>> VARS 1<br>
>> ET=>et 0 t,x,y ET<br>
>> ENDVARS<br>
>><br>
>> The error message that appear is:<br>
>><br>
>> ga-> xdfopen amazon_ok1.ctl<br>
>> Scanning Descriptor File: amazon_ok1.ctl<br>
>> gadxdf error: Missing or invalid dimension size.<br>
>> --> The invalid description file record is:<br>
>> --> tdef 5 linear jan2000 1mo<br>
>> The data file was not opened.<br>
>> ga-><br>
>><br>
>> Can anybody help me?<br>
>><br>
>> Thank you.<br>
>><br>
>> Celso<br>
>><br>
>><br>
>><br>
>> On Thu, 3 Oct 2013 16:17:59 -0700, Andrew Friedman<br>
>> <<a href="mailto:andfried@berkeley.edu">andfried@berkeley.edu</a>><br>
>> wrote:<br>
>> > Glad to hear it worked!<br>
>> ><br>
>> > On Oct 3, 2013, at 4:02 PM, Celso Bandeira de Melo Ribeiro<br>
>> > <<a href="mailto:celso.bandeira@ufjf.edu.br">celso.bandeira@ufjf.edu.br</a>> wrote:<br>
>> ><br>
>> >> Hello Andrew,<br>
>> >> It worked fine now.<br>
>> >> Thank you for all the help and attention.<br>
>> >> Best wishes.<br>
>> >> Celso<br>
>> >><br>
>> >><br>
>> >> On Thu, 3 Oct 2013 14:35:59 -0700, Andrew Friedman<br>
>> >> <<a href="mailto:andfried@berkeley.edu">andfried@berkeley.edu</a>><br>
>> >> wrote:<br>
>> >>> Hi Celso,<br>
>> >>> Try the attached control file. I made a couple of changes, but I<br>
>> >>> think<br>
>> >> the<br>
>> >>> main issue was that your x and y dimensions were misplaced.<br>
>> >>> Andrew<br>
>> >><br>
>><br>
>> --<br>
>> ____________________________________________<br>
>> Prof. Celso Bandeira de Melo Ribeiro<br>
>> Universidade Federal de Juiz de Fora - UFJF<br>
>> Faculdade de Engenharia, Plataforma 4<br>
>> Departamento de Engenharia Ambiental e Sanitaria<br>
>> Bairro Martelos, Juiz de Fora (MG) CEP. 36036-900<br>
>> tel. (32) 2102-3400<br>
>> Visiting Scholar in Texas A&M University<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>
</div></div>-- <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></div>