FUNCTION c_bip2bil (ibuf, obuf, nsamps, bands, fill)
short *ibuf; short *obuf; long *nsamps; long bands[]; long *fill;
Input buffer containing one line of BIP image data. This buffer must contain five bands of data.
Output buffer where the image line should be stored in BIL format. If fill is zero, this buffer must be large enough to contain at least as many bands as the maximum band number specified in bands. If fill is nonzero, this buffer must be large enough to contain five bands of data.
Number of samples contained in a single band of the image line.
The band numbers that should be stored in the output buffer. bands can contain at most five band numbers, and it must be terminated by a value less than one. If any of the specified band numbers are larger than five, memory will be overwritten, and the results cannot be guaranteed.
As an example, when converting all five bands of an AVHRR image, bands should be set to {1 2 3 4 5 0}. To convert bands three, four, and five, bands should be set to {3 4 5 0}. In both of these examples ibuf must contain five bands of data.
Flag indicating if the bands that are not specified in bands should be zero filled. If zero, the bands that are not specified will not be modified. If nonzero, each of the five bands that are not specified in bands will be zero filled.
This function will convert a buffer of BIP image data into BIL format.
c_bip2bil() has no return value.