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

[THREDDS #MIN-918666]: Inherited metadata within <aggregation>



Hi Jerome,

I just took a look at the catalog containing the dataset you give below:

http://oceanwatch.pfeg.noaa.gov:8081/thredds/Satellite/aggregsatQN/divw/catalog.xml

You have this:

    <dataset name="1-day" ID="satellite/QN/divw/1day" 
urlPath="satellite/QN/divw/1day">
      <serviceName>ncdods</serviceName>
<!--    <serviceName>wcs</serviceName>-->
      <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2";>
        <aggregation dimName="time" type="joinExisting">
          <variableAgg name="QNdivw" />
<!--          <scan dateFormatMark="QN#yyyyDDD" 
location="/u00/satellite/QN/divw/1day/" suffix=".nc" >-->
          <scan location="/u00/satellite/QN/divw/1day/" suffix=".nc" >-->
           <metadata inherited="true">
   ...

Instead, try this:

<dataset name="1-day" ID="satellite/QN/divw/1day" 
urlPath="satellite/QN/divw/1day">
      <serviceName>ncdods</serviceName>
      <metadata inherited="true">
        ...
      </metadata>
      <netcdf ... ></netcdf>
    <!-- Not sure, netcdf might need to come before metadata. -->
</dataset>

And actually, it looks like you're dataset named "Divergence of the wind" might 
be 
intended to contain the other datasets? If so, you want to move the closing 
dataset
tag to after all the other datasets.

So, this

  <dataset name="Divergence of the wind"> </dataset>
  <dataset name="1-day" ID="satellite/QN/divw/1day" 
urlPath="satellite/QN/divw/1day">

would become 

  <dataset name="Divergence of the wind">
    <dataset name="1-day" ID="satellite/QN/divw/1day" 
urlPath="satellite/QN/divw/1day">
      ...
    </dataset>
    ...
  </dataset>

In which case, you could move the inherited metadata (or just some of it if 
that's appropriate) up to that level in the dataset hierarchy.

Hope this makes sense.

Ethan

Ticket Details
===================
Ticket ID: MIN-918666
Department: Support THREDDS
Priority: Normal
Status: Open