r3 - 27 Nov 2009 - 15:02:17 - BenjaminGilsonYou are here: TWiki >  Documentation Web  >  AskedQuestions > PoscvtFileWithSeveralCoordinates

Question

Hello,

I've run PRSolve, which gives me a file with several ECEF coordinates. Now I'd like to convert these coordinates to lat/long/h. Unfortunately I am using windows and I don't see the way to use poscvt for more than one coordinate at the time.

Does someone know the way to automatize the process (recursive batch file?) or to use poscvt on a file containing several coordinates ?

Thanks in advance,

Benjamin Gilson

-- BenjaminGilson - 14 Nov 2009

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Used the following batch file (parameters for specified precision included). It's working now smile You have to pay attention to the formatting of your input file (here 3 columns each separated by a single space).


@echo off

FOR /F "tokens=*" %%i IN ('type yourfile.txt') DO poscvt --ecef="%%i" -F "%%.9A %%.9L %%.3h" >> results.txt

pause

-- BenjaminGilson - 25 Nov 2009

 
Change status to:

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
WEBLOGOALT
This site is powered by the TWiki collaboration platformCopyright amp;© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback