register_relative

Register a relative DEM or orthoimage to a reference DEM and/or orthorectified image.

usage: register_relative [-h] [-ort FN_ORTHO] [-ref FN_REF]
                         [-glacmask GLACMASK] [-landmask LANDMASK]
                         [-footprints FOOTPRINTS]
                         [-im_subset IM_SUBSET [IM_SUBSET ...]] [-b BLOCK_NUM]
                         [--subscript SUBSCRIPT] [-ori ORI]
                         [-ortho_res ORTHO_RES] [-imgsource IMGSOURCE]
                         [-density DENSITY] [-no_allfree] [-useortho]
                         [-max_iter MAX_ITER]
                         dirmec fn_dem

Positional Arguments

dirmec

the name of the MEC directory to read the relative DEM from (e.g., MEC-Relative)

fn_dem

path to reference DEM

Named Arguments

-ort, --fn_ortho

path to relative orthoimage (optional)

-ref, --fn_ref

path to reference orthorectified image (optional)

-glacmask

path to shapefile of glacier outlines (i.e., an exclusion mask)

-landmask

path to shapefile of land outlines (i.e., an inclusion mask)

-footprints

path to shapefile of image outlines. If not set, will attempt to download from USGS.

-im_subset

subset of raw images to work with (default all)

-b, --block_num

Block number to use if multiple image blocks exist in directory.

--subscript

Optional subscript to add to filenames.

-ori

name of orientation directory (after Ori-) [Relative]

Default: “Relative”

-ortho_res

approx. ground sampling distance (pixel resolution) of ortho image. [8 m]

Default: 8

-imgsource

USGS dataset name for images [DECLASSII]

Default: “DECLASSII”

-density

pixel spacing to look for GCPs [200]

Default: 200

-no_allfree

run Campari with AllFree set to False

Default: True

-useortho

use the orthomosaic in Ortho-{dirmec} rather than the DEM [False]. If fn_ortho is set, uses that file instead.

Default: False

-max_iter

the maximum number of Campari iterations to run [5]

Default: 5