satpy.tests.reader_tests.test_viirs_l1b module

Module for testing the satpy.readers.viirs_l1b module.

class satpy.tests.reader_tests.test_viirs_l1b.FakeNetCDF4FileHandler2(filename, filename_info, filetype_info, auto_maskandscale=False, xarray_kwargs=None, cache_var_size=0, cache_handle=False, extra_file_content=None)[source]

Bases: satpy.tests.reader_tests.test_netcdf_utils.FakeNetCDF4FileHandler

Swap-in NetCDF4 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_viirs_l1b.TestVIIRSL1BReader[source]

Bases: object

Test VIIRS L1B Reader.

setup_method()[source]

Wrap NetCDF4 file handler with our own fake handler.

teardown_method()[source]

Stop wrapping the NetCDF4 file handler.

test_init()[source]

Test basic init with no extra parameters.

test_load_dnb_angles()[source]

Test loading all DNB angle datasets.

test_load_dnb_radiance()[source]

Test loading the main DNB dataset.

test_load_every_m_band_bt()[source]

Test loading all M band brightness temperatures.

test_load_every_m_band_rad()[source]

Test loading all M bands as radiances.

test_load_every_m_band_refl()[source]

Test loading all M band reflectances.

yaml_file = 'viirs_l1b.yaml'