Satellite Application Facility for Numerical Weather Prediction › Forums › AAPP › AAPP General Discussion › netCDF output?
- This topic has 1 reply, 2 voices, and was last updated 7 years, 1 month ago by
Nigel Atkinson.
-
AuthorPosts
-
June 16, 2017 at 7:15 am #10730
Anonymous
InactiveG’Day,
is there any way to create output in netCDF or convert the hdf5 output into netCDF?
I processed HIRS4 data with AAPP version 7.15 writing the output to hdf5 files.
I tried a simple script as in
#!/bin/sh
h5dump $1.h5 | ncgen -b -o $1.ncconverting via the (supposedly standard) .cdl format.
However, this failed:
./h52nc.sh 759919913.NSS.HIRX.NP.D13001.S0843.E1038.B2009697.GC
ncgen: – line 1: syntax error, unexpected IDENT, expecting NETCDFI also tried the h4tonc and hdf-eos5-augm tools from the HDF group and both tools state that the input file does not have a supported file format (meaning it is not HDF5-EOS compliant):
hdf-eos5-augm ./759919913.NSS.HIRX.NP.D13001.S0843.E1038.B2009697.GC.h5
HDF5-DIAG: Error detected in HDF5 (1.8.17) thread 0:
#000: EHapi.c line 1529 in HE5_EHopen(): Group “HDFEOS” does not exist in “./759919913.NSS.HIRX.NP.D13001.S0843.E1038.B2009697.GC.h5” file.major: Object header
minor: Object not found
#001: H5Gdeprec.c line 326 in H5Gopen1(): unable to open group
major: Symbol table
minor: Can’t open object
#002: H5Gint.c line 320 in H5G__open_name(): group not found
major: Symbol table
minor: Object not found
#003: H5Gloc.c line 430 in H5G_loc_find(): can’t find object
major: Symbol table
minor: Object not found
#004: H5Gtraverse.c line 861 in H5G_traverse(): internal path traversal failed
major: Symbol table
minor: Object not found
#005: H5Gtraverse.c line 641 in H5G_traverse_real(): traversal operator failed
major: Symbol table
minor: Callback failed
#006: H5Gloc.c line 385 in H5G_loc_find_cb(): object ‘HDFEOS’ doesn’t exist
major: Symbol table
minor: Object not found
HDF5-DIAG: Error detected in HDF5 (1.8.17) thread 0:
#000: GDapi.c line 238 in HE5_GDopen(): Cannot open the file “./759919913.NSS.HIRX.NP.D13001.S0843.E1038.B2009697.GC.h5”. Check the file name.major: File accessibilty
minor: Unable to open file
error(1) at read.c:993 | HE5_GDopen
error(1) at run.c:2653 | open hdfeos5 fileHence my question: How can I easily create a valid netCDF file and without loosing information?
Many thanks,
ArndtJune 19, 2017 at 9:13 am #10738Nigel Atkinson
ModeratorHello,
No, we did not consider NetCDF output. We chose hdf5 because that already widely used by the satellite data providers (e.g. the Sensor Data Records of Suomi-NPP and FY-3).
Can you explain why you need to convert to NetCDF? And do you mean NetCDF4 (which is built on an hdf5 framework) or the older NetCDF3 (which is completely different)?
You say “I also tried the h4tonc and hdf-eos5-augm”. I would not expect these tools to work with hdf5. They are for older versions of hdf.
Regards,
Nigel
-
AuthorPosts
- You must be logged in to reply to this topic.