satpy.readers.clavrx module

Interface to CLAVR-X HDF4 products.

class satpy.readers.clavrx.CLAVRXHDF4FileHandler(filename, filename_info, filetype_info)[source]

Bases: HDF4FileHandler, _CLAVRxHelper

A file handler for CLAVRx files.

Init method.

_available_aliases(ds_info, current_var)[source]

Add alias if there is a match.

_dynamic_datasets()[source]

Get data from file and build aliases.

_is_polar()[source]
available_datasets(configured_datasets=None)[source]

Add more information if this reader can provide it.

property end_time

Get the end time.

get_area_def(key)[source]

Get the area definition of the data at hand.

get_dataset(dataset_id, ds_info)[source]

Get a dataset for Polar Sensors.

get_shape(dataset_id, ds_info)[source]

Get the shape.

property start_time

Get the start time.

class satpy.readers.clavrx.CLAVRXNetCDFFileHandler(filename, filename_info, filetype_info)[source]

Bases: _CLAVRxHelper, BaseFileHandler

File Handler for CLAVRX netcdf files.

Init method.

_available_file_datasets(handled_vars)[source]

Metadata for available variables other than BT.

_dynamic_dataset_info(var_name)[source]

Set data name and, if applicable, aliases.

static _is_2d_yx_data_array(data_arr)[source]
_is_polar()[source]
available_datasets(configured_datasets=None)[source]

Dynamically discover what variables can be loaded from this file.

See satpy.readers.file_handlers.BaseHandler.available_datasets() for more information.

get_area_def(key)[source]

Get the area definition of the data at hand.

get_dataset(dataset_id, ds_info)[source]

Get a dataset for supported geostationary sensors.

class satpy.readers.clavrx._CLAVRxHelper[source]

Bases: object

A base class for the CLAVRx File Handlers.

static _area_extent(x, y, h: float)[source]
static _find_input_nc(filename: str, sensor: str, l1b_base: str) str[source]
static _get_data(data, dataset_id: dict) DataArray[source]

Get a dataset.

static _get_nadir_resolution(sensor, filename_info_resolution)[source]

Get nadir resolution.

static _read_axi_fixed_grid(filename: str, sensor: str, l1b_attr) AreaDefinition[source]

Read a fixed grid.

CLAVR-x does not transcribe fixed grid parameters to its output We have to recover that information from the original input file, which is partially named as L1B attribute

example attributes found in L2 CLAVR-x files: sensor = “AHI” ; platform = “HIM8” ; FILENAME = “clavrx_H08_20180719_1300.level2.hdf” ; L1B = “clavrx_H08_20180719_1300” ;

static _read_pug_fixed_grid(projection_coordinates: netCDF4.Variable, distance_multiplier=1.0) dict[source]

Read from recent PUG format, where axes are in meters.

static _remove_attributes(attrs: dict) dict[source]

Remove attributes that described data before scaling.

static get_metadata(sensor: str, platform: str, attrs: dict, ds_info: dict) dict[source]

Get metadata.

satpy.readers.clavrx._get_platform(platform: str) str[source]

Get the platform.

satpy.readers.clavrx._get_rows_per_scan(sensor: str) int | None[source]

Get number of rows per scan.

satpy.readers.clavrx._get_sensor(sensor: str) str[source]

Get the sensor.

satpy.readers.clavrx._scale_data(data_arr: DataArray | int, scale_factor: float, add_offset: float) DataArray[source]

Scale data, if needed.