Skip to content

Check for max offset #65

@oleg-alexandrov

Description

@oleg-alexandrov

The dem_align.py program has the following logic:

dm_total = np.sqrt(dx_total**2 + dy_total**2 + dz_total**2)
       if dm_total > max_offset:
           sys.exit("Total offset exceeded specified max_offset (%0.2f m). Consider increasing -max_offset argument" % max_offset)

However, -max_offset is meant to be the horizontal offset (the vertical one is max_dz). So, there will be a failure above if the produced z offset is large but max horizontal offset is small, which is likely not intended.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions