seaduck.OceData#
- class seaduck.ocedata.OceData(data, alias=None, memory_limit=10000000.0)#
Bases:
object
Ocean dataset.
Class that enables variable aliasing, topology extraction, and 4-D translation between latitude-longitude-depth-time grid and relative description.
- Parameters:
data (xarray.Dataset) – The dataset to extract grid information, create cKD tree, and Topology object on.
alias (dict, None, or 'auto') –
dict: Map the variable used by this package (key) to that used by the dataset (value).
None (default): Do not apply alias.
’auto’ (Not implemented): Automatically generate a list for the alias.
- check_readiness()#
Return readiness.
Function that checks what kind of interpolation is supported.
- Returns:
readiness –
h: The scheme of horizontal interpolation to be used, including oceanparcel, local_cartesian, and ‘rectilinear’.
Z: Whether the dataset has a vertical dimension at the center points.
Zl: Whether the dataset has a vertical dimension at staggered points (vertical velocity).
time: Whether the dataset has a temporal dimension.
- Return type:
dict
- show_alias()#
Print out the renaming in a nice pd.DataFrame format.
- Returns:
pretty_alias – Carry the same information as self.alias, look a little nicer.
- Return type:
pandas.DataFrame