1.5.1.2.4. polar2grid.add_colormap module

Add a colortable to an existing GeoTIFF.

polar2grid.add_colormap.add_colortable(gtiff_ds, ct_dict)[source]
polar2grid.add_colormap.create_colortable(ct_file_or_entries)[source]

Create GDAL ColorTable object from Colormap object.

polar2grid.add_colormap.get_parser()[source]
polar2grid.add_colormap.load_color_table_file_to_colormap(ct_file)[source]

Load a text colormap file and create a trollimage.Colormap object.

If the provided pathname includes $POLAR2GRID_HOME it will be replaced with the current environment variable value of POLAR2GRID_HOME.

polar2grid.add_colormap.main(argv=['-b', 'html', '-d', 'build/doctrees', 'source', 'build/html'])[source]