mao_merge_45m.antenna module#

class Antenna(antenna_azimuth: Union[Azimuth, Any] = 0.0, antenna_elevation: Union[Elevation, Any] = 0.0)[source]#

Bases: AsDataset

Representation of antenna logs in xarray.

Parameters
  • antenna_azimuth (Union[Azimuth, Any]) –

  • antenna_elevation (Union[Elevation, Any]) –

Return type

None

antenna_azimuth: Union[mao_merge_45m.antenna.Azimuth, Any] = 0.0#

Azimuth of an antenna.

antenna_elevation: Union[mao_merge_45m.antenna.Elevation, Any] = 0.0#

Elevation of an antenna.

class Azimuth(data: Annotated[Union[xarray_dataclasses.typing.Labeled[Literal['time']], Collection[float], float], <Role.DATA: 'data'>] = 0.0, long_name: typing.Annotated[str, <Role.ATTR: 'attr'>] = 'Azimuth', units: typing.Annotated[str, <Role.ATTR: 'attr'>] = 'degree')[source]#

Bases: object

Parameters
  • data (Union[Labeled[Literal['time']], Collection[float], float]) –

  • long_name (str) –

  • units (str) –

Return type

None

data: Union[xarray_dataclasses.typing.Labeled[Literal['time']], Collection[float], float] = 0.0#
long_name: str = 'Azimuth'#
units: str = 'degree'#
class Elevation(data: Annotated[Union[xarray_dataclasses.typing.Labeled[Literal['time']], Collection[float], float], <Role.DATA: 'data'>] = 0.0, long_name: typing.Annotated[str, <Role.ATTR: 'attr'>] = 'Elevation', units: typing.Annotated[str, <Role.ATTR: 'attr'>] = 'degree')[source]#

Bases: object

Parameters
  • data (Union[Labeled[Literal['time']], Collection[float], float]) –

  • long_name (str) –

  • units (str) –

Return type

None

data: Union[xarray_dataclasses.typing.Labeled[Literal['time']], Collection[float], float] = 0.0#
long_name: str = 'Elevation'#
units: str = 'degree'#
convert(path_log: Union[Sequence[Path], Path], path_zarr: Optional[Path] = None, *, length_per_chunk: int = 1000000, overwrite: bool = False, progress: bool = False) Path[source]#

Convert a raw log file(s) to a formatted Zarr file.

This function will make a one-dimensional antenna log outputs with time metadata derived from the raw log file.

Parameters
  • path_log (Union[Sequence[Path], Path]) – Path(s) of the raw log file(s).

  • path_zarr (Optional[Path]) – Path of the formatted Zarr file (optional).

  • length_per_chunk (int) – Length per chunk in the Zarr file.

  • overwrite (bool) – Whether to overwrite the formatted Zarr file if exists.

  • progress (bool) – Whether to show a progress bar.

Returns

Path of the formatted Zarr file.

Raises

FileExistsError – Raised if the formatted Zarr file exists and overwriting is not allowed (default).

Return type

Path

Notes

The timezone of the Zarr file is not JST but UTC.