Optional tools for Tmap
=======================

These programs prepare headerless big-endian Float32 raster files.
They are not required to compile or run tmap.

Compile:

  cd tools
  javac *.java


CropFloat32
-----------

Extract a rectangular area from a raster:

  java CropFloat32 ../input.bin ../crop.bin 3000 3000 750 750 1500 1500

The numbers are source width, source height, x, y, output width, and output
height. The x and y positions start at 0 in the upper-left corner.


DownsampleFloat32
-----------------

Reduce a square raster by area averaging:

  java DownsampleFloat32 ../input.bin 3000 ../small.bin 128

This example converts a 3000 x 3000 raster to 128 x 128.


UpsampleFloat32
---------------

Enlarge a raster without smoothing:

  java UpsampleFloat32 ../small.bin 128 128 4 ../large.bin

This example enlarges a 128 x 128 raster by 4 to make a 512 x 512 raster.
