Created
July 9, 2015 19:21
-
-
Save ocefpaf/ae2a2516fd606206e260 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ | |
"metadata": {}, | |
"cell_type": "code", | |
"input": "import iris\n\n\nurl = ('http://comt.sura.org/thredds/dodsC/data/comt_1_archive/'\n 'inundation_tropical/VIMS_SELFE/Hurricane_Ike_3D_final_run_with_waves')\n\ncubes = iris.load_raw(url)\n\nlen(cubes)", | |
"prompt_number": 1, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": "/home/filipe/miniconda/envs/SECOORA/lib/python2.7/site-packages/iris/fileformats/cf.py:1040: UserWarning: Ignoring formula terms variable u'elev' referenced by data variable u'v' via variable u'sigma': Dimensions (u'time', u'node') do not span (u'time2', u'sigma', u'node')\n warnings.warn(msg)\n/home/filipe/miniconda/envs/SECOORA/lib/python2.7/site-packages/iris/fileformats/cf.py:1040: UserWarning: Ignoring formula terms variable u'elev' referenced by data variable u'u' via variable u'sigma': Dimensions (u'time', u'node') do not span (u'time2', u'sigma', u'node')\n warnings.warn(msg)\n/home/filipe/miniconda/envs/SECOORA/lib/python2.7/site-packages/iris/fileformats/_pyke_rules/compiled_krb/fc_rules_cf_fc.py:1300: UserWarning: Ignoring netCDF variable u'ele' invalid units u'non-dimensional'\n warnings.warn(msg.encode('ascii', errors='backslashreplace'))\n", | |
"stream": "stderr" | |
}, | |
{ | |
"output_type": "stream", | |
"text": "/home/filipe/miniconda/envs/SECOORA/lib/python2.7/site-packages/iris/fileformats/netcdf.py:441: UserWarning: Unable to find coordinate for variable u'elev'\n '{!r}'.format(name))\n/home/filipe/miniconda/envs/SECOORA/lib/python2.7/site-packages/iris/fileformats/netcdf.py:558: UserWarning: Unable to construct Ocean s-coordinate, generic form 1 factory due to insufficient source coordinates.\n warnings.warn('{}'.format(e))\n", | |
"stream": "stderr" | |
}, | |
{ | |
"text": "7", | |
"output_type": "pyout", | |
"metadata": {}, | |
"prompt_number": 1 | |
} | |
], | |
"language": "python", | |
"trusted": true, | |
"collapsed": false | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "code", | |
"input": "print(cubes)", | |
"prompt_number": 2, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": "0: peak_direction / (degrees) (time: 1152; -- : 592761)\n1: Horizontal Triangular Element Table / (unknown) (-- : 3; -- : 1166747)\n2: eastward_sea_water_velocity / (m/s) (time: 384; ocean_s_coordinate_g1: 11; -- : 592761)\n3: sea_surface_wave_period_at_variance_spectral_density_maximum / (s) (time: 1152; -- : 592761)\n4: northward_sea_water_velocity / (m/s) (time: 384; ocean_s_coordinate_g1: 11; -- : 592761)\n5: mean_period / (s) (time: 1152; -- : 592761)\n6: sea_surface_wave_significant_height / (m) (time: 1152; -- : 592761)\n", | |
"stream": "stdout" | |
} | |
], | |
"language": "python", | |
"trusted": true, | |
"collapsed": false | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "code", | |
"input": "from iris.fileformats.cf import reference_terms\niris.FUTURE.netcdf_promote = True\nreference_terms['ocean_s_coordinate_g1'] = ['s', 'c', 'eta', 'depth', 'depth_c']\ncubes = iris.load_raw(url)\n\nlen(cubes)", | |
"prompt_number": 3, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": "/home/filipe/miniconda/envs/SECOORA/lib/python2.7/site-packages/iris/fileformats/cf.py:1040: UserWarning: Ignoring formula terms variable u'depth' referenced by data variable u'Cs' via variable u'sigma': Dimensions (u'node',) do not span (u'sigma',)\n warnings.warn(msg)\n/home/filipe/miniconda/envs/SECOORA/lib/python2.7/site-packages/iris/fileformats/cf.py:1040: UserWarning: Ignoring formula terms variable u'elev' referenced by data variable u'Cs' via variable u'sigma': Dimensions (u'time', u'node') do not span (u'sigma',)\n warnings.warn(msg)\n/home/filipe/miniconda/envs/SECOORA/lib/python2.7/site-packages/iris/fileformats/cf.py:1040: UserWarning: Ignoring formula terms variable u'depth' referenced by data variable u'sigma' via variable u'sigma': Dimensions (u'node',) do not span (u'sigma',)\n warnings.warn(msg)\n/home/filipe/miniconda/envs/SECOORA/lib/python2.7/site-packages/iris/fileformats/cf.py:1040: UserWarning: Ignoring formula terms variable u'elev' referenced by data variable u'sigma' via variable u'sigma': Dimensions (u'time', u'node') do not span (u'sigma',)\n warnings.warn(msg)\n/home/filipe/miniconda/envs/SECOORA/lib/python2.7/site-packages/iris/fileformats/netcdf.py:441: UserWarning: Unable to find coordinate for variable u'depth'\n '{!r}'.format(name))\n", | |
"stream": "stderr" | |
}, | |
{ | |
"text": "12", | |
"output_type": "pyout", | |
"metadata": {}, | |
"prompt_number": 3 | |
} | |
], | |
"language": "python", | |
"trusted": true, | |
"collapsed": false | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "code", | |
"input": "print(cubes)", | |
"prompt_number": 4, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": "0: peak_direction / (degrees) (time: 1152; -- : 592761)\n1: Horizontal Triangular Element Table / (unknown) (-- : 3; -- : 1166747)\n2: eastward_sea_water_velocity / (m/s) (time: 384; ocean_s_coordinate_g1: 11; -- : 592761)\n3: sea_surface_wave_period_at_variance_spectral_density_maximum / (s) (time: 1152; -- : 592761)\n4: northward_sea_water_velocity / (m/s) (time: 384; ocean_s_coordinate_g1: 11; -- : 592761)\n5: mean_period / (s) (time: 1152; -- : 592761)\n6: sea_surface_wave_significant_height / (m) (time: 1152; -- : 592761)\n7: Function C(s) at whole levels / (1) (ocean_s_coordinate_g1: 11)\n8: S-coordinate parameter, critical depth / (meter) (scalar cube)\n9: depth_below_geoid / (m) (-- : 592761)\n10: ocean_s_coordinate_g1 / (1) (ocean_s_coordinate_g1: 11)\n11: sea_surface_height_above_geoid / (m) (time: 1152; -- : 592761)\n", | |
"stream": "stdout" | |
} | |
], | |
"language": "python", | |
"trusted": true, | |
"collapsed": false | |
} | |
], | |
"metadata": {} | |
} | |
], | |
"metadata": { | |
"name": "", | |
"signature": "sha256:90605a3f4d2a6e83394e10df835cacec5072c6c5ea087aecfd51daa7bf549de8" | |
}, | |
"nbformat": 3 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment