[gradsusr] problems opening netcdf variable

Andrew Friedman andfried at berkeley.edu
Wed Jul 17 06:50:01 EDT 2013


Hi everyone,

I found one way to solve the problem using NCO: I extracted the relevant 
variable, and then removed the depth dimension as follows:

ncks -O -v lat,lon,time,h18_hc NODC_heat_content_anomaly_0-700_yearly.nc 
NODC_yearly_h18_hc.nc
ncwa -a depth NODC_yearly_h18_hc.nc NODC_yearly_h18_hc.nc

Best,
Andrew


Andrew Friedman wrote:
> Hi GrADS users,
>
> I'm having trouble opening a particular variable of a netcdf file.
>
> I'm trying to examine NODC gridded ocean heat content, downloaded from
> http://data.nodc.noaa.gov/woa/DATA_ANALYSIS/3M_HEAT_CONTENT/NETCDF/heat_content/heat_content_anomaly_0-700_yearly.nc
>
>
> I'm attaching the output of ncdump -h to this message.
>
> I am interested in the gridded variable h18_hc, but GrADS doesn't load
> it when I open the file using sdfopen. I tried writing the attached
> control file to open the particular variable h18_hc, but this yielded
> the following error:
>
> Scanning Descriptor File: OHC.ctl
> gadxdf error: Missing or invalid dimension size.
> --> The invalid description file record is:
> --> xdef 360 linear -179.5 1
> The data file was not opened.
>
> Do you have any suggestions to either modify the netcdf or control file?
>
> Thanks,
> Andrew



More information about the gradsusr mailing list