accessors
Domain-specific methods attached to xarray.Dataset objects via the xarray
accessor pattern. Accessors are automatically registered when you
import pyadps — no additional import is needed.
Three accessor namespaces are available on any Dataset returned by the read functions:
Namespace |
Description |
|---|---|
|
File structure and integrity checks |
|
System configuration and validation |
|
Sensor data analysis and diagnostics |
Quick Example
import pyadps
# include_header=True is required for ds.header.* — it defaults to False
ds = pyadps.read('deployment.000', include_header=True)
# File integrity
ds.header.check_file()
# System configuration
config = ds.fixed_leader.system_configuration()
print(config['Frequency'])
# Timestamp validation
ds.variable_leader.validate_timestamps()
ds.header
Method |
Description |
|---|---|
|
Verify file size, byte uniformity, and data type consistency |
|
List data types present in the file |
|
Check whether a specific data type exists |
|
Byte size and data types for a specific ensemble |
|
Full validation report |
|
Print formatted header summary |
ds.fixed_leader
Method |
Description |
|---|---|
|
Frequency, beam pattern, orientation, beam angle |
|
Coordinate system, tilt correction, bin mapping |
|
Sensor availability and source selection |
|
Check each field is consistent across all ensembles |
|
Full validation report |
|
Print formatted configuration summary |
ds.variable_leader
Method |
Description |
|---|---|
|
Check timestamp plausibility and return time range |
|
Modal time interval between ensembles |
|
Check whether the time axis is uniform |
|
Distribution of all observed intervals |
|
Frequency count for a time component (e.g. |
|
Detect gaps in ensemble numbering |
|
Count 16-bit ensemble counter wraparounds |
|
Decode Built-In Test result bits across all ensembles |
|
Decode all four Error Status Words |
|
Print formatted variable leader summary |
See Also
binary_reader — Functions that return accessor-enabled Datasets
pd0_parser — Low-level access (no accessors available)