You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow for better parametrisation of GA_Detect.py command-line script
This includes the ability to configure the metars file via the
command-line. The loading of the metars file has been moved to the
main process to enable this.
Copy file name to clipboardExpand all lines: README.md
+30-5Lines changed: 30 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,6 @@ Requires:
15
15
16
16
Usage:
17
17
First you must download aircraft data, which can be done using the `OpenSky_Get_Data` script. You can then point `GA_Detect` at the download location to scan for go-arounds.
18
-
This tool is in very early development, so has manual tweaks that would ideally be changeable via a config file or directly via the command line call. The most important of these tweaks are listed below:
19
18
20
19
### `Metars_Get_Data.py`
21
20
@@ -53,9 +52,35 @@ python OpenSky_Get_Data.py \
53
52
--outdir=INDATA --n-jobs=1
54
53
```
55
54
56
-
### In `GA_Detect.py`
57
-
The directory structure is set at the beginning of `main()`. You will probably want to adjust this to your own requirements.
55
+
### `GA_Detect.py`
58
56
59
-
`n_files_proc` specifies how many files to process simultaneously. This should be changed to the optimal value for your hardware.
57
+
The script that runs the actual go-around events.
60
58
61
-
`pool_proc` specifies the number of multiprocessing threads to use. I have found that this can be set slightly higher than the number of cores available, as cores are not fully utilised anyway.
59
+
Data is read and written based on a top-level directory. The default
60
+
is the current working directory, which can be overridden by passing
61
+
the `--top-dir` command-line option.
62
+
63
+
The file containing the appropriate METARS data can be passed using
64
+
the `--metars-file` option.
65
+
66
+
The airport can be specified using the `--airport` option. See the
67
+
`OS_Airports` subpackage which contains the runway definitions for the
68
+
currently supported airports.
69
+
70
+
The `--n-files-proc` option specifies how many files to process
71
+
simultaneously. This should be changed to the optimal value for your
72
+
hardware.
73
+
74
+
The `--pool-proc` option specifies the number of multiprocessing
75
+
threads to use. I have found that this can be set slightly higher than
76
+
the number of cores available, as cores are not fully utilised anyway.
77
+
78
+
The `GA_Detect.py` command-line script uses a few defaults. The
79
+
defaults are chosen to accommodate the defaults in the data fetching
80
+
scripts. As such, these two calls are equivalent:
81
+
82
+
```bash
83
+
python GA_Detect.py # does the same thing as the next command:
0 commit comments