satpy.tests.reader_tests.test_nucaps module

Module for testing the satpy.readers.nucaps module.

class satpy.tests.reader_tests.test_nucaps.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: 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_nucaps.TestNUCAPSReader(methodName='runTest')[source]

Bases: TestCase

Test NUCAPS 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 NetCDF4 file handler with our own fake handler.

tearDown()[source]

Stop wrapping the NetCDF4 file handler.

test_init()[source]

Test basic init with no extra parameters.

test_init_with_kwargs()[source]

Test basic init with extra parameters.

test_load_individual_pressure_levels_min_max()[source]

Test loading individual Temperature with min/max level specified.

test_load_individual_pressure_levels_single()[source]

Test loading individual Temperature with specific levels.

test_load_individual_pressure_levels_true()[source]

Test loading Temperature with individual pressure datasets.

test_load_multiple_files_pressure()[source]

Test loading Temperature from multiple input files.

test_load_nonpressure_based()[source]

Test loading all channels that aren’t based on pressure.

test_load_pressure_based()[source]

Test loading all channels based on pressure.

test_load_pressure_levels_min_max()[source]

Test loading Temperature with min/max level specified.

test_load_pressure_levels_single()[source]

Test loading a specific Temperature level.

test_load_pressure_levels_single_and_pressure_levels()[source]

Test loading a specific Temperature level and pressure levels.

test_load_pressure_levels_true()[source]

Test loading Temperature with all pressure levels.

yaml_file = 'nucaps.yaml'
class satpy.tests.reader_tests.test_nucaps.TestNUCAPSScienceEDRReader(methodName='runTest')[source]

Bases: TestCase

Test NUCAPS Science EDR 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 NetCDF4 file handler with our own fake handler.

tearDown()[source]

Stop wrapping the NetCDF4 file handler.

test_init()[source]

Test basic init with no extra parameters.

test_load_individual_pressure_levels_min_max()[source]

Test loading individual Temperature with min/max level specified.

test_load_individual_pressure_levels_single()[source]

Test loading individual Temperature with specific levels.

test_load_individual_pressure_levels_true()[source]

Test loading Temperature with individual pressure datasets.

test_load_nonpressure_based()[source]

Test loading all channels that aren’t based on pressure.

test_load_pressure_based()[source]

Test loading all channels based on pressure.

test_load_pressure_levels_min_max()[source]

Test loading Temperature with min/max level specified.

test_load_pressure_levels_single()[source]

Test loading a specific Temperature level.

test_load_pressure_levels_single_and_pressure_levels()[source]

Test loading a specific Temperature level and pressure levels.

test_load_pressure_levels_true()[source]

Test loading Temperature with all pressure levels.

yaml_file = 'nucaps.yaml'