problem with opening multiple NetCDF files

Pavel Kishcha pavel at CYCLONE.TAU.AC.IL
Tue Jun 10 06:34:45 EDT 2008


Hi Karin,
The descriptor file has been corrected according to your advise, but it does
not work.
ga-> xdfopen data.ctl
Scanning Descriptor File:  data.ctl
XDFOpen Error:  Invalid variable record
  --> The invalid description file record is:
  --> aot       0 t,y,x
  The data file was not opened.

Probably it would be easier to prepare a script without using template.
Thanks for help.

Pavel



On Tue, Jun 10, 2008 at 1:05 PM, Karin Meier-Fleischer <
karin.meier-fleischer at zmaw.de> wrote:

> Hi Pavel,
>
> first, you should delete the ZDEF line. For the variables it should not
> be a one it must be a zero:
>
> DSET ^%y4-%m2.nc
> OPTIONS template
> TITLE Variables
> UNDEF -999
> XDEF longitude 360 linear -179.500000 1.00000
> YDEF latitude 181  linear -89.5000000 1.000000
> TDEF ftime 12 linear 01apr2000  1mo
> vars 8
> aot       0 t,y,x
> aot_land  0 t,y,x
> aot_water 0 t,y,x
> aot_dust  0 t,y,x
> angst     0 t,y,x
> small     0 t,y,x
> medium    0 t,y,x
> large     0 t,y,x
> endvars
>
> Hope this helps.
>
> Ciao, Karin
> ---------------------------------\\---------------------------------------
> Karin Meier-Fleischer             \\ Max-Planck-Institut fuer Meteorologie
> Phone: +49-40-41173-431            \\   Abteilung Modelle & Daten
> FAX:   +49-40-41173-476             \\    Bundesstr. 53
> Email: karin.meier-fleischer at zmaw.de \\   D-20146 Hamburg
> http://www.mad.zmaw.de/               \\  Germany
> ---------------------------------------\\---------------------------------
>
> On Tue, 10 Jun 2008, Pavel Kishcha wrote:
>
>  Thank you Karin,
>> In the nedcdf file the dimention names are ftime, latitude, longitude for
>> TDEF, YDEF, XDEF respectively. ZDEF is not mentioned there (see output
>> "ncdump -h" below).
>>
>> The file data.ctl has been updated to include dimention names except for
>> ZDEF, but the problem remains:
>>
>> ga-> xdfopen data.ctl
>> Scanning Descriptor File:  data.ctl
>> XDFOpen Error:  Invalid variable record
>>  --> The invalid description file record is:
>>  --> aot       1 t,y,x
>>  The data file was not opened.
>> ***Here is data.ctl
>>
>> DSET ^%y4-%m2.nc
>> OPTIONS template
>> TITLE Variables
>> UNDEF -999
>> XDEF longitude 360 linear -179.500000 1.00000
>> YDEF latitude 181  linear -89.5000000 1.000000
>> ZDEF level 1 levels 0
>> TDEF ftime 12 linear 01apr2000  1mo
>> vars 8
>> aot       1 t,y,x
>> aot_land  1 t,y,x
>> aot_water 1 t,y,x
>> aot_dust  1 t,y,x
>> angst     1 t,y,x
>> small     1 t,y,x
>> medium    1 t,y,x
>> large     1 t,y,x
>> endvars
>>
>>
>> On Tue, Jun 10, 2008 at 8:53 AM, Karin Meier-Fleischer <
>> karin.meier-fleischer at zmaw.de> wrote:
>>
>>  Hi Pavel,
>>>
>>> the XDEF, YDEF, ZDEF and TDEF needs the dimension names given in the
>>> netcdf file, like
>>>
>>>
>>> dset ^%y4-%m2.nc
>>> options template
>>> XDEF lon 360 linear -179.500000 1.00000
>>> YDEF lat 181  linear -89.5000000 1.000000
>>> ZDEF level 1 levels 0
>>> TDEF time 12 linear 01apr2000  1mo
>>> vars 8
>>> aot       1 t,y,x
>>> aot_land  1 t,y,x
>>> aot_water 1 t,y,x
>>> aot_dust  1 t,y,x
>>> angst     1 t,y,x
>>> small     1 t,y,x
>>> medium    1 t,y,x
>>> large     1 t,y,x
>>> endvars
>>>
>>>
>>> Cia, Karin
>>>
>>> ---------------------------------\\---------------------------------------
>>> Karin Meier-Fleischer             \\ Max-Planck-Institut fuer
>>> Meteorologie
>>> Phone: +49-40-41173-431            \\   Abteilung Modelle & Daten
>>> FAX:   +49-40-41173-476             \\    Bundesstr. 53
>>> Email: karin.meier-fleischer at zmaw.de \\   D-20146 Hamburg
>>> http://www.mad.zmaw.de/               \\  Germany
>>>
>>> ---------------------------------------\\---------------------------------
>>>
>>>
>>>
>> *** Here is the outout "ncdump -h"
>>
>> netcdf 2000-04 {
>> dimensionions:
>>       longitude = 360 ;
>>       latitude = 181 ;
>>       ftime = 1 ;
>> variables:
>>       double longitude(longitude) ;
>>               longitude:units = "degree_east" ;
>>               longitude:standard_name = "longitude" ;
>>       double latitude(latitude) ;
>>               latitude:units = "degree_north" ;
>>               latitude:standard_name = "latitude" ;
>>       double ftime(ftime) ;
>>               ftime:units = "seconds since ??" ;
>>               ftime:standard_name = "ftime" ;
>>       double aot(ftime, latitude, longitude) ;
>>               aot:units = "kg m-2" ;
>>               aot:standard_name = "total_aerosol_optical_thickness" ;
>>               aot:coordinates = "ftime latitude longitude" ;
>>       double aot_land(ftime, latitude, longitude) ;
>>               aot_land:units = "kg m-2" ;
>>               aot_land:standard_name = "total_aerosol_optical_thickness" ;
>>               aot_land:coordinates = "ftime latitude longitude" ;
>>       double aot_water(ftime, latitude, longitude) ;
>>               aot_water:units = "kg m-2" ;
>>               aot_water:standard_name = "total_aerosol_optical_thickness"
>> ;
>>               aot_water:coordinates = "ftime latitude longitude" ;
>>       double aot_dust(ftime, latitude, longitude) ;
>>               aot_dust:units = "kg m-2" ;
>>               aot_dust:standard_name =
>> "atmosphere_content_of_dust_aerosol" ;
>>               aot_dust:coordinates = "ftime latitude longitude" ;
>>       double angst(ftime, latitude, longitude) ;
>>               angst:units = "None" ;
>>               angst:standard_name = "angstrom_exponent" ;
>>               angst:coordinates = "ftime latitude longitude" ;
>>       double small(ftime, latitude, longitude) ;
>>               small:units = "kg m-2" ;
>>               small:standard_name =
>> "aerosol_optical_thickness_due_to_small_particles" ;
>>               small:coordinates = "ftime latitude longitude" ;
>>       double medium(ftime, latitude, longitude) ;
>>               medium:units = "kg m-2" ;
>>               medium:standard_name =
>> "aerosol_optical_thickness_due_to_medium_particles" ;
>>               medium:coordinates = "ftime latitude longitude" ;
>>       double large(ftime, latitude, longitude) ;
>>               large:units = "kg m-2" ;
>>               large:standard_name =
>> "aerosol_optical_thickness_due_to_large_particles" ;
>>               large:coordinates = "ftime latitude longitude" ;
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20080610/b3a29e77/attachment.html 


More information about the gradsusr mailing list