| 10 | |
| 11 | === Generating the .inn file === |
| 12 | |
| 13 | To generate the .inn file for ATCOR use the `gen_inn_atcor.py` script. |
| 14 | |
| 15 | * `--calfile` needs to point to the .cal file ATCOR users, this wil be `~arsf/usr/opt/atcor_4/sensor/SENSOR/*.cal` where `SENSOR` is the name used for the sensor definition in ATCOR (e.g., f17_b2). |
| 16 | * `inputbil` needs to point to the bil file in the delivery folder directory. |
| 17 | * `--outputdir` should be the directory used or ATCOR processing. |
| 18 | |
| 19 | If microtops data has been provided pass this in using `--microtops` to read using the https://github.com/robintw/PyMicrotops library and set a constant visibility based on this. Note if the microtops data has a number of header lines these need to be removed before PyMicrotops can read the file, there should just be one header line with the column names. |
| 20 | |
| 21 | After generating the .inn file it should be renamed to use the same name as the image (without the .bsq extension). For example if the file being processed in ATCOR is 'f168041b_masked.bsq' name 'f168041b_masked.inn'. |
| 22 | |
| 23 | Currently ATCOR doesn't always read all the parameters correctly open the .inn file (plain text) and update the values in the ATCOR GUI if needed. |