NCML aggregation and variableAgg

Jon Blower jdb at mail.nerc-essc.ac.uk
Tue Oct 3 05:14:48 MDT 2006


Hi John,

I see your point about coordinate variables.  However it would be nice
to be able to say "aggregate over all non-coordinate variable".
Unless there's something I'm missing, I would have thought that this
was a very common case.

Thanks, Jon

On 03/10/06, John Caron <caron at unidata.ucar.edu> wrote:
> Hi Jon:
>
> How do you distinguish between variables that should be aggregated and
> those that shouldnt? for example, often adding a time dimension to the
> coordinate variables screws things up for some software.
>
> jdb at mail.nerc-essc.ac.uk wrote:
>
> >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
> >
> >----------------------------------------------------------------
> >This message was sent using IMP, the Internet Messaging Program.
> >
> >==============================================================================
> >To unsubscribe netcdf-java, visit:
> >http://www.unidata.ucar.edu/mailing-list-delete-form.html
> >==============================================================================
> >
> >
>
>
>


-- 
--------------------------------------------------------------
Dr Jon Blower              Tel: +44 118 378 5213 (direct line)
Technical Director         Tel: +44 118 378 8741 (ESSC)
Reading e-Science Centre   Fax: +44 118 378 6413
ESSC                       Email: jdb at mail.nerc-essc.ac.uk
University of Reading
3 Earley Gate
Reading RG6 6AL, UK
--------------------------------------------------------------

==============================================================================
To unsubscribe netcdf-java, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================



More information about the Netcdf-java mailing list