[gradsusr] netcdf - descriptor file ctl
Jennifer Adams
jma at cola.iges.org
Mon Oct 7 09:58:21 EDT 2013
Use another coordinate variable name in your TDEF entry and provide all the metadata that GrADS will need, like this:
TDEF rows 5 linear jan2000 1mo
--Jennifer
On Oct 6, 2013, at 11:27 PM, Celso Bandeira de Melo Ribeiro wrote:
> Hi Muhammed,
>
> Thank you.
> I tried how you suggested but appear the follow information:
>
> celso1234 at ubuntu:~/basededados/ET$ ncdump -h ET_2000M02.nc
> netcdf ET_2000M02 {
> dimensions:
> rows = 651 ;
> length = 526 ;
> variables:
> double ET(length, rows) ;
> }
> celso1234 at ubuntu:~/basededados/ET$
>
> But don't appear any information about time.
>
> It could be some problem in ET_2002.nc file?
>
> Best regards.
> Celso
>
>
> On Mon, 7 Oct 2013 10:32:12 +0800, Muhammad Yunus Ahmad Mazuki
> <ukm.yunus at gmail.com> wrote:
>> I believe that it should be:
>> ncdump -h a.nc
>>
>>
>> On Mon, Oct 7, 2013 at 9:54 AM, Celso Bandeira de Melo Ribeiro <
>> celso.bandeira at ufjf.edu.br> wrote:
>>
>>> Hi Muhammed,
>>> Hi Andrew,
>>> Thanks for your attention.
>>>
>>> I tried to use "t" against "time" (like: TDEF t 5 linear Jan2000 1mo),
>>> but
>>> it doesn't work.
>>> And I tried to use ncdump (like: ncdump -t ET_2000M01.cn) to discovery
>>> what the variable used in the sdf file but it showed me all the values
> of
>>> variable in the file and doesn't show me the time of variable.
>>> Maybe my files (ET_2000M01.cn, ET_2000M02.cn,...) have some problem
> with
>>> time.
>>> I am attaching one(ET_2000M2.nc) file.
>>>
>>> The descriptor file that I am using is:
>>>
>>> DSET ^ET_20%y2M%m2.nc
>>> OPTIONS template
>>> UNDEF 0
>>> YDEF length 526 LINEAR -20.25 0.05
>>> XDEF rows 651 LINEAR -80.05 0.05
>>> TDEF t 5 linear Jan2000 1mo
>>> VARS 1
>>> ET=>et 0 t,x,y ET
>>> ENDVARS
>>>
>>> And the error message that appear is:
>>>
>>> ga-> xdfopen amazon_ok1.ctl
>>> Scanning Descriptor File: amazon_ok1.ctl
>>> gadsdf: Time dimension t is not an SDF dimension.
>>> SDF Descriptor file amazon_ok1.ctl was not successfully opened &
> parsed.
>>> ga->
>>>
>>> Could you help me to check the time in this files?
>>> I appreciate your help.
>>> Celso
>>>
>>>
>>>
>>> On Sun, 6 Oct 2013 10:43:11 +0800, Muhammad Yunus Ahmad Mazuki
>>> <ukm.yunus at gmail.com> wrote:
>>>> I think the error is in the tdef line, when I used xdfopen to
> template
>>>> files that can be used with sdfopen, I used
>>>> tdef time 5 linear Jan2000 1mo
>>>> 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.
>>>>
>>>>
>>>> On Sun, Oct 6, 2013 at 9:59 AM, Celso Bandeira de Melo Ribeiro <
>>>> celso.bandeira at ufjf.edu.br> wrote:
>>>>
>>>>> Hello Andrew,
>>>>>
>>>>> I need a little more help with descriptor file (ctl).
>>>>>
>>>>> I can open the file NetCDF one-by-one, using the descriptor file
> that
>>> you
>>>>> sent me, p.ex.:
>>>>>
>>>>> DSET ^ET_2000M02.nc
>>>>> UNDEF 0
>>>>> YDEF length 526 LINEAR -20.25 0.05
>>>>> XDEF rows 651 LINEAR -80.05 0.05
>>>>> VARS 1
>>>>> ET=>et 0 x,y ET
>>>>> ENDVARS
>>>>>
>>>>> It works fine!
>>>>>
>>>>> But when I try open using the template for different months
>>>>> (ET_2000M01.nc, ET_2000M02.nc, ET_2000M03.nc, ..., ET_2000M05.nc) it
>>>>> doesn't work. The descriptor file that I am using is:
>>>>>
>>>>> DSET ^ET_20%y2M%m2.nc
>>>>> OPTIONS template
>>>>> UNDEF 0
>>>>> YDEF length 526 LINEAR -20.25 0.05
>>>>> DTYPE netcdf
>>>>> TDEF 5 linear Jan2000 1mo
>>>>> VARS 1
>>>>> ET=>et 0 t,x,y ET
>>>>> ENDVARS
>>>>>
>>>>> The error message that appear is:
>>>>>
>>>>> ga-> xdfopen amazon_ok1.ctl
>>>>> Scanning Descriptor File: amazon_ok1.ctl
>>>>> gadxdf error: Missing or invalid dimension size.
>>>>> --> The invalid description file record is:
>>>>> --> tdef 5 linear jan2000 1mo
>>>>> The data file was not opened.
>>>>> ga->
>>>>>
>>>>> Can anybody help me?
>>>>>
>>>>> Thank you.
>>>>>
>>>>> Celso
>>>>>
>>>>>
>>>>>
>>>>> On Thu, 3 Oct 2013 16:17:59 -0700, Andrew Friedman
>>>>> <andfried at berkeley.edu>
>>>>> wrote:
>>>>>> Glad to hear it worked!
>>>>>>
>>>>>> On Oct 3, 2013, at 4:02 PM, Celso Bandeira de Melo Ribeiro
>>>>>> <celso.bandeira at ufjf.edu.br> wrote:
>>>>>>
>>>>>>> Hello Andrew,
>>>>>>> It worked fine now.
>>>>>>> Thank you for all the help and attention.
>>>>>>> Best wishes.
>>>>>>> Celso
>>>>>>>
>>>>>>>
>>>>>>> On Thu, 3 Oct 2013 14:35:59 -0700, Andrew Friedman
>>>>>>> <andfried at berkeley.edu>
>>>>>>> wrote:
>>>>>>>> Hi Celso,
>>>>>>>> Try the attached control file. I made a couple of changes, but I
>>>>>>>> think
>>>>>>> the
>>>>>>>> main issue was that your x and y dimensions were misplaced.
>>>>>>>> Andrew
>>>>>>>
>>>>>
>>>>> --
>>>>> ____________________________________________
>>>>> Prof. Celso Bandeira de Melo Ribeiro
>>>>> Universidade Federal de Juiz de Fora - UFJF
>>>>> Faculdade de Engenharia, Plataforma 4
>>>>> Departamento de Engenharia Ambiental e Sanitaria
>>>>> Bairro Martelos, Juiz de Fora (MG) CEP. 36036-900
>>>>> tel. (32) 2102-3400
>>>>> Visiting Scholar in Texas A&M University
>>>>> _______________________________________________
>>>>> gradsusr mailing list
>>>>> gradsusr at gradsusr.org
>>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>>
>>>
>>> --
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>>
>
> --
> ____________________________________________
> Prof. Celso Bandeira de Melo Ribeiro
> Universidade Federal de Juiz de Fora - UFJF
> Faculdade de Engenharia, Plataforma 4
> Departamento de Engenharia Ambiental e Sanitaria
> Bairro Martelos, Juiz de Fora (MG) CEP. 36036-900
> tel. (32) 2102-3400
> Visiting Scholar in Texas A&M University
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
--
Jennifer M. Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
111 Research Hall, Mail Stop 2B3
George Mason University
4400 University Drive
Fairfax, VA 22030
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20131007/f1fab4a8/attachment-0001.html
More information about the gradsusr
mailing list