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.

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

Automatically determine datasets provided by this file.

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.

get_nadir_resolution(sensor)[source]

Get nadir resolution.

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_new_datasets(handled_vars)[source]

Metadata for available variables other than BT.

_get_ds_info_for_data_arr(var_name)[source]
_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.

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, l1b_base: str) str[source]
static _get_data(data, dataset_id: dict) DataArray[source]

Get a dataset.

static _read_axi_fixed_grid(filename: 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 _scale_data(data_arr: DataArray | int, scale_factor: float, add_offset: float) DataArray[source]

Scale data, if needed.

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.