biff2ascii

[ XITE Reference Manual | XITE home ]

Name

biff2ascii - write a biff band to an ascii data file

Syntax

 #include <xite/convert.h>

 int biff2ascii( IBAND band, char* filename,
    char* type, int co );

Description

biff2ascii dumps the contents of band as ascii data to the file filename. Give filename = "", - or NULL for writing to stdout. mode may be one of:

w
Truncate or create for writing
"a"
Append; open for writing at end of file, or create for writing

If co is TRUE, a coordinate system is also written.

Return value

 0 - ok
 1 - bad pixeltype in 'band'
 2 - could not open file
 3 - bad 'type' argument, should be "w" or "a"
 4 - Error in writing file. File-system full?

Author

Tor Lønnestad, BLAB, Ifi, UiO

Revised

Otto Milvang: Add all pixeltypes

Id

$Id: biff2ascii.c,v 1.28 1997/03/18 11:57:48 svein Exp $