satpy.tests.reader_tests.test_amsr2_l2 module

Unit tests for AMSR L2 reader.

class satpy.tests.reader_tests.test_amsr2_l2.FakeHDF5FileHandler2(filename, filename_info, filetype_info, **kwargs)[source]

Bases: FakeHDF5FileHandler

Swap-in HDF5 File Handler.

Get fake file content from ‘get_test_content’.

get_test_content(filename, filename_info, filetype_info)[source]

Mimic reader input file content.

class satpy.tests.reader_tests.test_amsr2_l2.TestAMSR2L2Reader(methodName='runTest')[source]

Bases: TestCase

Test AMSR2 L2 Reader.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.


Wrap HDF5 file handler with our own fake handler.


Stop wrapping the HDF5 file handler.


Test basic init with no extra parameters.


Test loading of basic channels.

yaml_file = 'amsr2_l2.yaml'