satpy.tests.reader_tests.test_viirs_sdr module
Module for testing the satpy.readers.viirs_sdr module.
- class satpy.tests.reader_tests.test_viirs_sdr.FakeHDF5FileHandler2(filename, filename_info, filetype_info, include_factors=True)[source]
Bases:
FakeHDF5FileHandler
Swap-in HDF5 File Handler.
Create fake file handler.
- class satpy.tests.reader_tests.test_viirs_sdr.FakeHDF5FileHandlerAggr(filename, filename_info, filetype_info, include_factors=True)[source]
Bases:
FakeHDF5FileHandler2
Swap-in HDF5 File Handler with 4 VIIRS Granules per file.
Create fake file handler.
- class satpy.tests.reader_tests.test_viirs_sdr.FakeShortHDF5FileHandlerAggr(filename, filename_info, filetype_info, include_factors=True)[source]
Bases:
FakeHDF5FileHandler2
Fake file that has less scans than usual in a couple granules.
Create fake file handler.
- class satpy.tests.reader_tests.test_viirs_sdr.TestAggrVIIRSSDRReader(methodName='runTest')[source]
Bases:
TestCase
Test VIIRS SDR 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.
- yaml_file = 'viirs_sdr.yaml'
- class satpy.tests.reader_tests.test_viirs_sdr.TestShortAggrVIIRSSDRReader(methodName='runTest')[source]
Bases:
TestCase
Test VIIRS SDR Reader with a file that has truncated granules.
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.
- yaml_file = 'viirs_sdr.yaml'
- class satpy.tests.reader_tests.test_viirs_sdr.TestVIIRSSDRReader(methodName='runTest')[source]
Bases:
TestCase
Test VIIRS SDR 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.
- test_init_start_time_is_nodate()[source]
Test basic init with start_time being set to the no-date 1/1-1958.
- test_load_all_i_reflectances_provided_geo()[source]
Load all I band reflectances with geo files provided.
- test_load_all_m_reflectances_find_geo()[source]
Load all M band reflectances with geo files not specified but existing.
- test_load_all_m_reflectances_no_geo()[source]
Load all M band reflectances with no geo files provided.
- test_load_all_m_reflectances_provided_geo()[source]
Load all M band reflectances with geo files provided.
- test_load_all_m_reflectances_use_nontc()[source]
Load all M band reflectances but use non-TC geolocation.
- test_load_all_m_reflectances_use_nontc2()[source]
Load all M band reflectances but use non-TC geolocation because TC isn’t available.
- test_load_dnb_sza_no_factors()[source]
Load DNB solar zenith angle with no scaling factors.
The angles in VIIRS SDRs should never have scaling factors so we test it that way.
- yaml_file = 'viirs_sdr.yaml'