satpy.readers.seviri_l1b_nc module

SEVIRI netcdf format reader.

class satpy.readers.seviri_l1b_nc.NCSEVIRIFileHandler(filename, filename_info, filetype_info, ext_calib_coefs=None, mask_bad_quality_scan_lines=True)[source]

Bases: BaseFileHandler

File handler for NC seviri files.

Calibration

See satpy.readers.seviri_base. Note that there is only one set of calibration coefficients available in the netCDF files and therefore there is no calib_mode argument.

Metadata

See satpy.readers.seviri_base.

Init the file handler.

calibrate(dataset, dataset_id)[source]

Calibrate the data.

property end_time

Get the end time.

get_area_def(dataset_id)[source]

Get the area def.

Note that the AreaDefinition area extents returned by this function for NetCDF data will be slightly different compared to the area extents returned by the SEVIRI HRIT reader. This is due to slightly different pixel size values when calculated using the data available in the files. E.g. for the 3 km grid:

NetCDF:  self.nc.attrs['vis_ir_column_dir_grid_step'] == 3000.4031658172607 HRIT: np.deg2rad(2.**16 / pdict['lfac']) * pdict['h'] == 3000.4032785810186

This results in the Native 3 km full-disk area extents being approx. 20 cm shorter in each direction.

The method for calculating the area extents used by the HRIT reader (CFAC/LFAC mechanism) keeps the highest level of numeric precision and is used as reference by EUM. For this reason, the standard area definitions defined in the areas.yaml file correspond to the HRIT ones.

get_area_extent(dsid)[source]

Get the area extent.

get_dataset(dataset_id, dataset_info)[source]

Get the dataset.

get_metadata()[source]

Get metadata.

property nc

Read the file.

property satpos

Get actual satellite position in geodetic coordinates (WGS-84).

Evaluate orbit polynomials at the start time of the scan.

Returns: Longitude [deg east], Latitude [deg north] and Altitude [m]

property start_time

Get the start time.

class satpy.readers.seviri_l1b_nc.NCSEVIRIHRVFileHandler(filename, filename_info, filetype_info, ext_calib_coefs=None, mask_bad_quality_scan_lines=True)[source]

Bases: NCSEVIRIFileHandler, SEVIRICalibrationHandler

HRV filehandler.

Init the file handler.

get_area_extent(dsid)[source]

Get HRV area extent.

get_dataset(dataset_id, dataset_info)[source]

Get dataset from file.