satpy.tests.reader_tests.test_mirs module

Module for testing the satpy.readers.tropomi_l2 module.

class satpy.tests.reader_tests.test_mirs.TestMirsL2_NcReader[source]

Bases: object

Test mirs Reader.

static _check_area(data_arr)[source]
static _check_attrs(data_arr, platform_name)[source]
static _check_fill(data_arr)[source]
static _check_fill_value(data_arr, test_fill_value)[source]
static _check_valid_range(data_arr, test_valid_range)[source]
setup_method()[source]

Read fake data.

test_available_datasets(filenames, expected_datasets)[source]

Test that variables are dynamically discovered.

test_basic_load(filenames, loadable_ids, platform_name, reader_kw)[source]

Test that variables are loaded properly.

test_reader_creation(filenames, expected_loadables)[source]

Test basic initialization.

yaml_file = 'mirs.yaml'
satpy.tests.reader_tests.test_mirs._get_datasets_with_attributes(**kwargs)[source]

Represent files with two resolution of variables in them (ex. OCEAN).

satpy.tests.reader_tests.test_mirs._get_datasets_with_less_attributes()[source]

Represent files with two resolution of variables in them (ex. OCEAN).

satpy.tests.reader_tests.test_mirs.fake_coeff_from_fn(fn)[source]

Create Fake Coefficients.

satpy.tests.reader_tests.test_mirs.fake_open_dataset(filename, **kwargs)[source]

Create a Dataset similar to reading an actual file with xarray.open_dataset.