13 | | The script is 'calc_roll_offsets.py' pass in the '-h' flag to get more information on usage. |
| 18 | A couple of changes are required to the config file: |
| 19 | |
| 20 | * Set start, end and increment values for pitch / roll / heading. |
| 21 | {{{ |
| 22 | roll-start = -0.0039 |
| 23 | roll-end = -0.0041 |
| 24 | roll-inc = -0.00001 |
| 25 | }}} |
| 26 | You can vary multiple parameters at the same time but the total number of increments must not exceed 100. |
| 27 | |
| 28 | * For long lines set a minimum and maximum time to process |
| 29 | {{{ |
| 30 | time-min = 558224 |
| 31 | time-max = 558249 |
| 32 | }}} |
| 33 | Ideally covering an area with good features for the comparison (i.e., buildings and hard surfaces). |
| 34 | |
| 35 | * Only process the first returns |
| 36 | {{{ |
| 37 | first-return-only = true |
| 38 | }}} |
| 39 | |
| 40 | * Only set two filightlines at once to process |
| 41 | |
| 42 | Once the parameters have been set in the config file you can run the script 'calc_roll_offsets.py' (pass in the '-h' flag to get more information on usage). |
| 43 | |
| 44 | Basic usage will be something like: |
| 45 | {{{ |
| 46 | calc_roll_offsets.py -d out_diff_images_folder --plot out_plot.pdf 2014303.cfg |
| 47 | }}} |
| 48 | |
| 49 | The script will run alsproc for every increment for each line then compare the two (or more) lines for each increment and return the best match. |
| 50 | Note this might not be the best value for the flights, just the minimum for the range of values provided. |
| 51 | |
| 52 | To get more information look at the plot. Ideally there should be a minima somewhere between the minimum and maximum values. If it is still decreasing you should change the range. I good practice is to start with a large range and bigger increments to get a rough idea of the correct values then run again with a narrower range and smaller increments. It's a good idea to check the LAS files as well to make sure everything looks OK. |
| 53 | |
| 54 | If you want to run multiple increments in parallel (on your local machine) you can do so with the following environmental variable: |
| 55 | |
| 56 | {{{ |
| 57 | export RUN_ALSPROC_INC_PARALLEL=YES |
| 58 | }}} |