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

[THREDDS #AIQ-920284]: grib collection



Sounds like youve upgraded to 4.5.

change 

<featureCollection name="GRIB-test" featureType="GRIB" harvest="true" 
path="data/grib">

to

<featureCollection name="GRIB-test" featureType="GRIB1" harvest="true" 
path="data/grib">



see:

http://www.unidata.ucar.edu/software/thredds/v4.5/tds/UpgradingTo4.5.html


John

> Hello,
> 
> 
> 
> I have one problem with creating grib collection!
> 
> Starting tdm I found such a lines from tdm logile:
> 
> 
> 
> 2014-12-16T00:45:51.080 +0200 ERROR - thredds.tdm.CatalogConfigReader -
> Error reading collection  skipping collection
> 
> java.lang.IllegalArgumentException: No enum constant
> thredds.featurecollection.FeatureCollectionType.GRIB
> 
> at java.lang.Enum.valueOf(Enum.java:238) ~[?:1.8.0_20]
> 
> at
> thredds.featurecollection.FeatureCollectionType.valueOf(FeatureCollectionTyp
> e.java:11) ~[tdm-4.5.jar:4.5.4-SNAPSHOT]
> 
> at
> thredds.catalog.parser.jdom.FeatureCollectionReader.readFeatureCollection(Fe
> atureCollectionReader.java:82) ~[tdm-4.5.jar:4.5.4-SNAPSHOT]
> 
> at
> thredds.tdm.CatalogConfigReader.readCatalog(CatalogConfigReader.java:78)
> [tdm-4.5.jar:4.5.4-SNAPSHOT]
> 
> at
> thredds.tdm.CatalogConfigReader.readCatalog(CatalogConfigReader.java:118)
> [tdm-4.5.jar:4.5.4-SNAPSHOT]
> 
> at
> thredds.tdm.CatalogConfigReader.<init>(CatalogConfigReader.java:43)
> [tdm-4.5.jar:4.5.4-SNAPSHOT]
> 
> at thredds.tdm.Tdm.start(Tdm.java:214)
> [tdm-4.5.jar:4.5.4-SNAPSHOT]
> 
> at thredds.tdm.Tdm.main(Tdm.java:542)
> [tdm-4.5.jar:4.5.4-SNAPSHOT]
> 
> 
> 
> Could you explain the possible reason what may cause these error?
> 
> 
> 
> Grib catalog:
> 
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <catalog
> xmlns="http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0";
> xmlns:xlink="http://www.w3.org/1999/xlink"; name="Test GribCollections">
> 
> <service name="all" base="" serviceType="compound">
> 
> <service name="ncdods" serviceType="OPENDAP" base="/thredds/dodsC/"
> />
> 
> </service>
> 
> <featureCollection name="GRIB-test" featureType="GRIB" harvest="true"
> path="data/grib">
> 
> <metadata inherited="true">
> 
> <dataFormat>GRIB-1</dataFormat>
> 
> <serviceName>all</serviceName>
> 
> </metadata>
> 
> <collection name="grib-timeseries"
> spec="/mnt/dataset/hiromb/test/BAL-HBMV4_PHYS-20140718*.grib1" />
> 
> <tdm rewrite="always"/>
> 
> </featureCollection>
> 
> </catalog>
> 
> 
> 
> Catalog reference to grib collection from main catalog:
> 
> <catalogRef xlink:href="grib/grib.xml" xlink:title="Grib test"
> ID="grib-test" name="Grib testing">
> 
> </catalogRef>
> 
> 
> 
> 
> 
> Regards,
> 
> Jaak
> 
> 
> 
> 
> 

Ticket Details
===================
Ticket ID: AIQ-920284
Department: Support THREDDS
Priority: High
Status: Closed