Legend:

The point of writing this code was to have a fast way to scan all the eagle/hawk header files for a project and use the co-ordinates from them to determine the UK OS grid squares they covered. To do this, run gettiles.sh in the base project directory and it'll go do it for you. The steps it goes through are below and can be used for other conversions.

4

5

Note that this only prints out the end tiles of the flight lines - the lines may also include intervening tiles that are not printed.