Coder Social home page Coder Social logo

nikolai558 / nasr2sct Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 32.54 MB

Converts the FAA National Airspace System Resource (NASR) Data to formats that may be used by Virtual RADAR Clients on the VATSIM network for free up to 28 days prior to an AIRAC effective date.

License: MIT License

C# 99.58% Batchfile 0.42%
virtual-radar-clients nasr converts vrc vatsim vatusa veram vstars alias-file faa-nasr

nasr2sct's People

Contributors

dependabot[bot] avatar friedrichkayak avatar ksanders7070 avatar nikolai558 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nasr2sct's Issues

[BUG] - Start New Version After Update

Describe the bug
Some people have issues after the update process is done. They get an error stating the program can not be found. This is caused by the batch file trying to call it before the computer registers that it is indeed there.

Possible Fix

  • Increase the "ping -n amount" in the batch file used to start the new program.
  • Create a loop in the batch file so that it tries again if it fails.

To Reproduce
Steps to reproduce the behavior:

  1. When an update is released, click yes to the update
  2. Wait for Program to process update
  3. Error Message will SOMETIMES be displayed.

Expected behavior
Program should start especially since it is indeed located there.

Screenshots
If applicable, add screenshots to help explain your problem.
image
image

[FEAT REQ.] - Convert Quotes to Dash

Describe the solution you'd like
GeoMapSetEditor.exe doesn't like quotes in the labels section in the name of the station.
Want: Convert any quotes in any kind of name/label to a dash.

[BUG] - Labels Output file missing Extention

Describe the bug
When the program completes, open the output directory and go into VRC folder. The [LABELS].sct2 is missing the file extension ".sct2"

To Reproduce
Steps to reproduce the behavior:

  1. Run Parser
  2. Open output Dir
  3. Open VRC
  4. [LABELS] is there with no extension.

Expected behavior
Should be [LABELS].sct2

Screenshots
If applicable, add screenshots to help explain your problem.
image

[FEAT REQ.] - AWY GeoMap

Is your feature request related to a problem? Please describe.
Need an AWY GeoMap output.

Describe the solution you'd like
Same as #15
This needs to include ALL airways (low, high, ats)
Format attached.
Airways format.txt

[BUG] - Update does not restart to new update version.

Describe the bug
When there is an update for a new version, after the program downloads and "updates", a second program opens and asks if you want to update even though it was just updated.

Expected behavior
The restart should start the new version.

Screenshots
If applicable, add screenshots to help explain your problem.
image
image

[BUG] - ARTCC HIGH 030520 030530 Line

Describe the bug
A ZNY line that was not returned to beginning.

To Reproduce
Steps to reproduce the behavior:

  1. Run parser with 03DEC2020 effective date.

Expected behavior
Line 896 on the ARTCCC HIGH output (Sequence: 030520 030530) should be (030520 030250).

I am not sure you are resetting the "firstPoint" after getting a "return to beginning" line.
In this case, the firstPoint of the next segment is sequence number 030530 but that is still ZNY HIGH, which is what I think is tripping up your logic.

Just for clarification, it should be the following:
LINE SEQ1 SEQ2

895 030510 030520
896 030520 030250
897 030530 030540

[BUG] - Mutli-APT DP/STARs Commands

Describe the bug
When completing a DP/STAR command (chart recall/fixes/etc...) for a procedure that serve multiple airports, it only provides the data for one of the charts.

To Reproduce
Steps to reproduce the behavior:

  1. .KAYLNC
  2. .KAYLNF

1-Brings up the VLL airports version of this procedure when DTWs version may be wanted.
2-Seems to draw the fixes for DTWs version or maybe it draws all versions together.

Expected behavior
We may have to put the airport code at the beginning of the syntax:

  1. .VLLKAYLNC .DTWKAYLNC
  2. .VLLKAYLNF .DTWKAYLNF

[FEAT REQ.] - .(AWY)F Alias

For the purposes of this post, "FIX" will be defined as any NAVAID, Intersection, Waypoint, Airport, or any defining point along an airway.

