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

Re: TDS datasetScan and Service

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: Re: TDS datasetScan and Service
  • Date: Mon, 11 Sep 2006 14:45:18 -0600

Hi Benoit,

I'm afraid there isn't a way for the datasetScan to produce different paths for the same dataset depending on the nested service. The datasetScan was not designed with this in mind. Actually, nested services weren't designed with this in mind either. When a nested service is referenced by a dataset, the same urlPath is always used on all the nested services.

This can be represented in a THREDDS catalog by using multiple <access> elements in each dataset. Each <access> element references a service and provides a urlPath so each one can be controlled however you like. However, datasetScan doesn't generate <access> elements and we don't have any other ways to automatically generate this kind of dataset

More detail on the <access> element is available at

http://www.unidata.ucar.edu/projects/THREDDS/tech/catalog/InvCatalogSpec.html#access

Hope this helps,

Ethan

Benoit GORDET wrote:

Hello there,

  I'm new in working with TDS, and i need your help.
I use a datasetScan element, and i try to have many different services access. I use nested service:

<service name="multiple" serviceType="Compound" base="" >
<service name="thisDODS" serviceType="OPENDAP" base="/thredds/dodsC/" /> <service name="CORftp" serviceType="FTP" base="ftp://address@hidden/coriolis/data/CORT-GLOBAL-01/oa/field/"; suffix=".bz2"/> <service name="CORlas" serviceType="LAS" base="http://www.ifremer.fr/las/"; /> <service name="CORweb" serviceType="WebForm" base="http://www.ifremer.fr/co/"; />
</service>

then

<datasetScan location="/global/salinity/weekly/CORT-GLOBAL-01/" path="PSAL" name="Salinity" serviceName="multiple" />

The access results for the data OA_20051102.nc (exemple of a founded data in the directory scanned) is logically:

  1. OPENDAP: http://rhsism11:8080/thredds/dodsC/PSAL/OA_20051102.nc
2. FTP: ftp://address@hidden/coriolis/data/CORT-GLOBAL-01/oa/field/PSAL/OA_20051102.nc.bz2
  3. LAS: http://www.ifremer.fr/las/PSAL/OA_20051102.nc
  4. WebForm: http://www.ifremer.fr/co/PSAL/OA_20051102.nc


The problem is that LAS server and WebForm (Web image displaying) havent the wanted URL. I want: 1. OPENDAP: http://rhsism11:8080/thredds/dodsC/PSAL/OA_20051102.nc 2. FTP: ftp://address@hidden/coriolis/data/CORT-GLOBAL-01/oa/field/PSAL/OA_20051102.nc.bz2
  3. LAS:http://www.ifremer.fr/las/servlets/dataset
  4. WebForm: http://www.ifremer.fr/co/co0525/en/global/


So typically the datasetScan path (here PSAL) is not good for all the services. Is there a
way to have differents paths value for each nested service?
Thanks

Benoit



--
Ethan R. Davis                                Telephone: (303) 497-8155
Software Engineer                             Fax:       (303) 497-8690
UCAR Unidata Program Center                   E-mail:    address@hidden
P.O. Box 3000
Boulder, CO  80307-3000                       http://www.unidata.ucar.edu/
---------------------------------------------------------------------------


===============================================================================
To unsubscribe thredds, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
===============================================================================