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.

Horizontal Colorbar

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

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: 

Comments

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.

Company Logo

Tekmap Logo