Re: 20051220: NcML Aggregation in THREDDS

Bjørge Solli wrote:
On Tuesday 10 January 2006 02:19, you(John Caron) wrote:

Bjørge Solli wrote:

Hi again John.

On Wednesday 21 December 2005 19:15, you(John Caron) wrote:

Bjørge Solli wrote:

John Caron wrote:

Unidata Support wrote:

------- Forwarded Message

To: support@xxxxxxxxxxxxxxxx
From: =?ISO-8859-1?Q?Bj=F8rge_Solli?= <bjorge.solli@xxxxxxxx>
Subject: NcML Aggregation in THREDDS
Organization: Nansen Environmental and Remote Sensing Center - Bergen
Keywords: 200512201217.jBKCH47s009594 THREDDS NcML aggregation


I am currently rewriting our xml-files to use the new aggregation
functionality in Thredds 3.4. I have looked over all the
documentation I could find on thredds and NcML but still have one
unansvered Q. Hope you can help:

In the old version we used AggServer with an xml-statement like this:
<aggregation serviceName=".." aggType=".." varType=".." varUnit".."
dateFormat="yyyy/M/d:hh:mm:ss z">
 <fileAccess urlPath=""
coord="2003/05/28:00:00:00 GMT" />

My remaining Q is where I should write dateFormat now. I have
something like this:
<variable name="time" type="int" shape="time">
 <attribute name="units" value=".." />
 <attribute name="_CoordinateAxisType" value="Time" />

Here you are defining a time coordinate of dataType "int"

I see I omitted the units-value, it is "secs since 1970-01-01 00:00:00".
This is a value I don't think my research coworkers want to change since
I understand it is some standard in their field. The one in charge are
on holidays, so will have to wait till he's back for the definite

yes thats a udunit string, which thredds also uses.
but if you use this, then you must write the correct integer values in
the coord field.

<aggregation dimName="time" type="joinNew">
 <variableAgg name="T" />
 netcdf location=""
coord=""2003/05/28:00:00:00 GMT" />

But you are giving it String values.

I guess I could give it int-values, but that would remove readability.

true, so the ISO 8601 date strings would work better.

I tried with strings, but failed, and now I try with int, like this:

I have enclosed a full xml-file, but here is how it looks now:
<dataset name="MERSEA CLASS 1 Aggregated files">
 <service name="this" serviceType="OpenDAP" base="" />
 <service name="TOPAZ" serviceType="OpenDAP" base="/thredds/dodsC/">
  <datasetRoot path="topaz"
sea-class1/" /> </service>
 <metadata inherited="true">
 <dataset name="Best estimate - Atlantic"
<dimension name="time" length="0" />
   <variable name="time" type="int" shape="time">
    <attribute name="units" value="secs since 1970-01-01 00:00:00" />
    <attribute name="_CoordinateAxisType" value="time" />
   <aggregation dimName="time" type="JoinNew">
" coord="1120003200" />

ok, now i see it, "coord" should be "coordValue"

not sure why im not giving a validation message, but I think its because I dont 
parse the NcML until its requested. ill try to get that working.

BTW, in the future, its easier if you can get "Remote Management" working, and give me access to it.
I use ant also to redeploy, its a nice way to do it.

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