biff2raw
[ XITE Reference Manual | XITE home ]
Name
biff2raw - write a biff band to a raw data file
Syntax
#include <xite/convert.h>
int biff2raw( IBAND band, char* filename,
char* type, int pgm );
Description
biff2raw dumps the contents of band as raw, binary
data to the file filename. Give filename = "", - or NULL
for writing to stdout. The band is written in samples-lines
order. type may be one of:
-
w
- Truncate or create for writing.
-
a
- Append; open for writing at end of file, or create for writing.
If pgm is true, a pgm header is written before the data.
Accepts tilde in file name. Accepts all pixel types.
Restrictions
Writing (biff2raw) and reading (raw2biff) on hosts
with different byte order will only work for byte bands.
Return value
0 - ok
1 - bad 'type' argument, should be "w" or "a"
2 - could not open file
3 - could not write the whole band
Author
Tor Lønnestad, BLAB, Ifi, UiO
Id
$Id: biff2raw.c,v 1.32 1997/03/18 11:54:10 svein Exp $ $Revision: 1.32 $