ioos / comt

IOOS Coastal and Ocean Modeling Testbed. See:
https://github.com/ioos/comt/wiki
MIT License
1 stars 7 forks source link

Testbed 1 archive ADCIRC datasets have errors that prevent loading using Iris #15

Closed rsignell-usgs closed 9 years ago

rsignell-usgs commented 10 years ago

During the SciPy 2014 code sprint today we discovered that at least some of the ADCIRC datasets in the testbed 1 archive thredds catalog have errors that prevent them from loading using Iris. I modified the NcML for one ADCIRC dataset until it loaded, discovering two problems:

Here's what I added to this NcML file: /data/comt_1_archive/inundation_tropical/UND_ADCIRC/Hurricane_Ike_2D_final_run_with_waves/00_dir.ncml

 <remove type="attribute" name="_FillValue"/>

     <variable name="depth">
      <attribute name="coordinates" value="y x" />
     </variable>

     <variable name="swan_HS_max">
      <attribute name="coordinates" value="y x" />
     </variable>

which then allows this to work:

import iris
url = 'http://comt.sura.org/thredds/dodsC/data/comt_1_archive/inundation_tropical/UND_ADCIRC/Hurricane_Ike_2D_final_run_with_waves'
var = 'sea_surface_height_above_geoid'
cube = iris.load_cube(url,var)

We need to check all the adcirc datasets and correct as necessary.

rsignell-usgs commented 9 years ago

As far as I know, all ADCIRC datasets have been corrected.