Re: woce.ncml



Roland Schweitzer wrote:
<?xml version="1.0" encoding="UTF-8"?>
<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2";>
  <variable name="ntime">
    <attribute name="units" value="days since 1990-01-01 00:00:00"/>
    <attribute name="_CoordinateAxisType" value="Time" />
    <values>4602,4607</values>
  </variable>
  <aggregation dimName="ntime" type="joinNew">
   <variableAgg name="sea_level"/>
<netcdf location="http://dods.jpl.nasa.gov/dods-bin/nph-nc/pub/data_collections/woce_v3/topex/data/10_deg/ssh10d20020808.nc.gz"/> <netcdf location="http://dods.jpl.nasa.gov/dods-bin/nph-nc/pub/data_collections/woce_v3/topex/data/10_deg/ssh10d20020813.nc.gz"/>
  </aggregation>
</netcdf>

this should work:

<?xml version="1.0" encoding="UTF-8"?>
<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2";>

 <variable name="ntime" type="int" shape="ntime">
   <attribute name="units" value="days since 1990-01-01 00:00:00"/>
   <attribute name="_CoordinateAxisType" value="Time" />
   <values>4602 4607</values>
 </variable>

 <aggregation dimName="ntime" type="joinNew">
  <variableAgg name="sea_level"/>
  <netcdf 
location="http://dods.jpl.nasa.gov/dods-bin/nph-nc/pub/data_collections/woce_v3/topex/data/10_deg/ssh10d20020808.nc.gz"/>
  <netcdf 
location="http://dods.jpl.nasa.gov/dods-bin/nph-nc/pub/data_collections/woce_v3/topex/data/10_deg/ssh10d20020813.nc.gz"/>
 </aggregation>

</netcdf> your main problem was using a "," in <values>, which was silently failing. also you need to specify type="int". I also discovered 2(!) more bugs in the convention parser, which you probably wont see.

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