API#
Top-level API#
|
Construct a CF-compliant trajectory dataset from a CSV file. |
|
Construct a CF-compliant trajectory dataset from a pd.DataFrame of positions. |
|
Create a CF-compatible trajectory file from dictionary of drifter positions |
Dataset#
Attributes#
See |
|
Trajectory x coordinates (usually longitude). |
|
Trajectory y coordinates (usually latitude). |
|
Retrieve the trajectories in geographic coordinates (longitudes). |
|
Retrieve the trajectories in geographic coordinates (latitudes). |
|
Retrieve the pyproj.crs.CRS object from the CF-defined grid-mapping in the dataset. |
Methods#
|
Transform coordinates in this datasets coordinate system to to_crs coordinate system. |
|
Transform coordinates in from_crs coordinate system to this datasets coordinate system. |
|
Returns a new dataset with the CF-supported grid-mapping / projection set to crs. |
|
Return a new dataset with CF-standard and common attributes set. |
Find index of last valid position along each trajectory. |
|
Returns the speed [m/s] along trajectories. |
|
Returns the timedelta between time steps. |
|
|
Distance between trajectories or a single point. |
Returns distance in meters from one position to the next along trajectories. |
|
Returns azimution travel direction in degrees from one position to the next. |
|
|
Compare the skill score between this trajectory and other. |
Returns velocity components [m/s] from one position to the next. |
|
Return the scipy convex hull for all particles, in geographical coordinates. |
|
|
Return True if given point is within the scipy convex hull for all particles. |
Return the area [m2] of the convex hull spanned by all positions. |
|
|
Interpolate dataset to a regular time interval or a different grid. |
|
Select observations in time window between t0 and t1 (inclusive). |
Select observations by index (of non-nan, time, observation) across trajectories. |
|
Returns True if dataset is 1D, i.e. time is a 1D coordinate variable. |
|
Returns True if dataset is 2D, i.e. time is a 2D variable and not a coordinate variable. |
|
Convert dataset into a 2D dataset from. |
|
Move all observations to the first index, so that the observation dimension is reduced to a minimum. |
Plotting#
|
|
|
Plot the wave spectra information from a trajan compatible xarray. |