satpy.readers.fci_l2_nc module

Reader for the FCI L2 products in NetCDF4 format.

class satpy.readers.fci_l2_nc.FciL2CommonFunctions[source]

Bases: object

Shared operations for file handlers.

static _add_flag_values_and_meanings(filename, key, variable)[source]

Build flag values and meaning from enum datatype.

_get_global_attributes()[source]

Create a dictionary of global attributes to be added to all datasets.

Returns:

A dictionary of global attributes.

filename: name of the product file spacecraft_name: name of the spacecraft ssp_lon: longitude of subsatellite point sensor: name of sensor platform_name: name of the platform

Return type:

dict

static _mask_data(variable, fill_value)[source]

Set fill_values, as defined in yaml-file, to NaN.

Set data points in variable to NaN if they are equal to fill_value or any of the values in fill_value if fill_value is a list.

_set_attributes(variable, dataset_info, segmented=False)[source]

Set dataset attributes.

_slice_dataset(variable, dataset_info, dimensions)[source]

Slice data if dimension layers have been provided in yaml-file.

property sensor_name

Return instrument name.

property spacecraft_name

Return spacecraft name.

property ssp_lon

Return longitude at subsatellite point.

class satpy.readers.fci_l2_nc.FciL2NCAMVFileHandler(filename, filename_info, filetype_info)[source]

Bases: FciL2CommonFunctions, BaseFileHandler

Reader class for FCI L2 AMV products in NetCDF4 format.

Open the NetCDF file with xarray and prepare for dataset reading.

_get_global_attributes()[source]

Create a dictionary of global attributes to be added to all datasets.

Returns:

A dictionary of global attributes.

filename: name of the product file spacecraft_name: name of the spacecraft sensor: name of sensor platform_name: name of the platform

Return type:

dict

get_dataset(dataset_id, dataset_info)[source]

Get dataset using the nc_key in dataset_info.

property nc

Read the file.

class satpy.readers.fci_l2_nc.FciL2NCFileHandler(filename, filename_info, filetype_info, with_area_definition=True)[source]

Bases: FciL2CommonFunctions, BaseFileHandler

Reader class for FCI L2 products in NetCDF4 format.

Open the NetCDF file with xarray and prepare for dataset reading.

_compute_area_def(dataset_id)[source]

Compute the area definition.

Returns:

A pyresample AreaDefinition object containing the area definition.

Return type:

AreaDefinition

static _decode_clm_test_data(variable, dataset_info)[source]
_get_area_extent()[source]

Calculate area extent of dataset.

_get_proj_area(dataset_id)[source]

Extract projection and area information.

get_area_def(key)[source]

Return the area definition.

get_dataset(dataset_id, dataset_info)[source]

Get dataset using the nc_key in dataset_info.

static get_total_cot(variable)[source]

Sum the cloud optical thickness from the two OCA layers.

The optical thickness has to be transformed to linear space before adding the values from the two layers. The combined/total optical thickness is then transformed back to logarithmic space.

class satpy.readers.fci_l2_nc.FciL2NCSegmentFileHandler(filename, filename_info, filetype_info, with_area_definition=False)[source]

Bases: FciL2CommonFunctions, BaseFileHandler

Reader class for FCI L2 Segmented products in NetCDF4 format.

Open the NetCDF file with xarray and prepare for dataset reading.

_construct_area_def(dataset_id)[source]

Construct the area definition.

Returns:

A pyresample AreaDefinition object containing the area definition.

Return type:

AreaDefinition

static _modify_area_extent(stand_area_extent)[source]

Modify area extent to macth satellite projection.

Area extent has to be modified since the L2 products are stored with the south-east in the upper-right corner (as opposed to north-east in the standardized area definitions).

get_area_def(key)[source]

Return the area definition.

get_dataset(dataset_id, dataset_info)[source]

Get dataset using the nc_key in dataset_info.