Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

[thredds] HDF5 (nested variable name) + NCML

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.

Attachment: grid_1_2d.h5
Description: Binary data

  • 2013 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: