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[source]

Bases: object

Test the AMI L1b reader.

_check_orbital_parameters(orb_params)[source]

Check that orbital parameters match expected values.

test_bad_calibration()[source]

Test that asking for a bad calibration fails.

test_basic_attributes(fake_vis_reader)[source]

Test getting basic file attributes.

test_filename_grouping()[source]

Test that filenames are grouped properly.

test_get_area_def(adef, fake_vis_reader)[source]

Test the area generation.

test_get_dataset(fake_vis_reader)[source]

Test getting radiance data.

test_get_dataset_counts(fake_vis_reader)[source]

Test get counts data.

test_get_dataset_vis(fake_vis_reader)[source]

Test get visible calibrated data.

class satpy.tests.reader_tests.test_ami_l1b.TestAMIL1bNetCDFIRCal[source]

Bases: object

Test IR specific things about the AMI reader.

ds_id = {'calibration': <calibration.brightness_temperature>, 'modifiers': (), 'name': 'IR087', 'wavelength': (8.415, 8.59, 8.765, 'µm')}
ds_info = {'file_key': 'image_pixel_values', 'standard_name': 'toa_brightness_temperature', 'units': 'K', 'wavelength': [8.415, 8.59, 8.765]}
test_clipneg(fake_ir_reader2, clip)[source]

Test that negative radiances are clipped.

test_default_calibrate(fake_ir_reader)[source]

Test default (pyspectral) IR calibration.

test_gsics_radiance_corr(fake_ir_reader)[source]

Test IR radiance adjustment using in-file GSICS coefs.

test_infile_calibrate(fake_ir_reader)[source]

Test IR calibration using in-file coefficients.

test_user_radiance_corr(fake_ir_reader)[source]

Test IR radiance adjustment using user-supplied coefs.

satpy.tests.reader_tests.test_ami_l1b._fake_ir_attrs()[source]
satpy.tests.reader_tests.test_ami_l1b._fake_reader(counts_data: DataArray) Iterator[AMIL1bNetCDF][source]
satpy.tests.reader_tests.test_ami_l1b._fake_vis_attrs()[source]
satpy.tests.reader_tests.test_ami_l1b._get_fake_counts(rad_data: ndarray, attrs: dict) DataArray[source]
satpy.tests.reader_tests.test_ami_l1b.fake_ir_reader()[source]

Create fake reader for loading IR data.

satpy.tests.reader_tests.test_ami_l1b.fake_ir_reader2()[source]

Create fake reader for testing radiance clipping.

satpy.tests.reader_tests.test_ami_l1b.fake_vis_reader()[source]

Create fake reader for loading visible data.