You are here

GRASS Raster Colorbar Export

Introduction

The r.out.colorbar program is a simple export tool for saving GRASS raster colorbars. The program uses GTK+ and CairoGraphics to handle the image output.

The colorbar is saved at a user defined size (in pixels) and orientation. The user can choose between 3 output formats supported by Cairo.

Horizontal Colorbar

The output formats are:

  1. PNG Image with transparent background
  2. PDF document
  3. Encapsulated Postscript (EPS)

Requirements

The GTK+ development package must be installed in order to build r.out.colorbar. The Makefile uses:

pkg-config --cflags gtk+-2.0

and

pkg-config --libs gtk+-2.0

Building Source

  1. Download the source tarball here Download
  2. Extract the tar file in the GRASS(v.6) source tree in the raster directory
  3. Change to the r.out.colorbar directory
  4. Run make to build the program

ToDo

  • Include category label support
  • Include custom labeling
  • Include units labeling
  • Add font options
  • Update for GRASS 7
Categories: