a2e_csv_reader
Classes:
Name | Description |
---|---|
A2eCSVReader |
|
Attributes:
Name | Type | Description |
---|---|---|
DTYPES |
|
|
GLOBAL_ATTRS |
|
|
VAR_ATTRS |
|
Attributes#
Classes#
A2eCSVReader #
Bases: DataReader
Methods:
Name | Description |
---|---|
get_dims_from_filename |
Parses the input key / filename for the expected dimensions contained in the |
parse_data |
|
parse_metadata |
|
read |
|
Functions#
get_dims_from_filename
staticmethod
#
Parses the input key / filename for the expected dimensions contained in the file. This is possible because A2e CSV filenames follow a standardized format, e.g.:
- buoy.z07.a0.20221117.001000.metocean.time.1d.a2e.csv
- buoy.z07.a0.20221117.001000.metocean.depth.1d.a2e.csv
- buoy.z07.a0.20221117.001000.metocean.time.depth.2d.a2e.csv
Source code in tsdat/io/readers/a2e_csv_reader.py
parse_data
staticmethod
#
parse_data(
input_key: str,
header_line: int,
dims: list[str],
dtypes: dict[str, str],
) -> xr.Dataset