Project

General

Profile

Parameter not defined at timestep 1 when reading grib2 data

Added by Lei Xu over 2 years ago

Hi,

It seems that the 'ens' variable cannot be recognized by cdo when reading grib2 file from s2s. I want to convert the grib file to netcdf format.

Warning (gribapiScanTimestep): Record 61 (name=sm100 id=22.0.2 lev1=0 lev2=1000) timestep 61: Parameter not defined at timestep 1!
cdo copy: Processed 1742400 values from 1 variable over 60 timesteps [0.09s 24MB].

The data contains multiple dimensions: Soil_moisture_depth_below_surface_layer_Average_ens(time=60, ens=4, depth_below_surface_layer=1, lat=121, lon=240).

Wgrib2 and ncl_convert2nc cannot work on this dataset and miss the 'ens' variable.

Can you help me on this problem? Thank you.

Lei Xu


Replies (2)

RE: Parameter not defined at timestep 1 when reading grib2 data - Added by Karin Meier-Fleischer over 2 years ago

Hi Lei,

your data has 5 coordinates (time, ens, depth_below_surface_layer, lat, lon), and CDO is following the CF-convention that handles only 4 coordinates (time, vertical layer, latitude, longitude).

Maybe you can write a Python script using Xarray or an NCL script to do the conversion to netCDF.

RE: Parameter not defined at timestep 1 when reading grib2 data - Added by Lei Xu over 2 years ago

Hi Karin,

Sure. Thank you very much.

    (1-2/2)