satpy.tests.reader_tests.test_eum_l2_bufr module

Unittesting the EUMETSAT L2 BUFR reader.

class satpy.tests.reader_tests.test_eum_l2_bufr.L2BufrData(filename, test_data, with_adef=False, rect_lon='default')[source]

Bases: object

Mock L2 BUFR data.

Initialize by mocking test data for testing the L2 BUFR reader.

get_data(dataset_name, key, coordinates)[source]

Read data from mock file.

class satpy.tests.reader_tests.test_eum_l2_bufr.TestL2BufrReader[source]

Bases: object

Test EUMETSAT L2 BUFR Reader.

pytestmark = [Mark(name='parametrize', args=('input_file', ['GIIBUFRProduct_20231027140000Z_00_OMPEFS03_MET10_FES_E0000', 'ASRBUFRProd_20231022224500Z_00_OMPEFS03_MET10_FES_E0000', 'AMVBUFRProd_20231023044500Z_00_OMPEFS02_MET09_FES_E0455', 'MSG2-SEVI-MSGASRE-0101-0101-20191106130000.000000000Z-20191106131702-1362128.bfr', 'W_XX-EUMETSAT-Darmstadt,IMG+SAT,MTI1+FCI-2-ASR--FD------BUFR_C_EUMT_\n             20230623092246_L2PF_IV_20170410170000_20170410171000_V__C_0103_0000.bin', 'W_XX-EUMETSAT-Darmstadt,IMG+SAT,MTI1+FCI-2-AMV--FD------BUFR_C_EUMT_\n20230623092246_L2PF_IV_20170410170000_20170410171000_V__C_0103_0000.bin']), kwargs={})]
test_amv_with_area_def(input_file)[source]

Test that AMV data can not be loaded with an area definition.

The way to test this is to try load a variable with with_adef=True. The reader shall ignore this flag and return a 1D array, not a 2D.

static test_attributes_with_area_definition(input_file)[source]

Test correctness of dataset attributes with data loaded with a AreaDefinition.

static test_attributes_with_swath_definition(input_file)[source]

Test correctness of dataset attributes with data loaded with a SwathDefinition (default behaviour).

test_data_with_area_definition(input_file)[source]

Test data loaded with an area definition.

test_data_with_rect_lon(input_file)[source]

Test data loaded with an area definition and a rectification longitude.

static test_data_with_swath_definition(input_file)[source]

Test data loaded with SwathDefinition (default behaviour).

static test_lonslats(input_file)[source]

Test reading of longitude and latitude data with EUMETSAT L2 BUFR reader.

test_resolution(input_file)[source]

Test data loaded with the correct resolution attribute .