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

Re: woce.ncml

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.


  • Subject: Re: woce.ncml
  • Date: Sat, 24 Feb 2007 17:07:05 -0700



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.