By Gerry Hattendorf 935415
#59780 I've read some posts about converting lat/lon coordinates from degree, minute, second to decimal format, as well as setting up coordinates from a radial/distance from a fix, and being the lazy person that I am, created a little stand-alone utility that reads your sector file, and converts a VOR, AIRPORT, INTERSECTION, or RUNWAY that you select to degree decimal format and DDD:MM:SS, and if you wish, you can then set a radial/distance offest to the fix, which can be copied to the clipboard to aid in creating senerio files, or adding new waypoints into your sector file.

Feel free to try it, it's written for any Win32 OS, and is a standalone utility.

http://ghresume.us/downloads/coorddecoder.zip

I hope you like it, please let me know what you think :D


Thanks

Gerry Hattendorf
Last edited by Gerry Hattendorf 935415 on Mon Jul 17, 2006 9:45 pm, edited 3 times in total.
By William Raymond 810439
#59855 Let me be the first to say terrific and many thanks

And as usual we are greedy.....is there a way you could also allow for the manual input of the coordinates and then have your program convert it? Reason I ask is specifically when placing the aircraft on the ground on a runway...or maybe you could read in the runway numbers from the sector file? As I said greedy :-)

Thanks a bunch for this
By Richard Snaer 810117
#59882 Very Neat and useful Tool. Thanks. Found it especially useful in outlying airport scenerios for preparing situation files.

Dick Snaer
vZDV TA
By Gerry Hattendorf 935415
#59902
William Raymond 810439 wrote:Let me be the first to say terrific and many thanks

And as usual we are greedy.....is there a way you could also allow for the manual input of the coordinates and then have your program convert it? Reason I ask is specifically when placing the aircraft on the ground on a runway...or maybe you could read in the runway numbers from the sector file? As I said greedy :-)

Thanks a bunch for this


Bill,

Thank you for the kind words :D Are you looking to just convert DD:MM:SS format to decimal degrees, or are you trying to do a reverse lookup for the closest fix? If I understand you, your trying to setup aircraft in position on the runway end?

Gerry
By Gerry Hattendorf 935415
#60015
William Raymond 810439 wrote:..or maybe you could read in the runway numbers from the sector file? As I said greedy :-)


Okay, you ask, and you shall recieve! (dont ask for money though :roll: )

Verision 1.2 is available for download at the original link, the enhancements I've made are:

    Automatically loads the default sector Magnetic Variation
    Displays the version name of the sector file
    Runway threshold coordinanates added when an airport fix is selected
    Runway selection is displayed on a drop-down list (combo-box)
    Added smart logic for the <Enter> and <ESC> keys to eliminate "mousing-around"


If you have any questions or comments, please let me know.

Thanks!
By William Raymond 810439
#60064 Thanks for the update Gerry. Yes I was trying to get the runway information. I see where you have added that feature, but so far on all the sector files I have tested the runway shows "none" after I enter the airport fix. Maybe I am doing it wrong?

Great work
By Gerry Hattendorf 935415
#60066
William Raymond 810439 wrote:Thanks for the update Gerry. Yes I was trying to get the runway information. I see where you have added that feature, but so far on all the sector files I have tested the runway shows "none" after I enter the airport fix. Maybe I am doing it wrong?

Great work


What sector file are you using?
By William Raymond 810439
#60067
Gerry Hattendorf 935415 wrote:
William Raymond 810439 wrote:Thanks for the update Gerry. Yes I was trying to get the runway information. I see where you have added that feature, but so far on all the sector files I have tested the runway shows "none" after I enter the airport fix. Maybe I am doing it wrong?

Great work


What sector file are you using?


I tried a Miami Ground and other Miami files..also some in Jamaica MKJS/MKJP...
By Gerry Hattendorf 935415
#60068 You might want to try the Center sector files, because all sector files are built a bit differently. (to say it nicely)

If you not able to see anything in the Runway combo box, use the "Open Sector File for Editing" from the File menu, and then search for "[RUNWAY]", and then look for your airport. It seems that if it's not defined in your sector file, then it will not load any runway coordinates.

If your still having problems, let me know the file name of the sector file your using, so that I can examine it!

Cheers!

Gerry
By William Raymond 810439
#60076
Gerry Hattendorf 935415 wrote:You might want to try the Center sector files, because all sector files are built a bit differently. (to say it nicely)

If you not able to see anything in the Runway combo box, use the "Open Sector File for Editing" from the File menu, and then search for "[RUNWAY]", and then look for your airport. It seems that if it's not defined in your sector file, then it will not load any runway coordinates.

If your still having problems, let me know the file name of the sector file your using, so that I can examine it!

Cheers!

Gerry


I tried a center file and it worked ok. I also examined the other files to see what the difference was in the RUNWAY section and the format seems to be the same and it would not load. Not an expert on sector files but something else is probably wrong. But as you diplomatically said not all files are created the same :-) Since the center files have more fixes etc I will work with it so no need to pursue any further unless you want me to send you the ground file for research..

Thanks again for the program really appreciate it

EDIT: Went back and checked and got it to work...seems the program prefers KMIA instead of MIA for airport and runway or more accurately a four place code instead of three :-) All is well thanks again for the work
By Gerry Hattendorf 935415
#61255 For anybody that's interested, I've released v1.22, which adds the lat/lon coordinate display in easy to read DD:MM:SS format, and fixed some math caluclations as C++ math libraries don't play well all the time! :lol:

http://ghresume.us/downloads/coorddecoder.zip

Gerry
By Alberto Molteni 915217
#61853
Gerry Hattendorf 935415 wrote:fixed some math caluclations as C++ math libraries don't play well all the time! :lol:

Gerry


You can say that again! What algorithm are you using for radial/distance from fix calculations? I'm trying to code a function for Vincenty's direct method but I am getting an underflow error.
By Gerry Hattendorf 935415
#61854
Alberto Molteni 915217 wrote:
Gerry Hattendorf 935415 wrote:fixed some math caluclations as C++ math libraries don't play well all the time! :lol:

Gerry


You can say that again! What algorithm are you using for radial/distance from fix calculations? I'm trying to code a function for Vincenty's direct method but I am getting an underflow error.


Drop me an email and I can send you the code if you wish!

Gerry
By Jeff Clark 810352
#75468
Gerry Hattendorf 935415 wrote:You might want to try the Center sector files, because all sector files are built a bit differently. (to say it nicely)

If you not able to see anything in the Runway combo box, use the "Open Sector File for Editing" from the File menu, and then search for "[RUNWAY]", and then look for your airport. It seems that if it's not defined in your sector file, then it will not load any runway coordinates.

If your still having problems, let me know the file name of the sector file your using, so that I can examine it!

Cheers!

Gerry


Gerry - as part of the "hit squad" project, I'm trying to do a little tweaking of the India sector file, and also cannot see runway info. We -have- a [Runway] section, and the relevant lines for mumbai, which is what I'm trying to work with, read as follows:

09 27 090 270 N019.05.15.651 E072.50.54.433 N019.05.17.628 E072.52.54.264 ;VABB Chhatrapati Shivaji Intl
14 32 135 315 N019.05.53.414 E072.51.29.349 N019.04.47.543 E072.52.41.530 ;VABB Chhatrapati Shivaji Intl

Any ideas why it's not showing me "rwy" info? (if you need to load the sector file yourself it's at http://india.vatsim.info/web/downloads/india_0606.zip

Jeff Clark