Describe the solution you'd like
The PARSER outputs AWY_Alias.txt that draws the fixes for that airway on the vERAM scope using the Root .FF command.

FORMAT:
.(AWY_ID)F .FF (FIX) (FIX) (FIX) ect...

EXAMPLE:
.V200F .FF ENI LAPED DALON ILA YUBBA RAILE MRGGO RANGO SIGNA TRUCK VERDI FMG

So basically print the first point of every new line. Then print the second waypoint of a new line if it is the last line to be drawn.

This will get tricky for airways that have gaps. To use the previous .V200 as an example, that airway has a gap after FMG and picks back up at BVL. So it should actually look like this:
.V200 .FF ENI LAPED DALON ILA YUBBA RAILE MRGGO RANGO SIGNA TRUCK VERDI FMG BVL ZONSU BAGGI CEVAR STACO ANEYI FFU PANEL NONTY MTU FECYE OHAPE BONGO RACER EKR JESIE RLG

Then to complicate things further, there are times when there is a "GAP" indicated for the airway, the airway data is separated in the NASR files even though they share the same AWY ID.

Example: V311
There are two groups of V311 in the FAA NASR data separated by 7,600 lines of data yet the end of the first group didn't indicate a GAP. When the user types .V311, they should still be getting every fix for both of the groups .

or....

You can interrogate the AWYModel for all AWY_IDs and get the associated fixes and then combine them all.

[BUG] -Update Question

Describe the bug
When an update is available, it prompts the user with a Y/N but never asks them a question.

[FEAT REQ.] - About Menu

Describe the solution you'd like
Need an About Menu that lists a short description of what the program does, instructions (google slides?), and credits.
-Credits, be sure to thank John Lewis for the icon/logo.

[BUG] - AIRPORTS_GEOMAP missing airports

Describe the bug
When drawing the new AIRPORT_TEXT_GEOMAP, there are text points for airports that don't have a symbol.
Take for example: 79FD, FA53, FL42 that don't have airport symbols in the AIRPORTS_GEOMAP.xml but KPCM, KLAL, and KBOW do.

At first, it appears that only fields with an ICAO get a symbol but 0L9 gets a symbol and has no ICAO code.

APT TEXT

[FEAT REQ.] - FAA Chart Recall Commands

Describe the solution you'd like
Alias output in the format of the vZLC ARTCC Airport Diagram and DP/STAR FAA Chart Recall commands.

