satpy.tests.reader_tests.test_ami_l1b module

The ami_l1b reader tests package.

class satpy.tests.reader_tests.test_ami_l1b.FakeDataset(info, attrs)[source]

Bases: object

Mimic xarray Dataset object.

Initialize test data.

close()[source]

Act like close method.

rename(*args, **kwargs)[source]

Mimic rename method.

class satpy.tests.reader_tests.test_ami_l1b.TestAMIL1bNetCDF(methodName='runTest')[source]

Bases: TestAMIL1bNetCDFBase

Test the AMI 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.

_check_orbital_parameters(orb_params)[source]

Check that orbital parameters match expected values.

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

Test that asking for a bad calibration fails.

test_basic_attributes()[source]

Test getting basic file attributes.

test_filename_grouping()[source]

Test that filenames are grouped properly.

test_get_area_def(adef)[source]

Test the area generation.

test_get_dataset()[source]

Test gettting radiance data.

test_get_dataset_counts()[source]

Test get counts data.

test_get_dataset_vis()[source]

Test get visible calibrated data.

class satpy.tests.reader_tests.test_ami_l1b.TestAMIL1bNetCDFBase(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_, counts=None)[source]

Create a fake dataset using the given counts data.

class satpy.tests.reader_tests.test_ami_l1b.TestAMIL1bNetCDFIRCal(methodName='runTest')[source]

Bases: TestAMIL1bNetCDFBase

Test IR specific things about the AMI 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 test data for IR calibration tests.

test_default_calibrate()[source]

Test default (pyspectral) IR calibration.

test_gsics_radiance_corr()[source]

Test IR radiance adjustment using in-file GSICS coefs.

test_infile_calibrate()[source]

Test IR calibration using in-file coefficients.

test_user_radiance_corr()[source]

Test IR radiance adjustment using user-supplied coefs.