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

[netCDFJava #DTS-154055]: NCML aggregation



can you send me a sample of two of the files, one from each group? thanks

> I am trying to aggregate two groups of files into one and am having
> trouble with the time variable. The situation is like this: I have a
> group of ncfiles that contain U data with one time step each and another
> group of files with V data with one time step each.  The problem is that
> the time variable is hours since base date and is stored as an int and
> the files are in 12hr intervals so the base date is shifted by 12hrs
> every other file so that the data can be a whole number. Is there a way
> to have the NCML file handle the translation to a double. I already have
> it creating one file with all the data and the time var as a double but
> the values for time are wrong (They all assume the same base date so I
> have data like 0,0,1,1,2,2.... Instead of 0,0.5,1,1.5....) any help
> would be greatly appreciated. Attached is a sample of my current NCML. I
> also had to rename a variable in each file because they both have the
> same name (That is all working though its just the time aggregation I am
> stumbling on).
> 
> 
> 
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2";>
> 
> <aggregation type="union" timeUnitsChange="true">
> 
> <netcdf>
> 
> <aggregation dimName="time" type="joinExisting">
> 
> <netcdf location="file:///C:/TEMP/File1wnd_utru.nc">
> 
> <variable name="time" type="double" />
> 
> <variable name="U" orgName="Unknown">
> 
> <attribute name="long_name" type="String" value="U @
> height_above_ground" />
> 
> </variable>
> 
> </netcdf>
> 
> <netcdf location="file:///C:/TEMP/File2wnd_utru.nc">
> 
> <variable name="time" type="double" />
> 
> <variable name="U" orgName="Unknown">
> 
> <attribute name="long_name" type="String" value="U @
> height_above_ground" />
> 
> </variable>
> 
> </netcdf>
> 
> <netcdf location="file:///C:/TEMP/File3wnd_utru.nc">
> 
> <variable name="time" type="double" />
> 
> <variable name="U" orgName="Unknown">
> 
> <attribute name="long_name" type="String" value="U @
> height_above_ground" />
> 
> </variable>
> 
> </netcdf>
> 
> <netcdf location="file:///C:/TEMP/File4wnd_utru.nc">
> 
> <variable name="time" type="double" />
> 
> <variable name="U" orgName="Unknown">
> 
> <attribute name="long_name" type="String" value="U @
> height_above_ground" />
> 
> </variable>
> 
> </netcdf>
> 
> </aggregation>
> 
> </netcdf>
> 
> <netcdf>
> 
> <aggregation dimName="time" type="joinExisting">
> 
> <netcdf location="file:///C:/TEMP/File1wnd_vtru.nc">
> 
> <variable name="time" type="double" />
> 
> <variable name="V" orgName="Unknown">
> 
> <attribute name="long_name" type="String" value="V @
> height_above_ground" />
> 
> </variable>
> 
> </netcdf>
> 
> <netcdf location="file:///C:/TEMP/File2wnd_vtru.nc">
> 
> <variable name="time" type="double" />
> 
> <variable name="V" orgName="Unknown">
> 
> <attribute name="long_name" type="String" value="V @
> height_above_ground" />
> 
> </variable>
> 
> </netcdf>
> 
> <netcdf location="file:///C:/TEMP/File3wnd_vtru.nc">
> 
> <variable name="time" type="double" />
> 
> <variable name="V" orgName="Unknown">
> 
> <attribute name="long_name" type="String" value="V @
> height_above_ground" />
> 
> </variable>
> 
> </netcdf>
> 
> <netcdf location="file:///C:/TEMP/File4wnd_vtru.nc">
> 
> <variable name="time" type="double" />
> 
> <variable name="V" orgName="Unknown">
> 
> <attribute name="long_name" type="String" value="V @
> height_above_ground" />
> 
> </variable>
> 
> </netcdf>
> 
> </aggregation>
> 
> </netcdf>
> 
> </aggregation>
> 
> </netcdf>
> 
> 
> 
> 
> 
> Kevin Grunenberg| Programmer
> 
> Applied Science Associates, Inc.
> 
> 55 Village Square Drive   |    South Kingstown, RI  02879 USA
> 
> p:  401-789-6224  |  f: 401-789-1932
> 
> address@hidden <mailto:address@hidden>  |
> www.asascience.com <http://www.asascience.com/>
> 
> 
> 
> 
> 
> ASA | Science. Services. Solutions.
> 
> 
> 
> 
> 


Ticket Details
===================
Ticket ID: DTS-154055
Department: Support netCDF Java
Priority: Normal
Status: Open