uwacan.analysis.ShipLevel#
- class ShipLevel(data, attrs=None)[source]#
Bases:
DatasetWrapCalculates and stores measured ship levels.
This class has all functionality to analyze ship transits and post-process the resulting radiated noise levels. The analysis methods are all implemented as classmethods with the
analyze_transitsprefix.- Parameters:
- data
xarray.Dataset The dataset with measurement results. This dataset must have a “source_power” variable.
- data
Methods
analyze_transits(*transits[, filterbank, ...])Analyze ship transits to estimate source power and related metrics.
analyze_transits_in_angle_segments(*transits)Analyze ship transits in constant angle segments to estimate source power and related metrics.
level_average(dims, **kwargs)Level-wise average of data.
meets_snr_threshold(threshold)Check where the measurement meets a specific SnR threshold.
power_average([dim])Power-wise average of data.
Inherited methods
from_dataset(dataset, **kwargs)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.
make_figure(**kwargs)Create a plotly figure, styled for this data.
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.
where(cond[, other, drop])Filter elements from this object according to a condition.
Attributes
attrsAttributes stored in the data.
coordsThe coordinate (dimension) arrays for this data.
dataThe contained data.
dimsThe dimensions of this data.
received_levelThe received level during the transits.
received_powerThe received power during the transits.
sizesMapping from dimension names to lengths.
snrThe signal to noise ratio in the measurement, in dB.
source_levelThe source level of the transits.
source_powerThe source power of the transits.