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

Re: datasetNamer: using DodsAttrib

Hi Ethan,

Yes I do, and yes you are right. Here are the top few lines from the generated catalog:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE catalog SYSTEM "http://www.unidata.ucar.edu/projects/THREDDS/xml/InvCatalog.0.6.dtd">
<catalog xmlns="http://www.unidata.ucar.edu/thredds" xmlns:xlink="http://www.w3.org/1999/xlink" name="my data" version="0.6">
  <dataset name="SAA netCDF Products" dataType="Grid">
    <service name="DODSserver" serviceType="DODS" base="http://panther.ngdc.noaa.gov/cgi-bin/dods/nph-dods/dods/" />
    <dataset name="dir sst50" serviceName="DODSserver">
      <dataset name="SST 50 KM FIELD" urlPath="saa/Products/netcdf/sst50/19990313.cdf" />
      <dataset name="SST 50 KM FIELD" urlPath="saa/Products/netcdf/sst50/19990403.cdf" />
      <dataset name="SST 50 KM FIELD" urlPath="saa/Products/netcdf/sst50/19990501.cdf" />
      <dataset name="SST 50 KM FIELD" urlPath="saa/Products/netcdf/sst50/19990601.cdf" />
and an excerpt from the configuration file:
<datasetSource name="ds source" type="Local" structure="DirTree" accessPoint="/data/www/html/dods/saa/Products/netcdf/">
  <resultService name="DODSserver" serviceType="DODS" base="http://panther.ngdc.noaa.gov/cgi-bin/dods/nph-dods/dods/" accessPointHeader="/data/www/html/dods/"/>
  <datasetNamer name="netCDF namer" type="DodsAttrib" addLevel="false" attribName="title" attribContainer="NC_GLOBAL"/>
  <datasetNamer name="dir namer" type="RegExp" addLevel="false" matchPattern="\/([^\/]+)$" substitutePattern="dir $1"/>
  <datasetFilter name="My Test" type="RegExp" matchPattern="\/.+\.cdf$"/>
Since I'm getting the error message about dataset is not DODS accessible but the (directory-level) dataset is still getting named (using the "dir namer" datasetNamer) does that mean the catalog generator is first applying "netCDF namer" with failure, and then applying "dir namer?" How is the datasetFilter element being used?

Thanks again for all your help and advice.


Ethan Davis wrote:

Are you getting a resulting file at all? From the "Got DAS" messages, it looks
like some of the datasets are getting named (or at least getting to the point of
getting information from the DODS datasets. I'm wondering if the warning is when
it tries to name the directory level datasets using the DodsAttrib namer.

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.