Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uba/cmap2png
Useful script to convert a color map definition to PNG image file.
https://github.com/uba/cmap2png
colormap converter cpt data-science data-visualization matplotlib plot png python
Last synced: 3 days ago
JSON representation
Useful script to convert a color map definition to PNG image file.
- Host: GitHub
- URL: https://github.com/uba/cmap2png
- Owner: uba
- License: gpl-3.0
- Created: 2020-04-02T19:57:42.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-14T15:05:07.000Z (10 months ago)
- Last Synced: 2024-11-15T03:55:15.644Z (2 months ago)
- Topics: colormap, converter, cpt, data-science, data-visualization, matplotlib, plot, png, python
- Language: Python
- Size: 136 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cmap2png
Useful script to convert a color map definition to PNG image file.## Usage
```
cmap2png.py [-h] cmapType cmapId min max tick label outputpositional arguments:
cmapType Colormap type: [cpt, h2g or matplotlib]
cmapId Colormap identifier or path to colormap file
min Legend minimum value
max Legend maximum value
tick Legend tick frequency
label Legend label
output Result output pathoptional arguments:
-h, --help show this help message and exit
```
## Examples
```bash
cmap2png.py matplotlib Greys -55.0 72.0 10.0 "Brightness Temperature ($^{\circ}$C)" legend-celsius-en.png
```
```bash
cmap2png.py cpt WVCOLOR35.cpt -100.0 100.0 20.0 "My awesome label" legend.png
```## Build-All
![](legends/goes-ch01-ref-pt-br.png)
![](legends/goes-ch02-ref-pt-br.png)
![](legends/goes-ch03-ref-pt-br.png)
![](legends/goes-ch04-ref-pt-br.png)
![](legends/goes-ch05-ref-pt-br.png)
![](legends/goes-ch06-ref-pt-br.png)
![](legends/goes-ch07-celsius-pt-br.png)
![](legends/goes-ch08-celsius-pt-br.png)
![](legends/goes-ch09-celsius-pt-br.png)
![](legends/goes-ch10-celsius-pt-br.png)
![](legends/goes-ch11-celsius-pt-br.png)
![](legends/goes-ch12-celsius-pt-br.png)
![](legends/goes-ch13-celsius-pt-br.png)
![](legends/goes-ch14-celsius-pt-br.png)
![](legends/goes-ch15-celsius-pt-br.png)
![](legends/goes-ch16-celsius-pt-br.png)
![](legends/goes-ch08-WVCOLOR35-celsius-pt-br.png)
![](legends/goes-ch09-WVCOLOR35-celsius-pt-br.png)
![](legends/goes-ch10-WVCOLOR35-celsius-pt-br.png)
![](legends/goes-ch13-IR4AVHRR6-celsius-pt-br.png)
![](legends/goes-ch13-dsa-celsius-pt-br.png)
![](legends/goes-aod-pt-br.png)
![](legends/goes-rrqpef-pt-br.png)
![](legends/goes-sstf-celsius-pt-br.png)
![](legends/radar-pt-br.png)