Error of converting grib2 to netCDF
Added by George Lavidas almost 11 years ago
Hello
I am converting a series of grib2 files into netCDF but after a certain number of conversion i get this error
pcw3738> time cdo -f nc copy wnd10m.gdas.201005.grb2 wnd10m.gdas.201005.nc
cdf_put_vara_double : ncid = 65536 varid = 5 val0 = -0.980000
cdf_put_vara_double : varname = 10v
Error (cdf_put_vara_double) : Input/output error
cdo: posixio.c:213: px_pgout: Assertion `*posp ((off_t)(1)) || *posp lseek(nciop>fd, 0, 1)' failed.
Aborted
I tried individual conversion through terminal but it stops again, does anyone knows what the error means?
thank you
Replies (3)
RE: Error of converting grib2 to netCDF - Added by Jaison-Thomas Ambadan almost 11 years ago
It would be helpful if you could upload the file (or a link to download) and the output of "cdo -V" here.
In the mean time you may try the [ECMWF] GRIB_API tool grib_to_netcdf
grib_to_netcdf wnd10m.gdas.201005.grb2 -o wnd10m.gdas.201005.nc
or the [NCEP] wgrib2 tool
wgrib2 -netcdf wnd10m.gdas.201005.nc wnd10m.gdas.201005.grb2
or the NCL tool
ncl_convert2nc wnd10m.gdas.201005.grb2
RE: Error of converting grib2 to netCDF - Added by George Lavidas almost 11 years ago
This is the version of the CDO i am using
Climate Data Operators version 1.6.1 (http://code.zmaw.de/projects/cdo)
Compiler: gcc -std=gnu99 -I/usr/include/udunits2 -pthread
version: gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4)
Compiled: by fife on pcw3686.see.ed.ac.uk (x86_64-unknown-linux-gnu) Jul 16 2013 16:16:48
with: PTHREADS NC4 OPeNDAP SZ Z JASPER UDUNITS2 PROJ.4 XML2
filetype: srv ext ieg grb grb2 nc nc2 nc4 nc4c
CDI library version : 1.6.1 of Jul 16 2013 16:16:44
CGRIBEX library version : 1.6.1 of Jun 27 2013 15:38:33
GRIB_API library version : 1.9.16
netCDF library version : 4.1.1 of Jan 30 2014 05:31:22 $
HDF5 library version : 1.8.5
SERVICE library version : 1.3.1 of Jul 16 2013 16:16:43
EXTRA library version : 1.3.1 of Jul 16 2013 16:16:43
IEG library version : 1.3.1 of Jul 16 2013 16:16:43
FILE library version : 1.8.2 of Jul 16 2013 16:16:43
The data file is quite large and downloaded from CFSR
RE: Error of converting grib2 to netCDF - Added by George Lavidas almost 11 years ago
Hello
I found the reason why it broke down, it was mainly due to the fact that I was using a great deal of memory because i was trying first to merge and then to trim, while the I found that by first trimming the field and then merge with timestep allows easier manipulation.