API reference
OceanDataset
|
OceanDataset combines a |
Import
|
Shift average variables to time_midp. |
|
Manipulate coordinates to make them compatible with OceanSpy. |
Attributes
Name of the OceanDataset. |
|
Description of the OceanDataset. |
|
xarray.Dataset: A multi-dimensional, in memory, array database. |
|
|
|
A dictionary defining model parameters that are used by OceanSpy. |
|
A dictionary to connect custom variable names to OceanSpy reference names. |
|
Grid coordinates used by |
|
List of |
|
Cartopy projection of the OceanDataset. |
Set
|
Set name of the OceanDataset. |
|
Set description of the OceanDataset. |
|
Set model parameters used by OceanSpy. |
|
Set aliases to connect custom variables names to OceanSpy reference names. |
|
Set grid coordinates used by |
|
Set grid axes that will be treated as periodic by |
|
Set Cartopy projection of the OceanDataset. |
Methods
|
Merge a Dataset or DataArray into the OceanDataset. |
|
Write contents to a netCDF file. |
|
Write contents to a zarr group. |
|
Create a scipy.spatial.cKDTree for quick nearest-neighbor lookup. |
Shortcuts
Access |
|
Access |
|
Access |
|
Access |
Opening
Open OceanDataset objects. |
|
Load an OceanDataset from a netcdf file. |
|
Load an OceanDataset from a Zarr store. |
|
Import oceandataset using a yaml catalog. |
Subsampling
Subsample OceanDataset objects. |
Functions
|
Cutout the original dataset in space and time preserving the original grid structure. |
|
Extract a mooring array section following the grid. |
|
Extract survey stations. |
|
Extract Eulerian properties of particles using nearest-neighbor interpolation. |
Computing
Create new variables using OceanDataset objects. |
Smart-name
Computed variables are dynamically named. Names depend on input and operation.
|
Compute gradient along specified axes, returning all terms (not summed). |
|
Compute divergence of a vector field. |
|
Compute curl of a vector field. |
|
Compute laplacian along specified axis |
|
Compute integrals along specified axes (simple discretization). |
|
Compute weighted means using volumes, surfaces, or distances. |
Fixed-name
Computed variables have a hard-coded name.
Compute potential density anomaly. |
|
Compute Brunt-Väisälä Frequency. |
|
Compute velocity magnitude. |
|
Compute magnitude of horizontal velocity. |
|
Compute vertical component of relative vorticity. |
|
Compute relative vorticity. |
|
Compute kinetic energy. |
|
Compute eddy kinetic energy. |
|
Compute horizontal divergence of the velocity field. |
|
Compute shear component of strain. |
|
Compute normal component of strain. |
|
Compute Okubo-Weiss parameter. |
|
|
Compute Ertel Potential Vorticity. |
Compute horizontal volume flux through a mooring array section (in/outflow). |
|
Compute terms to close heat budget as explained by [R6f0e4d5c55c6-Pie17]. |
|
Compute terms to close salt budget as explained by [R8275cee51d73-Pie17]. |
|
Compute zonal and meridional velocities from U and V on orthogonal curvilinear grid. |
|
Compute horizontal velocities orthogonal and tangential to a survey. |
|
Compute missing horizontal spacing. |
Plotting
Plot using OceanDataset objects. |
Functions
|
Plot temperature-salinity diagram. |
|
Plot time series. |
|
Plot horizontal section. |
|
Plot vertical section. |
Animating
Animate using oceanspy plot functions. |
Functions
|
Animate TS diagrams. |
|
Animate horizontal section plots. |
|
Animate vertical section plots. |
Utilities
OceanSpy utilities that don't need OceanDataset objects. |
Functions
|
Convert spherical coordinates to cartesian. |
|
Generate a great circle trajectory specifying the distance resolution. |
|
Generate a trajectory specifying the distance resolution. |
|
Density of Sea Water using Jackett and McDougall 1995 (JAOT 12) polynomial (modified UNESCO polynomial) [R5a812deaf4b9-JaMc95]. |
|
Density of Sea Water using McDougall et al. 2003 (JAOT 20) polynomial (Gibbs Potential) [Re2d133f292dd-McJa03]. |
|
Compute Coriolis parameter (both vertical and horizontal components). |
LLC-transformation
OceanSpy functionality that transforms a dataset with LLC geometry characterized by 13 faces (or tiles), into one with simple geometry. |
Class
|
A class containing the transformation types of LLCgrids. |