[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #NFO-217382]: Variables not displayed with ncdump



Hi,

> When I run "ncdump -k ..." it returns "classic" format. And the netcdf
> library that I uses is the 4.1.1 version.

ncdump -h should show all the variables names shapes and types, but not the 
values
of any variables.  ncdump -c shows the information ncdump -h shows plus the 
values
of coordinate variables, but it looks like your netCDF file has no coordinate 
variables.

A netCDF coordinate variable has the same name as the corresponding netCDF 
dimension.

--Russ

> This is the dump that I obtain in Panoply if I select "Only plottable
> variables" (or using ncdump) :
> 
> dimensions:
> TSTEP = UNLIMITED;   // (1 currently)
> LAY = 15;
> ROW = 398;
> COL = 478;
> variables:
> float O3(TSTEP, LAY, ROW, COL);
> O3:long_name = "O3              ";
> O3:units = "ppmV            ";
> O3:var_desc = "Variable O3  ";
> 
> Otherwise, if I select "All variables", 4 other variables are displayed:
> double x(COL=478);
> :units = "km";
> :long_name = "synthesized coordinate from XORIG XCELL global
> attributes";
> :_CoordinateAxisType = "GeoX";
> double y(ROW=398);
> :units = "km";
> :long_name = "synthesized coordinate from YORIG YCELL global
> attributes";
> :_CoordinateAxisType = "GeoY";
> double level(LAY=15);
> :units = "sigma";
> :long_name = "synthesized coordinate from VGLVLS global attributes";
> :positive = "down";
> :_CoordinateAxisType = "GeoZ";
> int time(TSTEP=1);
> :units = "seconds since 2010-10-27 00:00:00 UTC";
> :long_name = "synthesized time coordinate";
> :_CoordinateAxisType = "Time";
> 
> 2010/11/11 Unidata netCDF Support <address@hidden>
> 
> > Hi,
> >
> > > When I use ncdump -h in order to display the header of my netcdf file,
> > > there is only one variable displayed. However, if I use Panoply and
> > > choose to display 'all variables', the missing ones are also displayed.
> > >
> > > Can someone explain why some variables are not displayed and recognized
> > > using ncdump ?
> >
> > No, that's puzzling.  Can you run "ncdump -k ..." on your netCDF file
> > to see what kind of format ncdump thinks it is?  If ncdump complains
> > that the "-k" option is not valid, it's possible you are using an
> > older version of ncdump that cannot access netCDF-4 files, but that
> > you have a version of Panoply which understands netCDF-4 files.  But
> > in that case, it should not be able to display any variables.
> >
> > Can you make your netCDF file available to us via FTP or HTTP so we
> > can try to replicate the problem here?
> >
> > --Russ
> >
> > Russ Rew                                         UCAR Unidata Program
> > address@hidden                      http://www.unidata.ucar.edu
> >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: NFO-217382
> > Department: Support netCDF
> > Priority: Normal
> > Status: Closed
> >
> >
> 
> 

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: NFO-217382
Department: Support netCDF
Priority: Normal
Status: Closed