uwacan.positional.SensorPosition#

class SensorPosition(*args, latitude=None, longitude=None)[source]#

Bases: Sensor, Position

Container for sensor information, including position.

This class is typically not instantiated directly, but through the sensor factory function.

Methods

Inherited methods

angle_between(first, second)

Calculate the angle between two positions, as seen from this position.

bearing_to(other)

Calculate the bearing to another coordinate.

distance_to(other)

Calculate the distance to another coordinate.

from_dataset(data)

Instantiate the class from a dataset.

groupby(group)

isel([indexers, drop, missing_dims, drop_allnan])

Select a subset of the data from the coordinate indices.

load(path[, lookup_class])

Load data from a Zarr file and optionally restore the original class.

local_length_scale()

How many nautical miles one longitude minute is.

make_figure([lat, lon, extent])

Create a plotly figure, styled for this data.

plot([use_minutes, include_time, name, ...])

Create a plotly trace for the coordinates.

save(path[, append_dim])

Save the data to a Zarr file at the specified path.

sel([indexers, method, tolerance, drop, ...])

Select a subset of the data from the coordinate labels.

shift_position(distance, bearing)

Shift this coordinate by a distance in a certain bearing.

where(cond[, other, drop])

Filter elements from this object according to a condition.

with_data(**kwargs)

Create a copy of this sensor with additional information.

Attributes

attrs

Attributes stored in the data.

coordinates

The latitude and longitude for this coordinate, as Dataset.

coords

The coordinate (dimension) arrays for this data.

data

The contained data.

dims

The dimensions of this data.

label

The label of this sensor.

latitude

The latitude for coordinate, as DataArray.

longitude

The longitude for coordinate, as DataArray.

sizes

Mapping from dimension names to lengths.