Additional context
I think utilizing the same logic form your ARTCC-Publication-Parser this could fairly easily be done.
This would allow FEs to only have to manually edit Instrument Approach Procedures (which I don't think there is an easy way to automated the alias syntax for).

[BUG] - Program Title States "V1.0.4"

Describe the bug
When the program runs, in the title bar, it states an incorrect version number. Current version is V-0.4.3-beta and if the version number is going to be in that location then it should state the correct one.

To Reproduce
Steps to reproduce the behavior:

  1. Run the Program

[FEAT REQ.] - Can not Move Screen after you Hit Start

Is your feature request related to a problem? Please describe.
The Program does not respond after you hit "Start." After this when it is processing data, the screen freezes even though it is working.

Describe the solution you'd like
This form should be on a separate thread from processing data. This should fix the Non responding, and non moving window.

Describe alternatives you've considered
There really is no alternative. The user will think that its not working if it can not move and if it says "not responding"

[BUG] - Chart Recall (RNP) with L/R/C Designator

Describe the bug
Incorrect command given for an airport that has (RNP) in it and a runway L/R/C designator. Ones without a L/R/C designator or has (GPS) instead works just fine.

This one is fine: DENVER INTL-RNAV (RNP) Z RWY 07
This one is not: DENVER INTL-RNAV (RNP) Z RWY 16L

Screenshot_1

[BUG] - Extra MS on APT Long

Describe the bug
The LON value outputs to the 10Thousandths place when it should only output to the thousandths place to keep it standard.

[BUG] - Upcoming AWY change to NASR

Describe the bug
When the 25FEB2021 cycle comes, the RECORD SORT SEQUENCE NUMBER at (302,7) will change to (307,7).

Expected behavior
Consider programming the new value and commenting it out until that cycle.
Screenshot_1

[BUG] - Crash on update

Describe the bug
When the program is being updated by the auto updater, it crashes. I have found out that if the temp file the program uses to download the update files does not exist it causes the crash and the program does not get updated.

To Reproduce
Steps to reproduce the behavior:

  1. Have the program installed already.
  2. Try to update.

Expected behavior
This should create the temp file or check to see if it exists.

[BUG] - IAP Chart Recall 2nd Page

Describe the bug
A couple of the IAP diagrams have multiple Pages. The IAP recall command is wrong for these diagrams.

Expected behavior
The command should account for this in some way. IE .(apt iata)(scratch pad)(page number)C

[FEAT REQ.] - Draw All DP/STARs

Describe the solution you'd like
An output of all DPs and STARs Line-Draw Diagrams from the FAA NASR STARDP.txt file.
Along with a .LEEHYF alias to draw all waypoints along the route.

Additional context
Attached you will find a batch file that draws all DPs and STARS. There are some errors with FAA data that have been reported that will draw a line all the way accross the country... they will grab "GRREN" data when they meant "GRENN" as a waypoint. There is nothing you can do about this except report it when you see it.
STARDP_PARSER.txt

[FEAT REQ.] - Aliases Folder

Is your feature request related to a problem? Please describe.
Consider relabeling your ISR folder to Aliases

[BUG] - Auto Updater Broke

Describe the bug
Not updating correctly. It downloads the assets folder from GitHub. However, it does not install the new version at all. The program then tries to run it. and crashes stating the new version can not be found.

I believe that antivirus is catching Setup.exe and keeping Squirrel from running it.

[BUG] - Upcoming ATS change to NASR

Describe the bug
Same as #18
RECORD SORT SEQUENCE NUMBER (343,7) will change to (348,7)

Expected behavior
Prepare new value, comment out until 25FEB2021
Screenshot_2

[FEAT.REQ] Create "TEST_SECTOR.sct2"

When done with everything, can you make a "Combine all" to a test sector.sct2?

BATCH file included with this request submission.

@echo OFF

CD "%PROJ_DIR%"

break>TEST_SECTOR.sct2

(
ECHO [INFO]
ECHO TEST_SECTOR
ECHO TST_CTR
ECHO XXXX
ECHO N043.31.08.418
ECHO W112.03.50.103
ECHO 60.043
ECHO 43.536
ECHO -11.8
ECHO 1.000
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
)>>TEST_SECTOR.sct2

(
type "APT.sct2"
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
)>>TEST_SECTOR.sct2

(
type "AWY.sct2"
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
)>>TEST_SECTOR.sct2

(
type "FIX.sct2"
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
)>>TEST_SECTOR.sct2

(
type "NDB.sct2"
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
)>>TEST_SECTOR.sct2

(
type "VOR.sct2"
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
)>>TEST_SECTOR.sct2

(
type "WxStations.sct2"
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
)>>TEST_SECTOR.sct2

PAUSE

[BUG] - Facility ID User input Check

Describe the bug
I know common sense says don't put anything besides letters/numbers in this box, HOWEVER, this would be really easy to check and make sure only letters/numbers are in the box. If the user does put any special symbols, it could have some unwanted consequences in VRC.

To Reproduce
Steps to reproduce the behavior:

  1. Insert any symbol or character that is not a letter or number
  2. Run
  3. Open VRC and load one of the ISR
  4. Use that alias command

Expected behavior
Don't allow user to continue if it contains anything other than ascii letters or numbers. Also, might be worth considering a "Max-length" I know if a user puts more than (I think) 255 characters in the box, the program will have a fit and possibly crash. Not to mention VRC will most likely not appreciate 255 characters. Again, this goes with common sense but if I am encouraging people to break the program this would be one of the things I would try to break it.

[FEAT REQ.] - Auto Restart Program After it completes the update.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
When the program needs an update, and you select yes, it will start the update. However, when it is finished with the update the program runs like normal but on the previous version until you restart it.

Describe the solution you'd like
A clear and concise description of what you want to happen.
When the program starts it should be the new version that's running, not the old one.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Deal with the fact that you have to restart the program manually. This isn't ideal, but at least the program will be updated for next time.

[FEAT.REQ] ATS Airways

This is only a request. Not a big deal if we don't get this.

If you do implement it, maybe this can be written to the [LOW AIRWAY] file.

This file is setup almost identical to the AWY.txt file with changes to the position of the data. Therefore, using my NASR_2_SCT BAT as a reference for the data needed, I will provide the following:

RECORD_TYPE for both ATS1 and ATS2 data strings: 0,4

ATS1
-GAP_FLAG 118,1
-NEXT_POINT 156,40

ATS2
-AWY_ID 7,12 (NOTE-There are times when this has blank space. Reference: "ROUTE 001". This was not the case for AWY's.
-NDB_STATUS 65,25 (NOTE-If this =="NDB", then set NAVAID_TYPE=NDB, if not, then it is a VOR. If it is a fix, that will be accounted for on the next check and will overwrite the NAVAID_TYPE.)
-FIX_STATUS 90,15 (NOTE-If this =="FIX", then SET NAVAID_TYPE="FIX")
-NAME 25,40 (NOTE-This is not needed NON-NAVAID points)
(From this point, "FIX" refers to a 5 CHAR FIX, NAVAID, or AIRPORT.)
-FIX_ID 146,57

[BUG] -WX Station without WX Return

Describe the bug
10U (K10U) shows as a weathers station on the scope but does not actually have a report to give.

Expected behavior
These type of stations should not be in the export. I noticed that it is a "SA" wx type. We grab the info if it is only SA because of the station "NFL" which is a "SA UA".. the UA shouldn't be the determining factor. There is something we are missing.

[FEAT REQ.] - Directory Restructure

Describe the solution you'd like

  1. Considering the ISR folder will not hold ONLY ISRs, I suggest renaming that folder to ALIAS.

  2. Test sectorFile.sct2 put into the VRC folder.

[FEAT REQ.] SCT RUNWAY DATA

Is your feature request related to a problem? Please describe.
-No

Describe the solution you'd like
Provide the SECTOR File [RUNWAY] data.

Describe alternatives you've considered
-Not having the [RUNWAY] Data (which I am fine with).

Additional context
-Low priority, maybe never do it, as the data isn't really useful and actually contributes to fairly unrealistic controlling techniques.
-Your program already pulls the data required for this section.
(Runway Group (runway1) (runway2)) (Rwy1 MagHdg) (Rwy2 MagHdg) (Rwy1 (LAT) (LON)) (Rwy2 (LAT) (LON)) ;(comment-I would suggest APT ID)
RWY DATA for NASR2SCT

[BUG] - Install V0.6.4

Describe the bug
Error when installing 0.6.4 from fresh install

To Reproduce
Steps to reproduce the behavior:

  1. Download v.0.6.4
  2. Unzip
  3. Click Setup.exe
  4. Error Pops up

Expected behavior
Should install Correctly not crash

[BUG] - PAE Chart Recalls Formatting

The formatting for the Paine ILS Y/Z 16R is incorrect:

.PAEIYC .OPENURL https://aeronav.faa.gov/d-tpp/2014/00142IYLY16R.PDF ; SNOHOMISH COUNTY (PAINE FIELD)-ILS Y OR LOC Y RWY 16R
.PAELYC .OPENURL https://aeronav.faa.gov/d-tpp/2014/00142IYLY16R.PDF ; SNOHOMISH COUNTY (PAINE FIELD)-ILS Y OR LOC Y RWY 16R
.PAEIZC .OPENURL https://aeronav.faa.gov/d-tpp/2014/00142IZLZ16R.PDF ; SNOHOMISH COUNTY (PAINE FIELD)-ILS Z OR LOC Z RWY 16R
.PAELZC .OPENURL https://aeronav.faa.gov/d-tpp/2014/00142IZLZ16R.PDF ; SNOHOMISH COUNTY (PAINE FIELD)-ILS Z OR LOC Z RWY 16R

There appears to be others as well.
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.