tools
Plotting tools and utilities
- icesat2_toolkit.tools.from_cpt(filename, use_extremes=True, **kwargs)[source]
Reads GMT color palette table files and registers the colormap to be recognizable by
plt.cm.get_cmap()
Can import HSV (hue-saturation-value) or RGB values
- Parameters
- filename: str
color palette table file
- use_extremes: bool, default True
use the under, over and bad values from the cpt file
- **kwargs: dict
optional arguments for LinearSegmentedColormap
- icesat2_toolkit.tools.custom_colormap(N, map_name, **kwargs)[source]
Calculates a custom colormap and registers it to be recognizable by
plt.cm.get_cmap()
- Parameters
- N: int
number of slices in initial HSV color map
- map_name: str
name of color map
'Joughin'
: [Joughin2018] standard velocity colormap'Rignot'
: [Rignot2011] standard velocity colormap'Seroussi'
: [Seroussi2011] velocity divergence colormap
- **kwargs: dict
optional arguments for LinearSegmentedColormap
References
- Joughin2018
I. Joughin, B. E. Smith, and I. Howat, “Greenland Ice Mapping Project: ice flow velocity variation at sub-monthly to decadal timescales”, The Cryosphere, 12, 2211–2227, (2018). doi: 10.5194/tc-12-2211-2018
- Rignot2011
E. Rignot J. Mouginot, and B. Scheuchl, “Ice Flow of the Antarctic Ice Sheet”, Science, 333(6048), 1427–1430, (2011). doi: 10.1126/science.1208336
- Seroussi2011
H. Seroussi, M. Morlighem, E. Rignot, E. Larour, D. Aubry, H. Ben Dhia, and S. S. Kristensen, “Ice flux divergence anomalies on 79north Glacier, Greenland”, Geophysical Research Letters, 38(L09501), (2011). doi: 10.1029/2011GL047338