<div dir="ltr"><div><div>I think the error is in the tdef line, when I used xdfopen to template files that can be used with sdfopen, I used<br></div>tdef time 5 linear Jan2000 1mo<br></div>The 'time' term addition refers to the variable used in the sdf file. I have seen netcdf file using 't' instead of time, so it may be different for your case. You can also see what term your .nc files are using by using ncdump.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Oct 6, 2013 at 9:59 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">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 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 <<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 think<br>
>> the<br>
>>> main issue was that your x and y dimensions were misplaced.<br>
>>> Andrew<br>
>><br>
<br>
--<br>
<div class="im">____________________________________________<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>
</div>Visiting Scholar in Texas A&M University<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>