FUNCTION c_bil2bip (ibuf, obuf, nsamps, bands, fill)
short *ibuf; short *obuf; long *nsamps; long bands[]; long *fill;
Input buffer containing one line of BIL image data. This buffer must contain at least as many bands as the maximum band number stored in bands.
Output buffer where the image line is stored in BIP format. If fill is zero, this buffer must be large enough to contain at least as many bands as 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 are 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 be omitted from the output buffer. If nonzero, each of the five bands that are not specified in bands will be zero-filled.
This function will convert a buffer of BIL image data into BIP format.
c_bil2bip() has no return value.