satpy.readers.ici_l1b_nc module

EUMETSAT EPS-SG Ice Cloud Imager (ICI) Level 1B products reader.

The format is explained in the EPS-SG ICI Level 1B Product Format Specification V3A.

This version is applicable for the ici test data released in Jan 2021.

class satpy.readers.ici_l1b_nc.IciL1bNCFileHandler(filename, filename_info, filetype_info, **kwargs)[source]

Bases: NetCDF4FileHandler

Reader class for ICI L1B products in netCDF format.

Read the calibration data and prepare the class for dataset reading.

_calibrate(variable, dataset_info)[source]

Perform the calibration.

Parameters:
  • variable – xarray DataArray containing the dataset to calibrate.

  • dataset_info – dictionary of information about the dataset.

Returns:

array containing the calibrated values and all the

original metadata.

Return type:

DataArray

static _calibrate_bt(radiance, cw, a, b)[source]

Perform the calibration to brightness temperature.

Parameters:
  • radiance – xarray DataArray or numpy ndarray containing the radiance values.

  • cw – center wavenumber [cm-1].

  • a – temperature coefficient [-].

  • b – temperature coefficient [K].

Returns:

array containing the calibrated brightness

temperature values.

Return type:

DataArray

static _drop_coords(variable)[source]

Drop coords that are not in dims.

_fetch_variable(var_key)[source]

Fetch variable.

_filter_variable(variable, dataset_info)[source]

Filter variable in the third dimension.

_get_global_attributes()[source]

Create a dictionary of global attributes.

_get_quality_attributes()[source]

Get quality attributes.

static _get_third_dimension_name(variable)[source]

Get name of the third dimension of the variable.

_interpolate(interpolation_type)[source]

Interpolate from tie points to pixel points.

static _interpolate_geo(longitude, latitude, n_samples)[source]

Perform the interpolation of geographic coordinates from tie points to pixel points.

Parameters:
  • longitude – xarray DataArray containing the longitude dataset to interpolate.

  • latitude – xarray DataArray containing the longitude dataset to interpolate.

  • n_samples – int describing number of samples per scan to interpolate onto.

Returns:

tuple of arrays containing the interpolate values, all the original

metadata and the updated dimension names.

_interpolate_viewing_angle(azimuth, zenith, n_samples)[source]

Perform the interpolation of angular coordinates from tie points to pixel points.

Parameters:
  • azimuth – xarray DataArray containing the azimuth angle dataset to interpolate.

  • zenith – xarray DataArray containing the zenith angle dataset to interpolate.

  • n_samples – int describing number of samples per scan to interpolate onto.

Returns:

tuple of arrays containing the interpolate values, all the original

metadata and the updated dimension names.

_manage_attributes(variable, dataset_info)[source]

Manage attributes of the dataset.

_orthorectify(variable, orthorect_data_name)[source]

Perform the orthorectification.

Parameters:
  • variable – xarray DataArray containing the dataset to correct for orthorectification.

  • orthorect_data_name – name of the orthorectification correction data in the product.

Returns:

array containing the corrected values and all the

original metadata.

Return type:

DataArray

static _standardize_dims(variable)[source]

Standardize dims to y, x.

property end_time

Get observation end time.

get_dataset(dataset_id, dataset_info)[source]

Get dataset using file_key in dataset_info.

property latitude

Get latitude coordinates.

property longitude

Get longitude coordinates.

property longitude_and_latitude

Get longitude and latitude coordinates.

property observation_azimuth

Get observation azimuth angles.

property observation_azimuth_and_zenith

Get observation azimuth and zenith angles.

property observation_zenith

Get observation zenith angles.

property platform_name

Return platform name.

property sensor

Return sensor.

property solar_azimuth

Get solar azimuth angles.

property solar_azimuth_and_zenith

Get solar azimuth and zenith angles.

property solar_zenith

Get solar zenith angles.

property ssp_lon

Return subsatellite point longitude.

property start_time

Get observation start time.

class satpy.readers.ici_l1b_nc.InterpolationType(value)[source]

Bases: Enum

Enum for interpolation types.

LONLAT = 0
OBSERVATION_ANGLES = 2
SOLAR_ANGLES = 1