netCDF output?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10730
    Anonymous
    Inactive

    G’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.nc

    converting 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 NETCDF

    I 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 file

    Hence my question: How can I easily create a valid netCDF file and without loosing information?

    Many thanks,
    Arndt

    #10738
    Nigel AtkinsonNigel Atkinson
    Moderator

    Hello,

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.