[netcdf-java] NCML creation

Hello,

I want to use NCML to generate the output of a hydrological model
(hydrograph). I create XML file in following the UNIDATA recommendations :

<?xml version="1.0" encoding="UTF-8"?>
<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2";>
    <dimension name="time" length="1" isUnlimited="true"/>
    <variable name="time" shape="time" type="double">
        <attribute name="long_name" type="string" value="time"/>
        <attribute name="units" type="string" value="seconds since
1970-01-01 01:00:00"/>
        <attribute name="bounds" type="string" value="time_bnds"/>
        <values separator=" ">1125929100 1125929400 1125929700 1125930000
1125930300 1125930600 1125930900 1125931200 1125931500 1125931800 1125932100
1125932400 1125932700 1125933000 1125933300 1125933600 1125933900 1125934200
1125934500 1125934800 1125935100 1125935400 1125935700 1125936000 1125936300
1125936600 1125936900 1125937200 1125937500 1125937800 1125938100 1125938400
1125938700 1125939000 1125939300 1125939600 1125939900 1125940200 1125940500
1125940800 1125941100 1125941400 1125941700 1125942000 1125942300 1125942600
1125942900 1125943200 1125943500 1125943800 1125944100 1125944400 1125944700
1125945000 1125945300 1125945600 1125945900 1125946200 1125946500 1125946800
1125947100 </values>
    </variable>
    <variable name="runoff" shape="time" type="double">
        <attribute name="long_name" type="string" value="runoff
hydrograph"/>
        <values separator=" ">0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 </values>
    </variable>
    <variable name="interflow" shape="time" type="double">
        <attribute name="long_name" type="string" value="interflow
hydrograph"/>
        <values separator=" ">0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 </values>
    </variable>
    <attribute name="Conventions" type="string" value="CF-1.0"/>
    <attribute name="Name" type="string"
value="hydrograph-real_time_2005-09-05-16h05.xml"/>
    <attribute name="Time" type="string" value="2005-09-05 16:05:00"/>
    <attribute name="History" type="string" value="2008/18/11 13:51:23"/>
</netcdf>

However when I try to transform it in NetCDF file through ToolsUI nothing
happens.
I don't know if it's possible to do that directly with XML/NCML or if it's
mandatory to use the "location" attribut. But in my case, the purpose is to
avoid the netcdf creation (also the location attribut) at the model output,
but to eventually generate it later.

Thank you for your help

Vincent
  • 2008 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: