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.

__init__(filename, filename_info, filetype_info)[source]

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.

__init__(filename, filename_info, filetype_info)[source]

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.core.file_handlers.BaseFileHandler.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)[source]
static _find_input_nc(filename, sensor, l1b_base)[source]
Return type:

str

static _get_data(data, dataset_id)[source]

Get a dataset.

Return type:

DataArray

static _get_nadir_resolution(sensor, filename_info_resolution)[source]

Get nadir resolution.

static _read_axi_fixed_grid(filename, sensor, l1b_attr)[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” ;

Return type:

AreaDefinition

static _read_pug_fixed_grid(projection_coordinates, distance_multiplier=1.0)[source]

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

Return type:

dict

static _remove_attributes(attrs)[source]

Remove attributes that described data before scaling.

Return type:

dict

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

Get metadata.

Return type:

dict

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

Get the platform.

Return type:

str

satpy.readers.clavrx._get_rows_per_scan(sensor)[source]

Get number of rows per scan.

Return type:

Optional[int]

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

Get the sensor.

Return type:

str

satpy.readers.clavrx._scale_data(data_arr, scale_factor, add_offset)[source]

Scale data, if needed.

Return type:

DataArray