[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[THREDDS #EFD-558110]: HDF5 (nested variable name) + NCML



Hi Abdelrezzak,

Try using this bit of NcML:

<?xml version="1.0" encoding="UTF-8"?>
<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2"; 
location="grid_1_2d.h5">
  <group name='HDFEOS'>
    <group name='GRIDS'> 
      <group name='GeoGrid'>
        <group name='Data_Fields'>
          <variable name="temp" orgName="temperature"/> 
        </group>
      </group>
    </group>
  </group>
</netcdf>

I believe this will handle the nested variable name.

Regards,
  Lansing Madry
  Unidata
  Boulder, Colorado

> Hi Abdelrezzak,
> 
> I tried your NcML in ToolsUI and caught a couple of exceptions mentioning the 
> datatype attribute.  I'll need to look into this and see if what you are 
> proposing is something we actually should be handling, or if we just need a 
> nicer error message to convey the fact that we can't do what you're trying to 
> do.
> 
> Regards,
> Lansing Madry
> Unidata
> Boulder, Colorado
> 
> > Hello,
> >
> > It's possible to rename the nested variables in the ncml descriptions ?
> >
> > I deployed on the TDS server a ncml file that rename the nested variable 
> > "/HDFEOS/GRIDS/GeoGrid/Data_Fields/temperature" by 
> > "HDFEOS_GRIDS_GeoGrid_Data_Fields_temp" for the hdf5 file grid_1_2d.h5, but 
> > when i execute the request (OpenDAP service) :
> >
> > http://climtest2.ipsl.polytechnique.fr:8080/thredds/dodsC/testAll-Hyrax-directory/data/ncml/TPs/tds/example.ncml.html
> >
> > , the following response is appeared:
> >
> > Error {
> > code = 500;
> > message = "New variable (HDFEOS_GRIDS_GeoGrid_Data_Fields_temp) must have 
> > datatype attribute";
> > };
> >
> > The ncml description is the following :
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2"; 
> > location="/usr/share/hyrax/data/hdf5/grid_1_2d.h5">
> > <variable name="HDFEOS_GRIDS_GeoGrid_Data_Fields_temp" 
> > orgName="/HDFEOS/GRIDS/GeoGrid/Data_Fields/temperature"/>
> > </netcdf>
> >
> > I also tested with the following ncml descriptions :
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2"; 
> > location="/usr/share/hyrax/data/hdf5/grid_1_2d.h5">
> > <variable name="HDFEOS_GRIDS_GeoGrid_Data_Fields_temp" 
> > orgName="temperature"/>
> > </netcdf>
> >
> > and with
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2"; 
> > location="/usr/share/hyrax/data/hdf5/grid_1_2d.h5">
> > <variable name="/HDFEOS/GRIDS/GeoGrid/Data_Fields/temp" 
> > orgName="/HDFEOS/GRIDS/GeoGrid/Data_Fields/temperature"/>
> > </netcdf>
> >
> > Please find the file hdf5 in attachment.
> >
> > Do you have ideas? Thank you very much for your help.
> >
> > Abdelrezzak BARA.
> >
> > -Lansing Madry
> > Unidata
> > Boulder, Colorado
> 
> -Lansing Madry
> Unidata
> Boulder, Colorado

-Lansing Madry
  Unidata
  Boulder, Colorado

Ticket Details
===================
Ticket ID: EFD-558110
Department: Support THREDDS
Priority: Low
Status: Open