This program takes similar arguments as the ISIS
but takes two input images. With no arguments, the program determines
the minimum overlap of the two images, and the worst common resolution,
and then map-projects the two images to this identical area and
The detailed reasons for doing this, and a manual step-by-step
walkthrough of what
cam2map4stereo.py does is provided in the
discussion on aligning images in the Tutorial.
cam2map4stereo.py is also useful for selecting a subsection
and/or reduced resolution portion of the full image. You can inspect a
raw camera geometry image in qview after you have run
it, select the latitude and longitude ranges, and then use
--lon, and optionally
--resolution options to pick out just the part you want.
--dry-run option the first few times to get an idea of what
cam2map4stereo.py does for you.
Command-line options for cam2map4stereo.py:
- -h, --help
Display the help message.
Read the manual.
- -m, --map <file.map>
The mapfile to use for
- -p, --pixres <PIXRES>
The pixel resolution mode to use for
- -r, --resolution <RESOLUTION>
Resolution of the final map for
- -i, --interp <INTERP>
Pixel interpolation scheme for
- -a, --lat <LAT>
Latitude range for
LATis of the form min:max. So to specify a latitude range between -5 and 10 degrees, it would look like
- -o, --lon <LON>
Longitude range for
LONis of the form min:max. So to specify a longitude range between 45 and 47 degrees, it would look like
- -n, --dry-run
Make calculations, and print the
cam2mapcommand that would be executed, but don’t actually run it.
- --prefix <path>
Make all output files use this prefix. Default: no prefix.
- -s, --suffix <suffix (default: map)>
Suffix that gets inserted in the output file names.