X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 21 Mar 2006 12:47 PM by  anon
Creating a User Defined RPC Reader?
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
21 Mar 2006 12:47 PM
    Has anyone tried to create a user-defined RPC reader in ENVI? I've been trying to develop a user defined RPC reader, starting off with the example provided in the manual, along with an appropriately formatted RPC file. When I attempt to load the data, however, I get the error message... "Error importing RPC coefficient parameters" I have verified that the RPC structure that I return appears to be correctly populated, and that the reader appears fine until it returns the structure. (If I force the reader to "fail" by returning a value of '-1' I don't see the above error message.) Does anyone know what behaviour flags this error message, as I can't find it in the ENVI documentation?

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    21 Mar 2006 12:47 PM
    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.
    You are not authorized to post a reply.