satpy.tests.reader_tests.test_seviri_l1b_nc module

The HRIT msg reader tests package.

class satpy.tests.reader_tests.test_seviri_l1b_nc.TestNCSEVIRIFileHandler[source]

Bases: TestFileHandlerCalibrationBase

Unit tests for SEVIRI netCDF reader.

file_handler(counts, h5netcdf)[source]

Create a mocked file handler.

h5netcdf()[source]

Fixture for xr backend choice.

test_calibrate(file_handler, channel, calibration, use_ext_coefs)[source]

Test the calibration.

test_get_dataset(file_handler, channel, calibration)[source]

Test getting the dataset.

test_h5netcdf_pecularity(file_handler, h5netcdf)[source]

Test conversion of attributes when xarray is used with h5netcdf backend.

test_satpos_no_valid_orbit_polynomial(file_handler)[source]

Test satellite position if there is no valid orbit polynomial.

satpy.tests.reader_tests.test_seviri_l1b_nc.to_cds_time(time)[source]

Convert datetime to (days, msecs) since 1958-01-01.