• Stars
    star
    5
  • Rank 2,861,937 (Top 57 %)
  • Language
    Python
  • License
    BSD 3-Clause "New...
  • Created over 9 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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.

More Repositories

1

pyade

Unofficial Python library to use ADE Web API for ADE Planning from Adesoft
Python
14
star
2

pandas_degreedays

A Python package to calculate degree days (DD or in french DJU - degré jour unifié) from measured outdoor temperatures and to make it possible to quantify drift of energy consumption for heating (or cooling)
Python
12
star
3

pandas-helper-calc

Helper methods for Pandas Series and DataFrames to calculate numerically derivative and integral
Python
9
star
4

ExtensibleScheduler.jl

An advanced and extensible Julia events scheduler. https://scls19fr.github.io/ExtensibleScheduler.jl/dev/
Julia
8
star
5

numpy-buffer

A Python NumPy implementation of ring buffer (aka circular buffer)
Python
7
star
6

python-lms-tools

Python library to manage quiz format(s) used by differents Learning management system (LMS) especially Moodle (currently only Aiken format is supported)
Python
6
star
7

openweathermap_requests

Python package to fetch data from OpenWeatherMap.org with requests and requests-cache
Python
5
star
8

GPX.jl

A Julia GPX parser (ie reader) and creator (ie writer). GPX (GPS eXchange Format) is an XML based file format for GPS tracks.
Julia
5
star
9

Pushover.jl

A simple Pushover client for Julia https://scls19fr.github.io/Pushover.jl/dev
Julia
4
star
10

Sched.jl

A Julia event scheduler inspired by Python sched. https://scls19fr.github.io/Sched.jl/dev/
Julia
4
star
11

pandas-anonymizer

Some functions to anonymize data with Python Pandas
Python
4
star
12

wnb

Weight and balance progressive web application for light aircrafts (SEP, gliders...)
TypeScript
2
star
13

morse-listen

[WIP] Decoding morse code using Python, Machine Learning...
Python
2
star
14

arduino_libraries_search

Python Pandas script to search for Arduino libraries matching some keywords and to output to Excel file
Python
2
star
15

KMLTracks.jl

A Julia library to parse KML files or strings (ie read them) with gx:Track extension
Julia
2
star
16

simulator_keypad

C++
1
star
17

CakeLocale

Project containing a translation effort for the CakePHP core
1
star
18

python-airac

Python library to deal with AIRAC cycle dates
Python
1
star
19

AIRAC.jl

Julia library to deal with AIRAC cycle dates
Julia
1
star
20

openphysic

PHP
1
star
21

polaires_excel

Fichier Excel polaire des vitesses (planeur)
1
star
22

email-verif

A Python email validator. Verify if an email address is valid and really exists.
Python
1
star
23

tkinter_matplotlib_sample

A Python Tkinter example with Matplotlib integration
Python
1
star
24

JuliaVagrant

A Vagrant environment for Julia development (Linux Ubuntu host)
1
star
25

BulkSMS.jl

A Julia package to send SMS (Short Message Service) using BulkSMS API https://scls19fr.github.io/BulkSMS.jl/dev
Julia
1
star
26

web_scraping_sia_python

Unofficial Python library to scrape SIA (Service de l'information aéronautique) website
Python
1
star
27

sia_lua

Unofficial Lua library to download VAC from SIA (Service de l'information aéronautique) website
Lua
1
star
28

Nextion.jl

An unofficial Julia library to communicate with Itead Nextion display
Julia
1
star