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

Re: THREDDS Catalog Generator Error



Hi Ken,

Thanks, turning the name of the xml file into a URL fixed that problem. This needs to be documented, and the catalog generator should be able to read the xml configuration file from the local filesystem (after all, I'm assuming it's reading the local file system anyway to collect the names of the data set files).

I'm having a couple further problems: 1) What does the (error or warning?) message below mean, and 2) the generator is adding datasets to the catalog that do not match the regular _expression_, and so have an empty string as their name attribute.

[mao@panther THREDDS]$ /usr/java/j2sdk1.4.1_02/bin/java -classpath cataloggen-0.6.jar:thredds.jar:jdom-b8.jar:dods.1.1.1.jar thredds.cataloggen.CatalogGen http://panther.ngdc.noaa.gov/dods/mytest.xml
readMetadataContent=[Element: <catalogGenConfig [Namespace: http://www.unidata.ucar.edu/thredds]/>]
Catalog read successfully (http://panther.ngdc.noaa.gov/dods/mytest.xml):
Message=----Catalog Validation version 0.6.02
  **Dataset (3) (my collection): is not selectable and does not have nested datasets

<?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 test" version="0.6">
  <dataset name="my collection" dataType="Grid">
    <service name="myserver" serviceType="DODS" base="http://panther.ngdc.noaa.gov/cgi-bin/dods/nph-dods/" />
    <dataset name="dods/processing" serviceName="myserver">
      <dataset name="" urlPath="dods/processing/world_stable_lights.latlon" />
    </dataset>
    <dataset name="My Test wr" serviceName="myserver" urlPath="dods/wr.nc" />
    <dataset name="" serviceName="myserver" urlPath="dods/maodc.bin" />
    <dataset name="" serviceName="myserver" urlPath="dods/example2.nc" />
    <dataset name="" serviceName="myserver" urlPath="dods/ferret.jnl.~1~" />
    <dataset name="" serviceName="myserver" urlPath="dods/mytest.xml" />
  </dataset>
</catalog>

[mao@panther THREDDS]$ cat /data/www/html/dods/mytest.xml                                                                     <?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Mark Ohrenschall (US Dept of Commerce/NOAA/NESDIS) -->
<!DOCTYPE catalog SYSTEM "http://www.unidata.ucar.edu/projects/THREDDS/xml/CatalogGenConfig.0.5.dtd">
<catalog name="my test" version="0.6">
  <dataset name="my collection" dataType="Grid">
    <metadata metadataType="CatalogGenConfig">
      <catalogGenConfig type="Catalog">
        <datasetSource name="ds source" type="Local" structure="DirTree" accessPoint="/data/www/html/dods/">
          <resultService name="myserver" serviceType="DODS" base="http://panther.ngdc.noaa.gov/cgi-bin/dods/nph-dods/" accessPointHeader="/data/www/html/"/>
          <datasetNamer name="My Test" type="RegExp" addLevel="false" matchPattern="([a-z]+)\.nc$" substitutePattern="My Test $1"/>
        </datasetSource>
      </catalogGenConfig>
    </metadata>
  </dataset>
</catalog>
[mao@panther THREDDS]$
Thanks again for your help!

Mark