-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# ncmaps | ||
**ncmaps brings scientific colormaps to ncview.** | ||
|
||
[ncview](http://meteora.ucsd.edu/~pierce/ncview_home_page.html) is a legacy, light-weight netcdf viewer that is still in wide use in the geosciences community. | ||
|
||
One of the weak points of ncview is its colormaps (e.g. jet), in particular the lack of *scientific* (*aka perceptually uniform*) colormaps. | ||
|
||
**ncmap** adds scientific colormaps to the configuration path of ncview, so that your data can be displayed using *viridis*, *inferno*, *cmocean*, and more. | ||
|
||
## Installation | ||
|
||
1. Fetch the ncmaps repo from github, alternatively copy the ncmaps file; | ||
2. Run ncmaps in the terminal (requires Python3); | ||
3. Define (export) a shell environment variable: `export NCVIEWBASE=${HOME}/.ncmaps`; | ||
|
||
New colormaps should be available the next time you run `ncview`. | ||
|
||
## Supported colormaps | ||
*ncmaps* harvests scientific colormaps from the following python modules: | ||
* [matplotlib](https://matplotlib.org/stable/tutorials/colors/colormaps.html) | ||
* [cmocean](https://matplotlib.org/cmocean/) | ||
* [cmcrameri](https://pypi.org/project/cmcrameri/) | ||
|
||
These modules must be installed and accessible to your your python implementation (e.g. via *pip* or *conda*) **before** running ncmaps. | ||
Modules that are not available are skipped. | ||
|
||
## Command-line parameters | ||
|
||
Running `ncmaps` should be enough in most cases, but check `ncmaps -h`. | ||
|
||
## Author | ||
Thomas Lavergne, Norwegian Meteorological Institute |