In this section we read some navaid data from the file earth_nav.dat. As mentioned in section 2.1, the information about how to parse this format is contained in X-Plane's developer documentation. For now, we are only going to extract types VOR and NDB, although the file contains many additional types of navaids. The reason for this will be explained in later sections.
Here is the top of the file content:
In the previous section we explained how to read the header. This time I have highlighted some of the columns we will be extracting. Note carefully that unlike the previous file, each row begins with a row code. The row code indicates the type of Navaid that will be described in the row. Row code 2 is for NDB and row code 3 is for VOR. The meaning of the remaining columns is demonstrated in the code below.
The top and bottom of the completed geodataframe look like this:
So far so good. In the next section we will tackle the more complex file that contains airport and runway data.