Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

[netCDFJava #QIZ-930488]: NCML aggregation including ONLY requested variables



> Hi John,
> 
> The site
> http://www.unidata.ucar.edu/software/netcdf/ncml/v2.2/Aggregation.html
> tells me how to define aggregation variables, but not how to perform a
> simple joinExisting aggregation (with time as the agg. variable) which
> only includes specific field variables.  For instance, I want to
> aggregate a number of files which each contain 90 variables, but I only
> want to include "Temperature" and "Dewpoint" variables in the aggregation.
> 
> Can you explain how to do so?
> 
> Thanks,
> Tom
> 
> 
Youll have to remove the variables that you dont want manually like this:

<netcdf xmlns='http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2'>
  <remove type='variable' name='P'/>
  <aggregation dimName='time' type='joinExisting'>
    <netcdf location='file:src/test/data/ncml/nc/jan.nc'/>
    <netcdf location='file:src/test/data/ncml/nc/feb.nc'/>
  </aggregation>
</netcdf>


Ticket Details
===================
Ticket ID: QIZ-930488
Department: Support netCDF Java
Priority: Normal
Status: Closed


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690