problem with opening multiple NetCDF files

Pavel Kishcha pavel at CYCLONE.TAU.AC.IL
Mon Jun 9 12:27:47 EDT 2008


Thank you. I have corrected the descriptor file accordingly but it does not
help as GRADS still shows the same message:

 ga-> xdfopen data.ctl
Scanning Descriptor File:  data.ctl
XDFopen Error:  Missing or invalid dimension size.
  --> The invalid description file record is:
  --> xdef 360 linear -179.500000 1.00000
  The data file was not opened.
ga-> open data.ctl
Scanning description file:  data.ctl
Open Error:  Invalid variable record
  --> The invalid description file record is:
  --> aot       1 t,y,x
  The data file was not opened.

The corrected descriptor file data.ctl is as follows:

dset ^%y4-%m2.nc
options template
XDEF 360 linear -179.500000 1.00000
YDEF 181  linear -89.5000000 1.000000
ZDEF 1 levels 0
TDEF 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 Mon, Jun 9, 2008 at 6:47 PM, M.Mahakur <mmahakur at tropmet.res.in> wrote:

> what happens if you change "dset" to %m2 instead of %2m in your data.ctl??
>
> --
> Open WebMail Project (http://openwebmail.org)
>
>
> ---------- Original Message -----------
> From: Pavel Kishcha <pavel at CYCLONE.TAU.AC.IL>
> To: GRADSUSR at LIST.CINECA.IT
> Sent: Mon, 9 Jun 2008 17:27:56 +0200
> Subject: problem with opening multiple NetCDF files
>
> > Dear All,
> >
> > The problem comes about when I am trying to open multiple NetCDF files in
> > GRADS.
> > Here is my descriptor file  (data.ctl):
> >
> > dset ^%y4-%2m.nc
> > options template
> > XDEF 360 linear -179.500000 1.00000
> > YDEF 181  linear -89.5000000 1.000000
> > ZDEF 1 levels 1000
> > TDEF 24 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
> >
> > ***When I run it in GrADS Version 1.9b4 by using the command xdfopen I
> see
> > the message:
> >
> > ga-> xdfopen data.ctl
> > Scanning Descriptor File:  data.ctl
> > XDFopen Error:  Missing or invalid dimension size.
> >   --> The invalid description file record is:
> >   --> xdef 360 linear -179.500000 1.00000
> >   The data file was not opened.
> >
> > ***When I run it by using the command open I see the message:
> >
> > ga-> open data.ctl
> > Scanning description file:  MISR_L3.ctl
> > Open Error:  Invalid variable record
> >   --> The invalid description file record is:
> >   --> aot       1 t,y,x
> >
> > What am I doing wrong?
> > Thank you for all of your help.
> >
> > Cheers,
> > Pavel
> >
> > P.S. Here are my files:
> >
> > 2000-04.nc
> > 2000-05.nc
> > 2000-06.nc
> > …
> > 2002-03.nc
> >
> > ***Here is the output from "ncdump -h" of 2000-04.nc
> >
> > [pavel at wind ~]$ /usr/local/bin/ncdump -h 2000-04.nc
> > netcdf 2000-04 {
> > dimensions:
> >         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" ;
> >
> > // global attributes:
> >                 :Conventions = "CF-1.0" ;
> >                 :history = "Created Mon May  5 15:55:49 2008 by mikeb" ;
> >                 :comment = "??" ;
> >                 :source = "IMPACT model v??" ;
> >                 :references = "??" ;
> >                 :institution = "Los Alamos" ;
> >                 :title = "AOT global grid for total, dust, angst, small,
> > medium, large" ;
> > }
> ------- End of Original Message -------
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20080609/5a7fbb0c/attachment.html 


More information about the gradsusr mailing list