Copy and convert an image.
Copies a LAS image into another LAS image. It allows the input image(s) to be sub-windowed and sub-banded when copied to the output image. By default the output image is the same data type as the input image(s).
- IN
- Input image. IN may be a single- or multi-band image and may contain BYTE, INTEGER*2, INTEGER*4, or REAL*4 pixel data. Window and/or band options may be specified. The window size of all input images are required to be the same.
If the data type of the output image is to be the same as the input images (i.e., ODTYPE = SAME) and the input images do not have the same data type, the output image is the same data type as the first image specified.
- OUT
- Output image. The output image is the same size as the input image specification. Output data type is determined by ODTYPE.
- ODTYPE(SAME)
- Output data type. The data type of the output image.
= SAME: Same as input = BYTE: BYTE (8-bit unsigned integer) (0 through 255) = I*2: INTEGER*2 (16-bit signed integer) (-32768 through 32767) = I*4: INTEGER*4 (32-bit signed integer) (-2147483648 through 2147483647) = R*4: REAL*4 (32-bit signed real) (System dependent)
- ROUNDOPT(TRUNC)
- Round option. If the input data is REAL*4 and the output data type is INTEGER or BYTE, the input data values are either rounded or truncated when converted. NOTE: Truncation of data is faster than rounding.
= ROUND: Round the input data. = TRUNC: Truncate the input data.
- COMPFLG(--)
- Compression flag. The output image will be compressed if COMPFLG is YES. The output image will not be compressed if COMPFLG is set to NO. If COMPFLG is specified, it will override the unix variable COMPRES. If COMPFLG is not specified, compression will be based on the TAE global $COMPFLG.
The user has requested to copy image NY.DAT into image OUT.DAT. The image OUT.DAT is the same size and data type as NY.DAT because the window and band options were not specified on the input image and the parameter ODTYPE is set to SAME indicating no data conversion is to take place.
The user has requested to copy bands 1 and 3 of image IMAGE1 and band 4 of image IMAGE2 to image OUT.DAT. It is assumed that IMAGE1 is a 500 line by 512 sample image; otherwise, an error would result because the window sizes are not the same. Image OUT.DAT is a three-band, 500 line by 512 sample image with data type of 32-bit signed integer.
The user has requested to copy bands 1 and 3 of image IMAGE1 to image OUT.DAT. It is assumed that IMAGE1 is a REAL*4 image since ROUNDOPT has been set. Image OUT.DAT is a two-band image with data type of 16-bit signed integer. The values of IMAGE1 are rounded to the nearest integer as they are being converted to OUT.DAT.
The user has requested to copy image NY.DAT and IMG.DAT into the image OUT.DAT. The image OUT.DAT is the same size and data type as NY.DAT and IMG.DAT because the window and band options were not specified on the input images and the parameter ODTYPE is set to SAME indicating no data conversion is to take place.
The TAE input parameters are retrieved. Error checking is done on the input image(s) to ensure that they all have equal window sizes. Once the TAE parameters are input, the input image is copied to the output image. If the input image is REAL*4 and the output data type is INTEGER or BYTE, the data is rounded or truncated depending on the value set for the parameter ROUNDOPT.
A nonfatal error was encountered during processing. The image data is probably valid and therefore saved. The error message that is displayed immediately preceding this message is the specific error that was encountered. Processing continues.
A fatal error was encountered during processing. Processing is terminated. The error message that is displayed immediately preceding this message is the specific error that was encountered.
Error occurs if multiple input images are specified with different window sizes.
The system will only allow XX number of images into a program at one time. Reduce the number of images you are using.