sidescanpy.analysis.navigation#
Navigation and attitude data-quality summary.
summarize_navigation() reports per-field statistics for the
per-ping aux fields (heading, pitch, roll, altitude, depth, heave) and
checks which heading convention the data follows. The library’s own
convention is compass bearing, clockwise from north, in [0, 360).
Contents
Built-in immutable sequence. |
|
NaN count and finite min/max/mean of one per-ping field. |
|
Per-field statistics plus the heading-convention check. |
|
Per-field statistics for every |
- sidescanpy.analysis.navigation.NAV_ATTITUDE_VARS#
Built-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable’s items.
If the argument is a tuple, the return value is the same object.
- class sidescanpy.analysis.navigation.FieldStats(n_nan=0, minimum=None, maximum=None, mean=None)#
Bases:
NaN count and finite min/max/mean of one per-ping field.
- class sidescanpy.analysis.navigation.NavigationSummary(heading_convention=None, field_stats=<factory>, heading_frac_compass_range=None, heading_frac_signed_range=None, heading_frac_out_of_range=None, notes=<factory>)#
Bases:
Per-field statistics plus the heading-convention check.
heading_conventionis"compass_bearing"(all finite values in [0, 360)),"signed"(all in [-180, 180)),"ambiguous"(neither holds for every value), orNone(no heading, or no finite heading values).field_statsis keyed by variable name and covers theNAV_ATTITUDE_VARSpresent.
- sidescanpy.analysis.navigation.summarize_navigation(ds, *, heading_var='heading_deg')#
Per-field statistics for every
NAV_ATTITUDE_VARSentry inds, plus the fraction ofheading_varvalues in each heading convention.A value outside both conventions is not necessarily an error (a trace through a turn can briefly leave one), so the plotted trace is the place to judge it.