Transform#
Transform CF-Radial#
This module provides the utilities to convert between CfRadial1 and CfRadial2 formats, following WMO guidelines for radar data processing.
Convert a CfRadial1 Dataset to CfRadial2 DataTree. |
|
Convert a radar xarray.DataTree to the CFRadial1 format and save it to a file. |
to_cfradial1#
Convert a xarray.DataTree object to CfRadial1 format. The output is an xarray.Dataset following the CfRadial1 standard, which can be used for radar data visualization and further processing.
- Parameters:
- dtree: xarray.DataTree
Radar xarray object to convert.
- filename: str (optional)
Output file name for the CfRadial1 dataset.
- calibs: bool (default: True)
Whether to include calibration parameters.
- Returns:
- dataset: xarray.Dataset
Converted dataset in CfRadial1 format.
to_cfradial2#
Convert a xarray.Dataset object to CfRadial2 format by mapping the structure back into a xarray.DataTree.
- Parameters:
- ds: xarray.Dataset
CfRadial1 dataset to convert.
- kwargs: dict
Additional keyword arguments for controlling the conversion, such as specifying sweeps or metadata inclusion.
- Returns:
- dtree: xarray.DataTree
Converted data tree in CfRadial2 format.