satpy.tests.writer_tests.test_ninjotiff module

Tests for the NinJoTIFF writer.

class satpy.tests.writer_tests.test_ninjotiff.FakeImage(data, mode)[source]

Bases: object

Fake image.

Init fake image.

get_scaling_from_history()[source]

Return dummy scale and offset.

class satpy.tests.writer_tests.test_ninjotiff.TestNinjoTIFFWriter(methodName='runTest')[source]

Bases: TestCase

The ninjo tiff writer 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 = []
test_P_image_is_uint8(iwsi, save_dataset)[source]

Test that a P-mode image is converted to uint8s.

test_convert_units_other()[source]

Test that other unit conversions are not implemented.

test_convert_units_self()[source]

Test that unit conversion to themselves do nothing.

test_convert_units_temp()[source]

Test that temperature unit conversions works as expected.

test_dataset(iwsd)[source]

Test saving a dataset.

test_dataset_skip_unit_conversion(iwsd)[source]

Test saving a dataset without unit conversion.

test_image(iwsi, save_dataset)[source]

Test saving an image.

test_init()[source]

Test the init.