satpy.tests.reader_tests.test_generic_image module
Unittests for generic image reader.
- class satpy.tests.reader_tests.test_generic_image.FakeGenericImageFileHandler(filename, filename_info, filetype_info, file_content, **kwargs)[source]
Bases:
GenericImageFileHandler
Fake file handler.
Get fake file content from ‘get_test_content’.
- satpy.tests.reader_tests.test_generic_image._assert_image_common(scn, channels, start_time, end_time, dtype)[source]
- satpy.tests.reader_tests.test_generic_image._save_image(dset, fname, writer, fill_value=None)[source]
- satpy.tests.reader_tests.test_generic_image.alpha_channel()[source]
Create alpha channel with fully transparent and opaque areas.
- satpy.tests.reader_tests.test_generic_image.random_image_channel_b()
Create random data.
- satpy.tests.reader_tests.test_generic_image.random_image_channel_g()
Create random data.
- satpy.tests.reader_tests.test_generic_image.random_image_channel_l()
Create random data.
- satpy.tests.reader_tests.test_generic_image.random_image_channel_r()
Create random data.
- satpy.tests.reader_tests.test_generic_image.random_image_channel_with_nans()[source]
Create random data and replace a portion of it with NaN values.
- satpy.tests.reader_tests.test_generic_image.reader_l_nan_fill_value(test_image_l_nan_fill_value)[source]
Create GenericImageFileHandler.
- satpy.tests.reader_tests.test_generic_image.rgba_dset(random_image_channel_r, random_image_channel_g, random_image_channel_b, alpha_channel)[source]
Create an RGB dataset.
- satpy.tests.reader_tests.test_generic_image.test_GenericImageFileHandler(test_image_rgba)[source]
Test direct use of the reader.
- satpy.tests.reader_tests.test_generic_image.test_GenericImageFileHandler_datasetid(test_image_rgba)[source]
Test direct use of the reader.
- satpy.tests.reader_tests.test_generic_image.test_GenericImageFileHandler_masking_for_integer(rgba_dset)[source]
Test direct use of the reader for float_data.
- satpy.tests.reader_tests.test_generic_image.test_GenericImageFileHandler_no_masking_for_float(rgba_dset)[source]
Test direct use of the reader for float_data.
- satpy.tests.reader_tests.test_generic_image.test_GenericImageFileHandler_nodata_fill_value(reader_l_nan_fill_value)[source]
Test nodata handling with direct use of the reader with nodata handling: fill_value.
- satpy.tests.reader_tests.test_generic_image.test_GenericImageFileHandler_nodata_nan_mask(reader_l_nan_fill_value)[source]
Test nodata handling with direct use of the reader with nodata handling: nan_mask.
- satpy.tests.reader_tests.test_generic_image.test_GenericImageFileHandler_nodata_nan_mask_default(reader_l_nan_fill_value)[source]
Test nodata handling with direct use of the reader with default nodata handling.
- satpy.tests.reader_tests.test_generic_image.test_geotiff_scene_nan(test_image_l_nan)[source]
Test reading geotiff image with NaN values in it via satpy.Scene().
- satpy.tests.reader_tests.test_generic_image.test_geotiff_scene_nan_fill_value(test_image_l_nan_fill_value)[source]
Test reading geotiff image with fill value set via satpy.Scene().
- satpy.tests.reader_tests.test_generic_image.test_geotiff_scene_rgb(test_image_rgb)[source]
Test reading geotiff image in RGB mode via satpy.Scene().
- satpy.tests.reader_tests.test_generic_image.test_geotiff_scene_rgba(test_image_rgba)[source]
Test reading geotiff image in RGBA mode via satpy.Scene().
- satpy.tests.reader_tests.test_generic_image.test_image_l(tmp_path, random_image_channel_l)[source]
Create a test image with mode L.
- satpy.tests.reader_tests.test_generic_image.test_image_l_nan(tmp_path, random_image_channel_with_nans)[source]
Create a test image with mode L where data has NaN values.
- satpy.tests.reader_tests.test_generic_image.test_image_l_nan_fill_value(tmp_path, random_image_channel_with_nans)[source]
Create a test image with mode L where data has NaN values and fill value is set.
- satpy.tests.reader_tests.test_generic_image.test_image_la(tmp_path, random_image_channel_l, alpha_channel)[source]
Create a test image with mode LA.
- satpy.tests.reader_tests.test_generic_image.test_image_rgb(tmp_path, random_image_channel_r, random_image_channel_g, random_image_channel_b)[source]
Create a test image with mode RGB.
- satpy.tests.reader_tests.test_generic_image.test_image_rgba(tmp_path, rgba_dset)[source]
Create a test image with mode RGBA.