biff2sunraster

[ XITE Reference Manual | XITE home ]

Name

biff2sunraster - convert BIFF-file to sunraster-file

Syntax

 biff2sunraster [-t <v>] <BIFF-file> <sunraster-file> \\
     [<colfile>]

Description

Convert a BIFF-file to a sunraster-file. Use the BIFF colortable in colfile if the colfile argument is supplied.

If the pixeltype of BIFF-file is not unsigned byte, the image will be converted to unsigned byte before conversion to sunraster. The pixeltype conversion does not imply any scaling. Values too large (or to small) to be represented by the new pixeltype are set to the maximum (or minimum) possible value. A warning is issued to this effect.

Options

-t v
Threshold the input image at the value v and write a sunraster file of depth 1. Default: Depth 8, no thresholding.

Restrictions

Images with pixeltype different from unsigned byte will be converted to unsigned byte, without any prior scaling.

Return value

 0 - Ok
 1 - Error in handling BIFF-file
 2 - Cannot open Sunrasterfile
 3 - Write error on Sunrasterfile
 4 - BIFF file must have 1 band
 5 - Illegal BIFF pixeltype
 6 - Memory allocation error
 7 - Illegal command-line

Author

Otto Milvang

Examples

 biff2sunraster sun-raster8/andy.im8 andy.img andy.col
 biff2sunraster -t 120 sun-raster1/andy.im1 andy.img

Id

$Id: biff2sunraster.c,v 1.35 1997/01/09 16:46:17 svein Exp $