satpy.tests.reader_tests.test_abi_l1b module

The abi_l1b reader tests package.

class satpy.tests.reader_tests.test_abi_l1b.TestABIYAML[source]

Bases: object

Tests for the ABI L1b reader’s YAML configuration.

test_file_patterns_match(channel, suffix)[source]

Test that the configured file patterns work.

class satpy.tests.reader_tests.test_abi_l1b.Test_NC_ABI_File(methodName='runTest')[source]

Bases: TestCase

Test file opening.

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 = []
test_open_dataset(_)[source]

Test openning a dataset.

class satpy.tests.reader_tests.test_abi_l1b.Test_NC_ABI_L1B(methodName='runTest')[source]

Bases: Test_NC_ABI_L1B_Base

Test the NC_ABI_L1B 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 = []
test_basic_attributes()[source]

Test getting basic file attributes.

test_get_area_def(adef)[source]

Test the area generation.

test_get_dataset()[source]

Test the get_dataset method.

class satpy.tests.reader_tests.test_abi_l1b.Test_NC_ABI_L1B_Base(methodName='runTest')[source]

Bases: TestCase

Common setup for NC_ABI_L1B tests.

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(xr_, rad=None, clip_negative_radiances=False)[source]

Create a fake dataset using the given radiance data.

class satpy.tests.reader_tests.test_abi_l1b.Test_NC_ABI_L1B_H5netcdf(methodName='runTest')[source]

Bases: Test_NC_ABI_L1B

Allow h5netcdf peculiarities.

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]

Create fake data for the tests.

class satpy.tests.reader_tests.test_abi_l1b.Test_NC_ABI_L1B_clipped_ir_cal(methodName='runTest')[source]

Bases: Test_NC_ABI_L1B_Base

Test the NC_ABI_L1B reader’s IR calibration (clipping negative radiance).

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]

Create fake data for the tests.

test_clip_negative_radiances_attribute()[source]

Assert that clip_negative_radiances has been set to True.

test_get_minimum_radiance()[source]

Test get_minimum_radiance from Rad DataArray.

test_ir_calibrate()[source]

Test IR calibration.

class satpy.tests.reader_tests.test_abi_l1b.Test_NC_ABI_L1B_invalid_cal(methodName='runTest')[source]

Bases: Test_NC_ABI_L1B_Base

Test the NC_ABI_L1B reader with invalid calibration.

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 = []
test_invalid_calibration()[source]

Test detection of invalid calibration values.

class satpy.tests.reader_tests.test_abi_l1b.Test_NC_ABI_L1B_ir_cal(methodName='runTest')[source]

Bases: Test_NC_ABI_L1B_Base

Test the NC_ABI_L1B reader’s default IR calibration.

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]

Create fake data for the tests.

test_clip_negative_radiances_attribute()[source]

Assert that clip_negative_radiances is set to False.

test_ir_calibrate()[source]

Test IR calibration.

test_ir_calibration_attrs()[source]

Test IR calibrated DataArray attributes.

class satpy.tests.reader_tests.test_abi_l1b.Test_NC_ABI_L1B_raw_cal(methodName='runTest')[source]

Bases: Test_NC_ABI_L1B_Base

Test the NC_ABI_L1B reader raw calibration.

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]

Create fake data for the tests.

test_raw_calibrate()[source]

Test RAW calibration.

class satpy.tests.reader_tests.test_abi_l1b.Test_NC_ABI_L1B_vis_cal(methodName='runTest')[source]

Bases: Test_NC_ABI_L1B_Base

Test the NC_ABI_L1B 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]

Create fake data for the tests.

test_vis_calibrate()[source]

Test VIS calibration.

satpy.tests.reader_tests.test_abi_l1b._create_fake_rad_dataarray(rad=None)[source]
satpy.tests.reader_tests.test_abi_l1b._create_fake_rad_dataset(rad=None)[source]