This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
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 Ticket Details =================== Ticket ID: EFD-558110 Department: Support THREDDS Priority: Low Status: Open