Skip to content

lordfolken/pycondor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Health

pycondor

Python script to manage some Condor Soaring files such as tasks.

condor sample task

Usage

This work was not carried out by Condor Team.

CAUTION: WORK IN PROGRESS - USE AT YOUR OWN RISK

See ToDo Any help is Welcome!

C:\...\pycondor [master +26 ~2 -0 !]> python .\condor2task.py .\samples\default.fpl
Read '.\samples\default.fpl'
Condor version: 1150
Using functions from 'C:\Program Files (x86)\Condor\NaviCon.dll'
With landscape 'Provence-Oisans2'

MaxX: 207360.000000
MaxY: 345600.000000
XYToLat(0.000000,0.000000): 43.223301
XYToLon(0.000000,0.000000): 7.807540
XYToLat(207360.000000,0.000000): 43.168266
XYToLon(207360.000000,0.000000): 5.257740
XYToLat(207360.000000,345600.000000): 46.272892
XYToLon(207360.000000,345600.000000): 5.051742
XYToLat(0.000000,345600.000000): 46.334187
XYToLon(0.000000,345600.000000): 7.741717

   Airport Altitude Angle Azimuth Height              Name            PosX  \
0        1     1500  8105       0   5000       Saint Auban   144740.828125
1        0     1500    90       0   2500                Go   142760.828125
2        0     1600   360       0   5000           Coupe S  117142.2265625
3        0     2700   360       0   5000         3 Eveches   99735.8203125
4        0     2200   360       0   5000  DORMILLOUSE FORT  111656.5078125
5        1     1500   180       0   5000       Saint Auban   144740.828125

			 PosY  PosZ Radius  SectorType Width        Lat       Lon  \
0   96078.7265625   450   3000           0     0  44.054901  5.984000
1   91578.7265625   810   3000           0     0  44.015087  6.010722
2    94980.953125  1543    500           0     0  44.053600  6.328600
3  120593.0859375  2663   1000           0     0  44.288883  6.536117
4   134922.265625  2159    500           0     0  44.414448  6.381117
5   96078.7265625   450   3000           0     0  44.054901  5.984000

	  Bearing  DistanceToGo  DistanceToGoSum  DistanceToGoSumRev    Type  \
0  154.232736      4.915533         0.000000          131.250095   Start
1   80.323608     25.769657         4.915533          126.334562    Turn
2   32.245807     30.957813        30.685189          100.564906    Turn
3  318.619738     18.623293        61.643003           69.607092    Turn
4  218.495261     50.983799        80.266296           50.983799    Turn
5         NaN           NaN       131.250095            0.000000  Finish

		 ObservationZone
0   Cylinder radius: 500
1  Cylinder radius: 1000
2  Cylinder radius: 1000
3  Cylinder radius: 1000
4  Cylinder radius: 1000
5       Line length: 500

Spreadsheet (Excel, OpenOffice, LibreOffice) output (xls, xlsx, csv)

C:\...\pycondor>python.exe condor2task.py samples/default.fpl --debug --output xls

google earth plot

Matplotlib output (png)

C:\...\pycondor>python.exe condor2task.py samples/default.fpl --debug --output png

matplotlib plot

Google Earth output (kml)

C:\...\pycondor>python.exe condor2task.py samples/default.fpl --debug --output kml

google earth plot google earth plot

See file

Google Maps output

C:\...\pycondor>python.exe condor2task.py samples/default.fpl --debug --output gmaps

google maps google maps google maps google maps

See online

XCSoar (tsk)

C:\...\pycondor>python.exe condor2task.py samples/default.fpl --debug --output tsk

XCSoar XCSoar XCSoar XCSoar XCSoar

Ground elevation chart from Google Maps API

C:\...\pycondor>python.exe elevation.py out/default.xls

Elevation

Help

You can get command line help using:

C:\...\pycondor> python.exe condor2task.py --help

Usage: condor2task.py [OPTIONS] FILENAME

Options:
  --debug / --no-debug  debug mode
  --output TEXT         Output type in ['Excel', 'xls', 'xlsx', 'Excelx',
						'CSV', 'matplotlib', 'mpl', 'bmp', 'png', 'jpg',
						'tsk', 'xcsoar']
  --outdir TEXT         Output directory - default is 'script_directory\out'
  --condor_path TEXT    Condor Soaring installation path - default is
						C:\Program Files (x86)\Condor
  --landscape TEXT      Landscape name - should be inside 'Condor\Landscapes'
						directory (it's also the name of a .trn file)
  --help                Show this message and exit.	

##Dependencies

  • Windows (because of DLL function calls to NaviCon.dll)
  • Python 2.7 or Python 3.4

You might install a scientific Python distribution such as Anaconda Python. Using such a distribution the following libraries should ever be installed:

You will probably need to install missing libraries such as:

Use

> conda install name_of_the_package

or

> pip install name_of_the_package

to install missing libraries.

About

Python script to manage Condor Soaring files such as tasks (flight plans)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 86.2%
  • Smarty 6.8%
  • HTML 5.2%
  • Batchfile 1.6%
  • Shell 0.2%