Re: Error on Orthorectification [message #19402] |
Wed, 15 March 2000 00:00 |
Martin Schultz
Messages: 515 Registered: August 1997
|
Senior Member |
|
|
rappold@zedat.fu-berlin.de wrote:
>
> Hi,
>
> sometimes it might just a little step but I'm digging in the dark:
>
> I try to rectify an orthophoto on a DEM. I always get the error:
>
> Air Photo Ortho:
> An error has occured during processing.
> Error: "Negative positon argument not allowed: -2147325586"
> The result may be invalid
>
> The resulting ortho photo is 2 GB, the original tiff image was 35 MB!
>
> I checked all Parameter but I can't find the mistake.
>
> Does somebody has an idea?
>
> Gerhard
>
This smells like some INT - LONG - LONG64 confusion. Note that
-2.147.325.586 is
pretty close to 2.147.483.647 which is the maximum a _signed_ LONG can
handle. Now, I don't know what orthorectification and DEM stand for, but
I would dare to guess that
the process involves a substantial blow-up of the original image, since
35MB leave you with a "safety margin" of almost a hundred. A very
typical error occurs with loops:
for i=0,N_elements(image)
loops over a 2 BYTE integer even though N_Elements returns a LONG value.
You have to
force the type of the looping variable via
for i=0L, ...
or even
for i=0LL,...
That's about how far I can guess without seeing any of the source.
Good luck,
Martin
PS: general debugging tip: sprinkle your code with HELP and PRINT
statements and make sure you see what you want to see at every stage.
--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
|
|
|