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

NCML aggregation and variableAgg

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: NCML aggregation and variableAgg
  • Date: Fri, 29 Sep 2006 17:35:53 +0100

Hi all,

I'm creating aggregations of NetCDF files by aggregating on a new time
dimension, whose values come from the names of the files.  My .ncml file looks
like this:

<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2";>
  <aggregation dimName="time" type="joinNew">
    <variableAgg name="ICEC"/>
    <variableAgg name="ICETK"/>
    <variableAgg name="M"/>
    <variableAgg name="...etc"/>
    <scan location="C:/data/FOAM_one/" suffix=".nc"
dateFormatMark="FOAM_#yyyyMMdd.HH" />
  </aggregation>
</netcdf>

It's a bit tedious to have to specify explicitly all the variables I want to
aggregate.  I want to aggregate all variables so I would like to be able to
have:

<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2";>
  <aggregation dimName="time" type="joinNew">
    <variableAgg name="*"/>
    <scan location="C:/data/FOAM_one/" suffix=".nc"
dateFormatMark="FOAM_#yyyyMMdd.HH" />
  </aggregation>
</netcdf>

or something like that.  Is this possible?  If I try that, no variables get
aggregated (when I open a GridDataset, there is no time dimension).

Thanks in advance,
Jon