Hello Sean,
I believe the problem you are encountering is caused by some changes in the syntax to retrieve the RPC structure that were not updated in the documentation for ENVI 4.2. If you refer to the ENVI help on the 'User Defined RPC Reader', the following things should be changed in your code:
The line reading:
FUNCTION ENVI_USER_RPC_READER, FID = fileID, FNAME = filename
should be changed to read:
FUNCTION ENVI_USER_RPC_READER, FID = fileID, FNAME = filename, _EXTRA = extra
The line reading:
rpcCoeffs = {ENVI_RPC_STRUCT}
should be changed to read:
rpcCoeffs = get_rpc_coefficient_structure()
This should resolve the issue.
|