satpy.tests.reader_tests.test_viirs_edr_active_fires module

VIIRS Active Fires Tests.

This module implements tests for VIIRS Active Fires NetCDF and ASCII file readers.

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

Bases: FakeNetCDF4FileHandler

Swap in CDF4 file handler.

Get fake file content from ‘get_test_content’.

get_test_content(filename, filename_info, filename_type)[source]

Mimic reader input file content.

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

Bases: BaseFileHandler

Fake file handler for text files at image resolution.

Get fake file content from ‘get_test_content’.

get_test_content()[source]

Create fake test file content.

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

Bases: FakeNetCDF4FileHandler

Swap in CDF4 file handler.

Get fake file content from ‘get_test_content’.

get_test_content(filename, filename_info, filename_type)[source]

Mimic reader input file content.

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

Bases: BaseFileHandler

Fake file handler for text files at moderate resolution.

Get fake file content from ‘get_test_content’.

get_test_content()[source]

Create fake test file content.

class satpy.tests.reader_tests.test_viirs_edr_active_fires.TestImgVIIRSActiveFiresNetCDF4(methodName='runTest')[source]

Bases: TestCase

Test VIIRS Fires 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.

_classSetupFailed = False
_class_cleanups = []
setUp()[source]

Wrap CDF4 file handler with own fake file handler.

tearDown()[source]

Stop wrapping the CDF4 file handler.

test_init()[source]

Test basic init with no extra parameters.

test_load_dataset()[source]

Test loading all datasets.

yaml_file = 'viirs_edr_active_fires.yaml'
class satpy.tests.reader_tests.test_viirs_edr_active_fires.TestImgVIIRSActiveFiresText(methodName='runTest')[source]

Bases: TestCase

Test VIIRS Fires 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.

_classSetupFailed = False
_class_cleanups = []
setUp()[source]

Wrap file handler with own fake file handler.

tearDown()[source]

Stop wrapping the text file handler.

test_init(mock_obj)[source]

Test basic init with no extra parameters.

test_load_dataset(mock_obj)[source]

Test loading all datasets.

yaml_file = 'viirs_edr_active_fires.yaml'
class satpy.tests.reader_tests.test_viirs_edr_active_fires.TestModVIIRSActiveFiresNetCDF4(methodName='runTest')[source]

Bases: TestCase

Test VIIRS Fires 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.

_classSetupFailed = False
_class_cleanups = []
setUp()[source]

Wrap CDF4 file handler with own fake file handler.

tearDown()[source]

Stop wrapping the CDF4 file handler.

test_init()[source]

Test basic init with no extra parameters.

test_load_dataset()[source]

Test loading all datasets.

yaml_file = 'viirs_edr_active_fires.yaml'
class satpy.tests.reader_tests.test_viirs_edr_active_fires.TestModVIIRSActiveFiresText(methodName='runTest')[source]

Bases: TestCase

Test VIIRS Fires 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.

_classSetupFailed = False
_class_cleanups = []
setUp()[source]

Wrap file handler with own fake file handler.

tearDown()[source]

Stop wrapping the text file handler.

test_init(mock_obj)[source]

Test basic init with no extra parameters.

test_load_dataset(csv_mock)[source]

Test loading all datasets.

yaml_file = 'viirs_edr_active_fires.yaml'