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

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



Hi Abdelrezzak,

I'm afraid that the variables can only be renamed inside the group with 
NcML.  Is it possible for the original files to be generated in a manner 
that respects the CF convention?

-Lansing

On 5/30/2013 7:46 AM, Abdelrezzak BARA wrote:
> New Client Reply: HDF5 (nested variable name) + NCML
>
>
> Hi Lansing,
>
>   Thank you very much for your response.
>
> I thought already at this solution. I generated the ncml file with the 
> toolsUI, and I copied the ncml description of structure 
> /HDFEOS/GRIDS/GeoGrid/Data_Fields/temperature in the tested ncml file with 
> modifing the variable name 'temperature' by the name 'temp'. There is no 
> change on the name of variablein the dds response.
>
> My objective is to rename the nested variables with names which respects
> the CF convention. For this reason, I want to rename
> "/HDFEOS/GRIDS/GeoGrid/Data_Fields/temperature" by
> "HDFEOS_GRIDS_GeoGrid_Data_Fields_temp", rather than
> "HDFEOS/GRIDS/GeoGrid/Data_Fields/temp".
>
>
> Best Regards, Abdelrezzak BARA.
>
>
> ________________________________
>   De : Unidata THREDDS Support <address@hidden>
> Ã : address@hidden
> Cc : address@hidden; address@hidden
> Envoyà le : Mercredi 29 mai 2013 0h03
> Objet : [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
>
>
> Ticket Details
> ===================
> Ticket ID: EFD-558110
> Department: Support THREDDS
> Priority: Low
> Status: Open
> Link:  
> https://www.unidata.ucar.edu/esupport/staff/index.php?_m=tickets&_a=viewticket&ticketid=22131



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


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.