Compare multiple DDR's
Performs a comparison of the DDR's which are input. If more than two DDR's are input, each DDR from the second to the last will be compared against the first.
- IN
- Input images. These are the images whose DDR's will be compared. The user may enter up to 25 images.
- BANDDDR(NO)
- Compare Band DDR's. This is a flag which indicates if the user would like to compared the bands in the DDR files. The two valid choices for this field are 'YES' and 'NO'. If the user selects 'YES', then the band DDR's will be compared. If the user selects 'NO', then the band DDR's will not be compared.
- PRINT(TERM)
- Output Desination. The user may select to get no output, output to the terminal, a line printer, or a file. The user can select up to all three of these choices. The default is 'TERM'
= --: No Report = TERM: Terminal. Output is sent to the user's terminal. = LP: Line printer. Output is sent to the printer defined by $PRINTER. = Filename: User supplied filename. Output is sent to the user supplied file with the extension ".prt".
- IDENTFLG
- This is the variable which will receive the return value from DIFFDDR. This must be a local string variable to the calling function, and will be set to either 'YES' or 'NO'. A return value of 'YES' will mean that all of the DDR's input were identical. A return value of 'NO' will mean that there was at lease one difference in the DDR's.
- IN
- Input images. These are the images whose DDR's will be compared. The user may enter up to 25 images.
- BANDDDR(NO)
- Compare Band DDR's. This is a flag which indicates if the user would like to compared the bands in the DDR files. The two valid choices for this field are 'YES' and 'NO'. If the user selects 'YES', then the band DDR's will be compared. If the user selects 'NO', then the band DDR's will not be compared.
- PRINT(TERM)
- Output Desination. The user may select to get no output, output to the terminal, a line printer, or a file. The user can select up to all three of these choices. The default is 'TERM'
= --: No Report = TERM: Terminal. Output is sent to the user's terminal. = LP: Line printer. Output is sent to the printer defined by $PRINTER. = Filename: User supplied filename. Output is sent to the user supplied file with the extension ".prt".
The DDR's of image1 and image2 will be compared, and all the differences will be output to the terminal. IDENTFLG will not be returned. Information contained in the Band DDR's will not be compared. The -NOFLAG subcommand is implied.
The DDR's of image1 and image2 will be compared, and all the differences will be output to the terminal and also to a file named 'tempfile.prt'. Information contained in the Band DDR's will not be compared.
The DDR's and Band DDR's of image2 and image3 will be compared against the DDR and Band DDR of image1, and all output will be to the terminal. IDENTFLG will not be returned.
The DDR's of image1 and image2 will be compared, and all the differences will be output to the terminal. STRING_VAR will be set to 'YES' if there were no differences in the DDR's, and set to 'NO' if there were differences in the DDR's.
The DDR's of image1 and image2 will be compared, and there will be no output. STRING_VAR will be set to 'YES' if there were no differences in the DDR's, and set to 'NO' if there were differences in the DDR's.
DIFFDDR will perform a comparison of the DDR's and, optionally, the bands of the DDR's. There are two subcommands, -FLAG and -NOFLAG, with -NOFLAG being the default. If -FLAG is selected, then DIFFDDR will return a string to the input paramter "IDENTFLG". IDENTFLG will be 'YES' if the DDR's were identical and 'NO' if they were not identical. The subcommand -FLAG will need to be called from another PDF which will accept the return value.
DDR Fields
The fields in the DDR which are compared are:
- Number of Lines - Number of Samples - Number of Bands - Data Type - Projection Code - Zone Code - Datum Code - Projection Parameters (Each projection parameter will be compared seperately) - Corner Coordinates (Each corner coordinate will be compared seperately) - Projection Distance - Projection Units - Increment - Master CoordinatesIf the user selects to compare bands, all fields in the Band DDR's will be compared.
None
An error occurred when closing the output file listed.
An error occurred when comparing the two files. One file is possibly corrupted.
An error occurred when attempting to open a band DDR for <xxxxx>.
The file is possibly corrupted.
An error occurred when attempting to open the DDR file <xxxxx>. The file is possibly corrupted.
An error occurred when comparing the bands of two images.
An error occurred when writing to the file. Possible problems include insufficient disk space.
An error occurred when attempting to read IN-count parameter from the TAE parameter block.
An error occurred when attempting to read IN parameter from the TAE parameter block.
An error occurred when reading parameter <xxxx>
An error occurred when opening the output file. Possible problems include insufficient disk space and incorrect permissions on the directory.
An error occurred when opening <xxxxx>. Possible problems include insufficient disk space.
An error occurred when trying to write to the file <xxxxx>. Possible problems include insufficient disk space.
An error occurred when attempting to return the TAE parameter block.
An error occurred when attempting to return IDENTFLG to the TAE parameter block
An error occurred when setting print parameters and retrieving the output file.