netCDF files, such as ROMS output (or of any other origin), and who wants to
customize color palettes built-in into by this tool.
Ncview is designed by David Pierce,
http://meteora.ucsd.edu/~pierce/home_page.html
and it source code is available from
http://meteora.ucsd.edu/~pierce/ncview_home_page.html
so in most cases it is just a "configure --> make --> make install" thing
[provided that you have C-compiler, netCDF library installed, and few other
things like netpbm package (comes with Linux) and the associated header
files].
I designed several new colormaps, and made them into .h files, the they
behave like built-in when ncview source is modified a little bit to make it
aware of the new maps. I made them available as
http://www.atmos.ucla.edu/~alex/ROMS/nc ... aps.tar.gz
For those who are interested, I suggest first to get ncview from the original
web page of David Pierce (current versions are 1.93g and 2.0beta4), compile
and make sure that it works. Then obtain my file, ncview_colormaps.tar.gz,
unpack it, and make few changes in the main source file ncview.c.
Content of file ncview_colormaps.tar.gz
Code: Select all
ncview.c
colormaps_bright.h
colormaps_rainbow.h
colormaps_banded.h
colormaps_blue_red.h
colormaps_jaison.h
colormaps_jaisn2.h
colormaps_blu_red.h
colormaps_jaisnc.h
colormaps_jaisnb.h
colormaps_jaisnd.h
colormaps_jet.h
colormaps_wheel.h
colormaps_roullet.h
colormaps_manga.h
I just touched it in three places and placed comments with my name,
"Shchepetkin" so you can obviously see what are the changes.
It is self-explanatory. If you use version 1.93g, you may just substitute
the file; if you use another version -- do not substitute, but copy paste
the changes.
All other files are color palettes -- basically C-declarations of initialized
arrays. Place them into the same directory as ncview.c. This is safe: none
of the names of colormaps coincides wit the original filenames.
Then recompile, reinstall, enjoy.