|
Apr 10th, 2012 at 4:41pm
If someone knows how to extract the lat long data from iDirect hub please say.
Here is an idea: Can you access a directory which has all your options files ? If so, concatonate the option files together into one giant file, type .txt
Save the txt file.
This file contains multiple sequencies like so: hub_long = 245.1278 remote_lat = 30.285000 remote_long = 268.739700 spacecraft_long = -90.000000 Edit this file (with Microsoft Word, for example). Replace all new line characters with space. Replace all instances of remote_lat = with <new line> remote_lat = , Replace all instances of remote_long with , remote_long = Replace all instances of spacecraft_long with <new line> spacecraft_long =
You should now have a file containing two types of line.
Long lines of rubbish Short wanted lines, like this: remote_lat = , 30.285000, remote_long = , 268.739700
Save the txt file.
Now load the entire txt file into Excel, with the delimiter set to ,
Sort the whole spread sheet and all the wanted lines will become grouped together. Delete all the unwanted lines.
Save the Excel file.
Then add formulas like I suggested above, using as input, columns B and D, to convert to new columns of deg minutes and seconds. If you have site longitudes in the range 180 to 360 deg you might like to subtract from 360 before converting to deg, min, sec so as to get the deg W version. Note the angles (deg, min and sec) go backwards aound the earth!
Arrange the 6 output columns, put titles at the top, select that area of cells and printout.
Save the Excel file.
Best regards, Eric.
|