shyfem
Module Contents
Classes
A reader for unstructured SHYFEM (irregularily gridded) `CF compliant |
Attributes
- 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
- 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.