cinrad.io package
cinrad.io.base module
cinrad.io.level2 module
- class cinrad.io.level2.CinradReader(file: Any, radar_type: Optional[str] = None)[source]
Bases:
RadarBase
Class reading old-version CINRAD data.
- Args:
file (str, IO): Path points to the file or a file object.
radar_type (str): Type of the radar.
file_name (str): Name of the file, only used when file argument is a file object.
- get_azimuth_angles(scans: Optional[int] = None) ndarray [source]
Get index of input azimuth angle (radian)
- get_data(tilt: int, drange: Union[int, float], dtype: str) Dataset [source]
Get radar data with extra information
- Args:
tilt (int): Index of elevation angle starting from zero.
drange (float): Radius of data.
dtype (str): Type of product (REF, VEL, etc.)
- Returns:
xarray.Dataset: Data.
- get_raw(tilt: int, drange: Union[int, float], dtype: str) Union[ndarray, tuple] [source]
Get radar raw data
- Args:
tilt (int): Index of elevation angle starting from zero.
drange (float): Radius of data.
dtype (str): Type of product (REF, VEL, etc.)
- Returns:
numpy.ndarray or tuple of numpy.ndarray: Raw data
- class cinrad.io.level2.PhasedArrayData(file)[source]
Bases:
RadarBase
- get_data(tilt: int, drange: Union[int, float], dtype: str) Dataset [source]
Get radar data with extra information
- Args:
tilt (int): Index of elevation angle starting from zero.
drange (float): Radius of data.
dtype (str): Type of product (REF, VEL, etc.)
- Returns:
xarray.Dataset: Data.
- get_raw(tilt: int, drange: Union[int, float], dtype: str) Union[ndarray, tuple] [source]
Get radar raw data
- Args:
tilt (int): Index of elevation angle starting from zero.
drange (float): Radius of data.
dtype (str): Type of product (REF, VEL, etc.)
- Returns:
numpy.ndarray or tuple of numpy.ndarray: Raw data
- class cinrad.io.level2.StandardData(file: Any)[source]
Bases:
RadarBase
Class reading data in standard format.
- Args:
file (str, IO): Path points to the file or a file object.
- get_data(tilt: int, drange: Union[int, float], dtype: str) Dataset [source]
Get radar data with extra information
- Args:
tilt (int): Index of elevation angle starting from zero.
drange (float): Radius of data.
dtype (str): Type of product (REF, VEL, etc.)
- Returns:
xarray.Dataset: Data.
- get_raw(tilt: int, drange: Union[int, float], dtype: str) Union[ndarray, tuple] [source]
Get radar raw data
- Args:
tilt (int): Index of elevation angle starting from zero.
drange (float): Radius of data.
dtype (str): Type of product (REF, VEL, etc.)
- Returns:
numpy.ndarray or tuple of numpy.ndarray: Raw data
cinrad.io.level3 module
- class cinrad.io.level3.PUP(file: Any)[source]
Bases:
RadarBase
Class handling PUP data (Nexrad Level III data)
- Args:
file (str, IO): Path points to the file or a file object.