| 108 | '''To use the 2021 logsheet generator follow these steps here, or scroll further to find instructions for the old version of logsheet generator.''' |
| 109 | |
| 110 | To create a logsheet is run in 3 stages to give greatest control of input/output. The first stage is to generate csv tables of the information to go into the logsheet. Then you create an image of the overview of flightlines, and finally you can render an HTML and PDF version of the data. |
| 111 | |
| 112 | Example commands: |
| 113 | |
| 114 | To create the CSV tables and get all the data together you pass the project directory, a sensor list to include in the logsheet and output directory (e.g. processing/logsheet) |
| 115 | |
| 116 | {{{generate_logsheet.py -p /users/rsg/arsf/arsf_data/2021/flight_data/sweden/Magic-2021_236_Kiruna -o /tmp/logsheet -s fenix -v}}} |
| 117 | |
| 118 | To create an overview it is recommended to use the `byline` option to colour the flight lines, `--inset` to generate an inset in the image and `-A` to create an animated GIF (for the website) |
| 119 | |
| 120 | {{{generate_overview_for_logsheet.py -p /users/rsg/arsf/arsf_data/2021/flight_data/sweden/Magic-2021_236_Kiruna -o /tmp/logsheet/overview.png -s fenix -c byline -A /tmp/logsheet/overview.gif --inset}}} |
| 121 | |
| 122 | To render into an HTML and PDF you need to pass the pickled dict output from `generate_logsheet.py` and the image created from `generate_overview_for_logsheet.py` |
| 123 | |
| 124 | {{{render_json_logsheet.py -d /tmp/logsheet/logsheet_dict.pickle -o /tmp/logsheet/ -I /tmp/logsheet/overview.png}}} |
| 125 | |
| 126 | |
| 127 | '''Instructions for old version of logsheet scripts''' |
| 128 | |