1.5.1.1.9.2.6. polar2grid.tests.test_add_coastlines module

Basic usability tests for the add_coastlines script.

polar2grid.tests.test_add_coastlines._check_exp_image_colors(image_arr, colormap, color_idx, has_colors)[source]
polar2grid.tests.test_add_coastlines._check_used_colormap(passed_cmap, has_colors, include_cmap_tag, include_scale_offset)[source]
polar2grid.tests.test_add_coastlines._create_csv_cmap_and_extra_tags(colormap)[source]
polar2grid.tests.test_add_coastlines._create_fake_l_geotiff(fp, colormap=None, include_scale_offset=False, include_colormap_tag=False)[source]
polar2grid.tests.test_add_coastlines._create_fake_l_geotiff_colormap(fp, colormap=None, include_scale_offset=False, include_colormap_tag=False)[source]
polar2grid.tests.test_add_coastlines._create_fake_rgb_geotiff(fp, colormap=None, include_scale_offset=False, include_colormap_tag=False)[source]
polar2grid.tests.test_add_coastlines._shared_fake_geotiff_kwargs(num_bands)[source]
polar2grid.tests.test_add_coastlines._shared_fake_l_geotiff_data(colormap: dict[int, tuple])[source]
polar2grid.tests.test_add_coastlines._shared_fake_rgb_geotiff_data(colormap: dict[int, tuple])[source]
polar2grid.tests.test_add_coastlines.mocked_pydecorate_add_scale()[source]
polar2grid.tests.test_add_coastlines.test_add_coastlines_bad_output_filenames(add_overlay_mock, tmp_path)[source]
polar2grid.tests.test_add_coastlines.test_add_coastlines_basic(add_overlay_mock, tmp_path, gen_func, include_scale_offset, include_cmap_tag, output_ext, colormap)[source]
polar2grid.tests.test_add_coastlines.test_add_coastlines_help()[source]
polar2grid.tests.test_add_coastlines.test_add_coastlines_multiple_inputs(add_overlay_mock, tmp_path)[source]