NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [thredds] Union of time-aggregated datasets

Hi Jon,

This is may be not what you expect, but we are doing it "manually" with ncml, as in the following piece of xml. There are 4 different variables in 2 different files per time step. We need to rename on the variable in each file (PCTVAR) because the are identically named in the different files:

    <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2";>
         <aggregation dimName="time" type="joinExisting">
            <variableAgg name="PSAL"/>
            <variableAgg name="PSAL_PCTVAR"/>
            <variableAgg name="TEMP"/>
            <variableAgg name="TEMP_PCTVAR"/>
            <netcdf coordValue="14624.0"><!-- timestep 1 -->
               <aggregation dimName="time" type="union">
<netcdf location="file:///home4/garo/oo/coriolis/co052004/CORA-GLOBAL-03.4/OA/field/1990/OA_CORA3.4_19900115_fld_PSAL.nc"
                          coordValue="14624.0">
                     <variable name="PSAL_PCTVAR" orgName="PCTVAR"/>
                  </netcdf>
<netcdf location="file:///home4/garo/oo/coriolis/co052004/CORA-GLOBAL-03.4/OA/field/1990/OA_CORA3.4_19900115_fld_TEMP.nc"
                          coordValue="14624.0">
                     <variable name="TEMP_PCTVAR" orgName="PCTVAR"/>
                  </netcdf>
               </aggregation>
            </netcdf>
            <netcdf coordValue="14655.0"><!-- timestep 2 -->
               <aggregation dimName="time" type="union">
<netcdf location="file:///home4/garo/oo/coriolis/co052004/CORA-GLOBAL-03.4/OA/field/1990/OA_CORA3.4_19900215_fld_PSAL.nc"
                          coordValue="14655.0">
                     <variable name="PSAL_PCTVAR" orgName="PCTVAR"/>
                  </netcdf>
<netcdf location="file:///home4/garo/oo/coriolis/co052004/CORA-GLOBAL-03.4/OA/field/1990/OA_CORA3.4_19900215_fld_TEMP.nc"
                          coordValue="14655.0">
                     <variable name="TEMP_PCTVAR" orgName="PCTVAR"/>
                  </netcdf>
               </aggregation>
            </netcdf>
            <netcdf coordValue="14683.0"><!-- timestep 3 -->
               <aggregation dimName="time" type="union">
<netcdf location="file:///home4/garo/oo/coriolis/co052004/CORA-GLOBAL-03.4/OA/field/1990/OA_CORA3.4_19900315_fld_PSAL.nc"
                          coordValue="14683.0">
                     <variable name="PSAL_PCTVAR" orgName="PCTVAR"/>
                  </netcdf>
<netcdf location="file:///home4/garo/oo/coriolis/co052004/CORA-GLOBAL-03.4/OA/field/1990/OA_CORA3.4_19900315_fld_TEMP.nc"
                          coordValue="14683.0">
                     <variable name="TEMP_PCTVAR" orgName="PCTVAR"/>
                  </netcdf>
               </aggregation>
            </netcdf>
...


cheers,

Thomas

On 08/06/2013 03:49 PM, Jon Blower wrote:
Hi,

I have a dataset consisting of 4 variables, each recorded on around 1000 
timesteps.  Unfortunately each variable and each timestep is provided as a 
separate NetCDF file, so I have about 4000 files.  Ideally I'd like to create a 
single dataset aggregating all of these variables and timesteps. How can I 
structure my THREDDS catalog to do this?

(It's not a forecast model so there are no overlapping times, so I'd like to 
avoid the FMRC aggregation type if possible.)

Cheers,
Jon

--
Dr Jon Blower
Technical Director, Reading e-Science Centre
School of Mathematical and Physical Sciences
University of Reading, UK
Tel: +44 (0)118 378 5213
Mob: +44 (0)7919 112687
http://www.resc.reading.ac.uk


_______________________________________________
thredds mailing list
thredds@xxxxxxxxxxxxxxxx
For list information or to unsubscribe,  visit: 
http://www.unidata.ucar.edu/mailing_lists/

--


-------------------------------------------------------------
Thomas LOUBRIEU
IFREMER IDM/ISI
BP70
29280 Plouzane
FRANCE
email: Thomas.Loubrieu@xxxxxxxxxx
WWW  : http://www.coriolis.eu.org/cdc
Tel.:  (+33) (0)2 98 22 48 53
Fax:   (+33) (0)2 98 22 46 44

-------------------------------------------------------------



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