Skip to content

vaccfr/vatglasses-convertor

Repository files navigation

Euroscope ESE to VATGlasses convertor

File structure

The final target file is outputs/lf.json. Each section of that json are generated in separate files first:

lf.json section File Type Script
airports outputs/airports.json Dynamic generate_airports.py
airspace outputs/airspace.json Dynamic generate_airspaces.py
callsigns outputs/callsigns.json Static
groups outputs/groups.json Static
positions outputs/positions.json Dynamic generate_positions.py

The script merge_all.py takes all 5 above files and merge them into outputs/lf.json

Install the prerequisites

  • Install the required python libraries:
pip install -r requirements.txt
  • Copy the latest Euroscope ESE files in inputs\LFXX.ese

Generate the target files

  • Run the following command to generate the outputs/airports.json
python generate_airports.py
  • Run the following command to generate the outputs/airspaces.json
python generate_airspaces.py
  • Run the following command to generate the outputs/positions.json
python generate_positions.py
  • Run the following command to generate the target outputs/lf.json
python merge_all.py

Test the results

You can use the script export_geojson.py to generate GeoJSON file and visualize them with https://geojson.io/

usage: export_geojson.py [-h] --input-files [INPUT_FILES ...] [--output-file OUTPUT_FILE] [--show] --flight-level FLIGHTLEVEL [--positions [POSITIONS ...]] [--sector-regexp SECTOR_REGEXP]

optional arguments:
  -h, --help            show this help message and exit
  --input-files [INPUT_FILES ...], -i [INPUT_FILES ...]
                        VATGlass input file
  --output-file OUTPUT_FILE, -o OUTPUT_FILE
                        GeoJSON output file
  --show, -s            Show on geojson.io
  --flight-level FLIGHTLEVEL, -f FLIGHTLEVEL
                        Flight Level
  --positions [POSITIONS ...], -p [POSITIONS ...]
                        Space separated list of position codes
  --sector-regexp SECTOR_REGEXP
                        Regular Express to filter sector

For example:

  • All positions at FL300 (will generate only CTR positions)
python export_geojson.py -i outputs/lf.json -o output.geojson --flight-level 320
  • PAR and PG approach at FL180
python export_geojson.py -i outputs/lf.json -o output.geojson --flight-level 180 --positions PAR PGN
  • Marseille, Nice Approach and Tower at 1000 feet
python export_geojson.py -i outputs/lf.json -o output.geojson --flight-level 10 --positions MM MNA MN

GeoJSON exports

The current VatGlasses data are pre-exported in GeoJSON format and stored in the exports folder. You can use the following links to visualize the data in geojson.io:

FL x00 x10 x20 x30 x40 x50 x60 x70 x80 x90
3xx FL300 FL310 FL320 FL330 FL340 FL350 FL360 FL370 FL380 FL390
2xx FL200 FL210 FL220 FL230 FL240 FL250 FL260 FL270 FL280 FL290
1xx FL100 FL110 FL120 FL130 FL140 FL150 FL160 FL170 FL180 FL190
0xx FL000 FL010 FL020 FL030 FL040 FL050 FL060 FL070 FL080 FL090

Publish to VATGlasses

Copy the file outputs/lf.json into the repository vaccfr/vatglasses-data/data and submit a PR.

About

Euroscope ESE to VATGlasses convertor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors