satpy.tests.writer_tests.test_geotiff module

Tests for the geotiff writer.

class satpy.tests.writer_tests.test_geotiff.TestGeoTIFFWriter(methodName='runTest')[source]

Bases: unittest.case.TestCase

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

setUp()[source]

Create temporary directory to save files to.

tearDown()[source]

Remove the temporary directory created for a test.

test_colormap_write()[source]

Test writing an image with a colormap.

test_dtype_for_enhance_false()[source]

Test that dtype of dataset is used if parameters enhance=False and dtype=None.

test_dtype_for_enhance_false_and_given_dtype()[source]

Test that dtype of dataset is used if enhance=False and dtype=uint8.

test_fill_value_from_config()[source]

Test fill_value coming from the writer config.

test_float_write()[source]

Test that geotiffs can be written as floats.

NOTE: Does not actually check that the output is floats.

test_init()[source]

Test creating the writer with no arguments.

test_scale_offset()[source]

Test tags being added.

test_simple_delayed_write()[source]

Test writing can be delayed.

test_simple_write()[source]

Test basic writer operation.

test_tags()[source]

Test tags being added.

test_tiled_value_from_config()[source]

Test tiled value coming from the writer config.