shyfem
Attributes
Classes
A reader for unstructured SHYFEM (irregularily gridded) `CF compliant |
Module Contents
- shyfem.logger
- class shyfem.Reader(filename=None, name=None)
Bases:
opendrift.readers.basereader.BaseReader
,opendrift.readers.basereader.UnstructuredReader
A reader for unstructured SHYFEM (irregularily gridded) CF compliant netCDF files.
http://www.ismar.cnr.it/shyfem
- Args:
- param filename:
A single netCDF file, or a pattern of files. The netCDF file can also be an URL to an OPeNDAP server.
- type filename:
string, requiered.
- param name:
Name of reader
- type name:
string, optional
See also
py:mod:opendrift.readers.basereader.unstructured.
Common constructor for all readers
- variable_aliases
- dataset = None
- proj4 = '+proj=lonlat'
- times
Setting this to True overrides temporal and spatial bounds checks. Also useful for readers that are constant and do not have a temporal dimension.
- start_time
- end_time
- xmin
- xmax
- ymin
- ymax
- z
- variable_mapping
- variables
- boundary
- nodes_idx
- plot_mesh(corners=None)
Plot the grid mesh. Does not automatically show the figure.
- get_variables(requested_variables, time=None, x=None, y=None, z=None)
Obtain and return values of the requested variables at all positions (x, y, z) closest to given time.
Returns:
Dictionary with arrays of length len(time) with values at exact positions x, y and z.
- __nearest_level__(z)
Find nearest index of z in levels.