historical_helper.py command parameter issue

14 views
Skip to first unread message

William Deadman

unread,
Sep 9, 2022, 1:02:05 PMSep 9
to Ames Stereo Pipeline Support
I have been trying to follow the stereo example for KH-4B imagery, managed to mosaic the image together, but the instructions seem to stop working at the historical_helper.py stage.

The following command:

historical_helper.py rotate-crop --input-path DS1103-1041DA048.tif  --output-path aft.tif --interest-points '1620 1937  109169 1945  109188 9627  1543 9622'

Yields this error message:

convert DS1103-1041DA048.tif -define tiff:tile-geometry=256x256 -distort ScaleRotateTranslate '0,0 0.004262' -crop '107644x7698+1542+1937' aft.tif
unknown command line parameter: DS1103-1041DA048.tif
unknown command line parameter: -define tiff:tile-geometry=256x256
unknown command line parameter: -distort ScaleRotateTranslate 0,0 0.004262
unknown command line parameter: -crop 107644x7698+1542+1937 aft.tif
Script finished.

I have tried the conda and extracted versions of ames but both produce this same error.

I tried to replace the historical-helper.py as described in this conversation, and also tried to run "convert" directly as also suggested, but neither have worked.

Any help appreciated!

Alexandrov, Oleg (ARC-TI)[KBR Wyle Services, LLC]

unread,
Sep 9, 2022, 1:49:20 PMSep 9
to William Deadman, Ames Stereo Pipeline Support
The 'convert' tool is a program by ImageMagick that we ship. There may be an issue with the path to it, maybe.

I wonder if you can type 'which convert' and see where it points you to. It will hopefully point to the one we ship with ASP.

Then you can try to locate this tool in the ASP package, and specify its full path with these command-line options, and see if it makes a difference.

My best guess is that your system 'convert'  and our version of 'convert' are incompatible. 


From: ames-stereo-pi...@googlegroups.com <ames-stereo-pi...@googlegroups.com> on behalf of William Deadman <william....@gmail.com>
Sent: Friday, September 9, 2022 10:02 AM
To: Ames Stereo Pipeline Support <ames-stereo-pi...@googlegroups.com>
Subject: [EXTERNAL] historical_helper.py command parameter issue
 
--
You received this message because you are subscribed to the Google Groups "Ames Stereo Pipeline Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ames-stereo-pipeline...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ames-stereo-pipeline-support/0de3f433-76c3-46f2-8a76-ef74251387a9n%40googlegroups.com.

William Deadman

unread,
Sep 9, 2022, 2:30:53 PMSep 9
to Ames Stereo Pipeline Support
Thanks for your help with this.

"which convert" points to a tool in the asp bin, and sadly the following command:

/home/conder/anaconda3/envs/asp/bin/convert DS1103-1041DA048.tif -define tiff:tile-geometry=256x256 -distort ScaleRotateTranslate '0,0 0.004262' -crop '107644x7698+1542+1937' aft.tif

still yields the same error message:

unknown command line parameter: DS1103-1041DA048.tif
unknown command line parameter: -define tiff:tile-geometry=256x256
unknown command line parameter: -distort ScaleRotateTranslate 0,0 0.004262
unknown command line parameter: -crop 107644x7698+1542+1937 aft.tif

is the ImageMagick convert stored somewhere else within the asp files, or is the above 'convert' the IM tool?

Alexandrov, Oleg (ARC-TI)[KBR Wyle Services, LLC]

unread,
Sep 9, 2022, 2:46:48 PMSep 9
to William Deadman, Ames Stereo Pipeline Support
I appreciate the clarification. I found out that the 'convert' tool shipped with ASP is indeed broken, but my system's 'convert' tool works and executes that command successfully. 

I raised this as an issue at https://github.com/NeoGeographyToolkit/StereoPipeline/issues/384 and offered a workaround there.

I am regretfully behind on funded work and will not have time to look into this right now, but I will revisit it at some point soon.

Sent: Friday, September 9, 2022 11:30 AM

To: Ames Stereo Pipeline Support <ames-stereo-pi...@googlegroups.com>
Subject: Re: [EXTERNAL] historical_helper.py command parameter issue
 

William Deadman

unread,
Sep 9, 2022, 2:57:46 PMSep 9
to Ames Stereo Pipeline Support
Fantastic thanks, I will checkout the workaround.
Reply all
Reply to author
Forward
0 new messages