Closed
Description
I ran the following code:
maca_tasmax_url = 'http://inside-dev1.nkn.uidaho.edu:8080/thredds/catalog/MACAV1/inmcm4/catalog.html?dataset=REACCHDatasetScan_inmcm4/macav1metdata_tasmax_inmcm4_r1i1p1_rcp45_2096_2100_WUSA.nc'
maca_tasmax_cat = TDSCatalog(maca_tasmax_url)
And got the following long warning message:
/Users/mturner/miniconda3/envs/workshop2015/lib/python3.4/site-packages/siphon-0.3.1-py3.4.egg/siphon/catalog.py:61:
UserWarning: URL http://inside-dev1.nkn.uidaho.edu:8080/thredds/catalog/MACAV1/inmcm4/catalog.html?dataset=REACCHDatasetScan_inmcm4/macav1metdata_tasmax_inmcm4_r1i1p1_rcp45_2096_2100_WUSA.nc returned HTML.
Changing to: http://inside-dev1.nkn.uidaho.edu:8080/thredds/catalog/MACAV1/inmcm4/catalog.xml?dataset=REACCHDatasetScan_inmcm4/macav1metdata_tasmax_inmcm4_r1i1p1_rcp45_2096_2100_WUSA.nc
new_url))
Value netCDF not valid for type dataFormat: must be ['BUFR', 'ESML', 'GEMPAK', 'GINI',
'GRIB-1', 'GRIB-2', 'HDF4', 'HDF5', 'McIDAS-AREA', 'NcML', 'NetCDF', 'NetCDF-4',
'NEXRAD2', 'NIDS', 'image/gif', 'image/jpeg', 'image/tiff', 'text/csv', 'text/html', 'text/plain',
'text/tab-separated-values', 'text/xml', 'video/mpeg', 'video/quicktime',
...
In this case, the problem arose because of the following metadata [link]:
<metadata inherited="true">
...
<dataFormat>netCDF</dataFormat>
....
</metadata>
The warning seems overly strict since it's just a capitalization difference, plus it seems too loud since the metadata entry doesn't have any real effect on whether or not the underlying data is valid.