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

Re: THREDDS Catalog Generator Error

Hi Mark,

The message is a warning from the catalog library. It means that there is no way
to actually access the dataset, i.e., there is no service ("selectable") and it
contains no children datasets ("nested"). But that isn't a problem for catGen
config files

As far as the extra datasets, the datasetNamer elements don't actually filter
out datasets that don't match the regular expression. They only name datasets
that do match. The datasetFilter element only accepts datasets that match a
given regular expression. So, you can add a datasetFilter element that will only
include datasets that match a regular expression. For instance,

          <datasetFilter name="Test filter" type="RegExp"
            matchPattern="([a-z]+)\.nc$" />

Hope that helps,


Mark A Ohrenschall wrote:
> 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.
> address@hidden 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>
> address@hidden 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>
> address@hidden THREDDS]$
> Thanks again for your help!
> Mark

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/

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.