Okay, this is working a lot nicer now. However, I'm confused about there being no service and no child datasets. I copied the example from http://www.unidata.ucar.edu/projects/THREDDS/tech/cataloggen/CatalogGenConfig.html and just changed some of the particulars -- we are indeed running a DODS server through which these datasets are accessible (is the <resultservice> tag not filled properly?) and I'm not sure what nested datasets mean (the generated catalog .xml file has nested <dataset> tags...).
[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 file:///home/mao/THREDDS/mytest.xml readMetadataContent=[Element: <catalogGenConfig [Namespace: http://www.unidata.ucar.edu/thredds]/>] Catalog read successfully (file:///home/mao/THREDDS/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="My Test ow" urlPath="dods/processing/ow.nc" /> </dataset> <dataset name="My Test ow" serviceName="myserver" urlPath="dods/ow.nc" /> <dataset name="My Test lw" serviceName="myserver" urlPath="dods/lw.nc" /> </dataset> </catalog> [mao@panther THREDDS]$ cat 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="(..)\.nc$" substitutePattern="My Test $1"/> <datasetFilter name="My Test" type="RegExp" matchPattern="\/.w\.nc$"/> </datasetSource> </catalogGenConfig> </metadata> </dataset> </catalog> [mao@panther THREDDS]$Thanks,
Mark