Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parsing of MSA Center for PG records #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wilml
Copy link

@wilml wilml commented Jan 7, 2025

Closes #21

To test,

import arinc424
arinc424.parse("SPACP PGUMPGSRW06LPGPG                0   18018002625                                                                  M   217170804")

Expected results MSA Center has the correct length of 5,

+------------------------+----------+------------------+
| Field                  | Value    | Decoded          |
+------------------------+----------+------------------+
| Record Type            | 'S'      | Standard         |
| Customer / Area Code   | 'PAC'    | Pacific          |
| Section Code           | 'PS'     | Airport MSA      |
| Airport Identifier     | 'PGUM'   | PGUM             |
| ICAO Code              | 'PG'     | PG               |
| MSA Center             | 'RW06L'  | RW06L            |
| ICAO Code (2)          | 'PG'     | PG               |
| Section Code (2)       | 'PG'     | Airport Runway   |
| Multiple Code          | ' '      |                  |
| Continuation Record No | '0'      | Primary Record   |
| Sector Bearing         | '180180' | 180180           |
| Sector Altitude        | '026'    | 26 ft            |
| Sector Radius          | '25'     | 25               |
| Sector Bearing (2)     | '      ' |                  |
| Sector Altitude (2)    | '   '    |                  |
| Sector Radius (2)      | '  '     |                  |
| Sector Bearing (3)     | '      ' |                  |
| Sector Altitude (3)    | '   '    |                  |
| Sector Radius (3)      | '  '     |                  |
| Sector Bearing (4)     | '      ' |                  |
| Sector Altitude (4)    | '   '    |                  |
| Sector Radius (4)      | '  '     |                  |
| Sector Bearing (5)     | '      ' |                  |
| Sector Altitude (5)    | '   '    |                  |
| Sector Radius (5)      | '  '     |                  |
| Sector Bearing (6)     | '      ' |                  |
| Sector Altitude (6)    | '   '    |                  |
| Sector Radius (6)      | '  '     |                  |
| Sector Bearing (7)     | '      ' |                  |
| Sector Altitude (7)    | '   '    |                  |
| Sector Radius (7)      | '  '     |                  |
| Magnetic/True Bearing  | 'M'      | Magnetic         |
| File Record No         | '21717'  | 21717            |
| Cycle Date             | '0804'   | 2008, Release 04 |
+------------------------+----------+------------------+
True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MSA Center for PS section sliced incorrectly
1 participant