Re: [thredds] attach metadata to a dataset

This is probably not the expected behavior, but to generate the output for your example it seems you need to follow these steps:

1) Create a ThreddsMetadata object with the values you want (dataType, variable, etc) 2) Create an InvMetadata using this object setting inherited to true (new InvMetadata(ds, _true_, tm)) 3) Create another ThreddsMetadata object which can be blank and add your InvMetadata to it 4) Add this last ThreddsMetadata object to your dataset with InvDatasetImpl.setLocalMetadata()

Does that help at all?

Jordan Walker
Center for Integrated Data Analytics (CIDA)
USGS WI Water Science Center
8505 Research Way Middleton WI 53562

On 08/15/2011 10:11 PM, Oliver wrote:
Trying to ping again on the following question ... it doesn't make sense?


On Sat, Aug 13, 2011 at 11:11 PM, Oliver<python152@xxxxxxxxx>  wrote:
hi all -

I am trying to  thredds.catalog API to generate a customized catalog,
one thing is not clear to me by looking at Java doc is how to
associate a metadata section to a dataset. For example, one sample
catalog I want to generate is:

        <properties>  ...</property>
        <metadata inherited="true">
              <dataType>  GRID</dataType>
              <variables>  ...

        <dataset>  ...</dataset>

As I look at the the java API for InvDatasetImpl, I don't see how I
can put in this metadata structure.
Am I missing something here?

Thanks for help.


thredds mailing list
For list information or to unsubscribe,  visit: