satpy.tests.reader_tests.test_amsr2_l2_gaasp module

Tests for the ‘amsr2_l2_gaasp’ reader.

class satpy.tests.reader_tests.test_amsr2_l2_gaasp.TestGAASPReader[source]

Bases: object

Tests for the GAASP reader.

static _check_area(data_id, data_arr)[source]
static _check_attrs(data_arr)[source]
static _check_fill(data_id, data_arr)[source]
setup_method()[source]

Wrap pygrib to read fake data.

test_available_datasets(filenames, expected_datasets)[source]

Test that variables are dynamically discovered.

test_basic_load(filenames, loadable_ids)[source]

Test that variables are loaded properly.

test_reader_creation(filenames, expected_loadables)[source]

Test basic initialization.

yaml_file = 'amsr2_l2_gaasp.yaml'
satpy.tests.reader_tests.test_amsr2_l2_gaasp._create_gridded_gaasp_dataset(filename)[source]

Represent files with gridded products.

satpy.tests.reader_tests.test_amsr2_l2_gaasp._create_one_res_gaasp_dataset(filename)[source]

Represent files with one resolution of variables in them (ex. SOIL).

satpy.tests.reader_tests.test_amsr2_l2_gaasp._create_two_res_gaasp_dataset(filename)[source]

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

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

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