satpy.tests.writer_tests.test_geotiff module

Tests for the geotiff writer.

class satpy.tests.writer_tests.test_geotiff.TestGeoTIFFWriter[source]

Bases: object

Test the GeoTIFF Writer class.

test_colormap_write(tmp_path)[source]

Test writing an image with a colormap.

test_dtype_for_enhance_false(tmp_path)[source]

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

test_dtype_for_enhance_false_and_given_dtype(tmp_path)[source]

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

test_fill_value_from_config(tmp_path)[source]

Test fill_value coming from the writer config.

test_float_write(tmp_path)[source]

Test that geotiffs can be written as floats.

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

test_float_write_with_unit_conversion(tmp_path)[source]

Test that geotiffs can be written as floats and convert units.

test_init()[source]

Test creating the writer with no arguments.

test_scale_offset(input_func, save_kwargs, tmp_path)[source]

Test tags being added.

test_simple_delayed_write(tmp_path)[source]

Test writing can be delayed.

test_simple_write(input_func, tmp_path)[source]

Test basic writer operation.

test_tags(tmp_path)[source]

Test tags being added.

test_tiled_value_from_config(tmp_path)[source]

Test tiled value coming from the writer config.

satpy.tests.writer_tests.test_geotiff._get_test_datasets_2d()[source]

Create a single 2D test dataset.

satpy.tests.writer_tests.test_geotiff._get_test_datasets_2d_nonlinear_enhancement()[source]
satpy.tests.writer_tests.test_geotiff._get_test_datasets_3d()[source]

Create a single 3D test dataset.