satpy.tests.writer_tests.test_mitiff module

Tests for the mitiff writer.

Based on the test for geotiff writer

class satpy.tests.writer_tests.test_mitiff.TestMITIFFWriter(methodName='runTest')[source]

Bases: TestCase

Test the MITIFF Writer class.

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 = []
_get_test_dataset(bands=3)[source]

Create a single test dataset.

_get_test_dataset_calibration(bands=6)[source]

Create a single test dataset.

_get_test_dataset_calibration_one_dataset(bands=1)[source]

Create a single test dataset.

_get_test_dataset_three_bands_prereq(bands=3)[source]

Create a single test dataset.

_get_test_dataset_three_bands_two_prereq(bands=3)[source]

Create a single test dataset.

_get_test_dataset_with_bad_values(bands=3)[source]

Create a single test dataset.

_get_test_datasets()[source]

Create a datasets list.

_get_test_datasets_sensor_set()[source]

Create a datasets list.

_get_test_one_dataset()[source]

Create a single test dataset.

_get_test_one_dataset_sensor_set()[source]

Create a single test dataset.

_imagedescription_from_mitiff(filename)[source]
_read_back_mitiff_and_check(filename, expected, test_shape=(100, 200))[source]
setUp()[source]

Create temporary directory to save files to.

tearDown()[source]

Remove the temporary directory created for a test.

test_convert_proj4_string()[source]

Test conversion of geolocations.

test_correction_proj4_string()[source]

Test correction of proj4 lower left coordinate.

test_get_test_dataset_three_bands_prereq()[source]

Test basic writer operation with 3 bands with DataQuery prerequisites with missing name.

test_init()[source]

Test creating the writer with no arguments.

test_save_dataset_palette()[source]

Test writer operation as palette.

test_save_dataset_with_bad_value()[source]

Test writer operation with bad values.

test_save_dataset_with_calibration()[source]

Test writer operation with calibration.

test_save_dataset_with_calibration_error_one_dataset()[source]

Test saving if mitiff as dataset with only one channel with invalid calibration.

test_save_dataset_with_calibration_one_dataset()[source]

Test saving if mitiff as dataset with only one channel.

test_save_dataset_with_missing_palette()[source]

Test saving if mitiff missing palette.

test_save_datasets()[source]

Test basic writer operation save_datasets.

test_save_datasets_sensor_set()[source]

Test basic writer operation save_datasets.

test_save_one_dataset()[source]

Test basic writer operation with one dataset ie. no bands.

test_save_one_dataset_sensor_set()[source]

Test basic writer operation with one dataset ie. no bands.

test_simple_write()[source]

Test basic writer operation.

test_simple_write_two_bands()[source]

Test basic writer operation with 3 bands from 2 prerequisites.