Skip to content

Useful Tools

Lenny edited this page Aug 23, 2023 · 6 revisions

Sector File Parser

One of our maintainers has created an automated tool for converting GNG EuroScope .ese files into VATGlasses .json files. You can download it here. Please be aware of the following:

  • Issues must be posted to the correct repository. Issues created on the wrong repository will be removed.
    • All tech support requests for the parser should be posted to the parser repository.
    • All data-related enquiries should be posted to this repository.
  • The parser does not fix overlapping or disjointed sectors.
    • If overlaps are intentional, VATGlasses requires them to be layered in the opposite order to EuroScope. This change must be made manually.
    • (I.e. the smaller sector must be below the larger sector in the file, not above).
  • Airports are detected automatically but top-down airport coverage must be added manually.
  • ATC positions which do not own any sectors or cover any airports top-down should be removed.
    • All ATIS positions must be removed.
    • In most files, all DEL and GND positions should be removed.
    • TWR and single-sector APP positions which do not own any airspace and only cover their own airport should also be removed.
    • If a position covers multiple airports or owns sectors, it should be included.
  • Non-GNG .ese files are not supported. Sector files for other controller clients (VRC, vSTARs, vERAM, vatSys, etc.) are not supported.
    • No parser exists for these files. If you have a file in one of these formats, you will need to write your own parser or convert it manually.
    • If you have a parser for one of these formats and are happy to share it, please let us know!

Coordinates

Sector coordinates can be converted from the coordinates in .ese files using the following regular expressions (in Visual Studio Code's Find/Replace function).

  • North & West
    • COORD:N0?([0-9]{2})\.([0-9]{2})\.([0-9]{2})(\.[0-9]{3})?:W([0-9]{3})\.([0-9]{2})\.([0-9]{2})(\.[0-9]{3})?
    • ["$1$2$3","-$5$6$7"],
  • North & East
    • COORD:N0?([0-9]{2})\.([0-9]{2})\.([0-9]{2})(\.[0-9]{3})?:E([0-9]{3})\.([0-9]{2})\.([0-9]{2})(\.[0-9]{3})?
    • ["$1$2$3","$5$6$7"],
  • South & West
    • COORD:S0?([0-9]{2})\.([0-9]{2})\.([0-9]{2})(\.[0-9]{3})?:W([0-9]{3})\.([0-9]{2})\.([0-9]{2})(\.[0-9]{3})?
    • ["-$1$2$3","-$5$6$7"],
  • South & East
    • COORD:S0?([0-9]{2})\.([0-9]{2})\.([0-9]{2})(\.[0-9]{3})?:E([0-9]{3})\.([0-9]{2})\.([0-9]{2})(\.[0-9]{3})?
    • ["-$1$2$3","$5$6$7"],

Line Crossing Calculator

If you're creating sectors and need a tool for calculating the point of intersection between two lines (with each line defined by two VATGlasses-formatted coordinates), please feel free to drop @lennycolton a message.

Clone this wiki locally