identify_geotiff_cmap

eomaps.reader.identify_geotiff_cmap(path, band=1)

Identify GeoTIFF colormap.

Check if a GeoTiff file contains a color specification and return appropriate colormap and classify-specs to plot the data

Parameters:
  • path (str) – The path to the GeoTIFF file.

  • band (int) – The band to use for identifying the colormap.

Returns:

  • cmap (matplotlib colormap) – The identified colormap

  • classify_specs (dict) – A dict that can be used as classify-specs.