| 1 | = Splitting Flightlines = |
| 2 | |
| 3 | Some PIs will request that processed flight lines are split in to smaller lines, especially if the files generated are of a large size. |
| 4 | |
| 5 | == Fenix Splitting == |
| 6 | |
| 7 | It is recommended that you do this after you have found the correct SCT offset values and are ready to generate the final files, as the splitting is done by aplcal when you submit the jobs to the grid. The splitting of the flight lines can be done by following this process: |
| 8 | |
| 9 | 1. Find out the number of smaller segments the PI wants the flight lines split in to. This could be in the ticket or in emails. Ask someone if unsure. |
| 10 | 1. If it is not already there, append {{{cal_args_extra = -lines}}} to each flight line section of the config file. This tells aplcal which raw lines to process for this particular flight line section, using the {{{-lines}}} argument of aplcal. |
| 11 | a. '''Note:''' If there is a global {{{cal_args_exrtra = }}} record in the config file (i.e. in the {{{[DEFAULT]}}} section, at the top of the file), this will be overridden by ones local to flight lines. Therefore, you will need to copy the arguments from the global section in to each flight line section to overcome this. |
| 12 | 1. Copy and paste each flight line section in the hyperspectral processing file <number of segments required> -1 times below the original flight line section so that the number of sections for each line is equal to the number of segments required by the PI. |
| 13 | 1. Divide the number of lines in each raw header file (the {{{lines}}} record in the raw header files (found in .../<root project directory>/hyperspectral/fenix) by the number of segments required and round it up/down to something sensible. |
| 14 | 1. After the {{{cal_args_extra = -lines}}}, put in the numbers of the raw flight lines to process. |
| 15 | a. For the first one, this will be 1 (the first flight line) and the number you obtained in the previous step. |
| 16 | a. If no overlap is required, the next section should be double the result, and so on. If an overlap is required, the first number used in the latter of the two should be <overlap in metres> less than the second number used in the section before it. |
| 17 | 1. Change the header of each flight line section so that the numbers in the section headers are sequential, and change the {{{line_id}}} and {{{line_number}}} fields to match this. |
| 18 | 1. Change the {{{raw_filebase}}} in each flight line section so that they point to the raw files. Do this by changing what's already there to {{{raw_filebase = %(fenix_filebase)s-<original line number>}}}. You can find this out by doing <new flight line number> / <number of sections required by PI>, and rounding it up. |
| 19 | |
| 20 | Below is part of an example config file that was used for splitting hyperspectral data. In this example, each flight line was split in to three segments and used an overlap of 500m. |
| 21 | |
| 22 | {{{ |
| 23 | [fenix_-1] |
| 24 | process_line = false |
| 25 | line_id = -1 |
| 26 | line_number = 01 |
| 27 | altitude = 2037 |
| 28 | airspeed = 137 |
| 29 | track = 102.0 |
| 30 | raw_filebase = %(fenix_filebase)s-1 |
| 31 | output_filebase = f%(julian_day)s%(sortie)s%(line_number)s |
| 32 | sct = 0.98 |
| 33 | cal_args_extra = -lines 1 8000 |
| 34 | |
| 35 | [fenix_-2] |
| 36 | process_line = false |
| 37 | line_id = -2 |
| 38 | line_number = 02 |
| 39 | altitude = 2037 |
| 40 | airspeed = 137 |
| 41 | track = 102.0 |
| 42 | raw_filebase = %(fenix_filebase)s-1 |
| 43 | output_filebase = f%(julian_day)s%(sortie)s%(line_number)s |
| 44 | sct = 0.98 |
| 45 | cal_args_extra = -lines 7500 16000 |
| 46 | |
| 47 | [fenix_-3] |
| 48 | process_line = false |
| 49 | line_id = -3 |
| 50 | line_number = 03 |
| 51 | altitude = 2037 |
| 52 | airspeed = 137 |
| 53 | track = 102.0 |
| 54 | raw_filebase = %(fenix_filebase)s-1 |
| 55 | output_filebase = f%(julian_day)s%(sortie)s%(line_number)s |
| 56 | sct = 0.98 |
| 57 | cal_args_extra = -lines 15500 24557 |
| 58 | |
| 59 | [fenix_-4] |
| 60 | process_line = true |
| 61 | line_id = -4 |
| 62 | line_number = 04 |
| 63 | altitude = 1922 |
| 64 | airspeed = 141 |
| 65 | track = 282.0 |
| 66 | raw_filebase = %(fenix_filebase)s-2 |
| 67 | output_filebase = f%(julian_day)s%(sortie)s%(line_number)s |
| 68 | sct = 0.96 |
| 69 | nav2_args_extra = -force |
| 70 | cal_args_extra = -lines 1 8000 |
| 71 | |
| 72 | [fenix_-5] |
| 73 | process_line = false |
| 74 | line_id = -5 |
| 75 | line_number = 05 |
| 76 | altitude = 1922 |
| 77 | airspeed = 141 |
| 78 | track = 282.0 |
| 79 | raw_filebase = %(fenix_filebase)s-2 |
| 80 | output_filebase = f%(julian_day)s%(sortie)s%(line_number)s |
| 81 | sct = 0.96 |
| 82 | nav2_args_extra = -force |
| 83 | cal_args_extra = -lines 7500 16000 |
| 84 | |
| 85 | }}} |
| 86 | |