[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orekit Users] Re: orekit with cpython through JCC



Hi,

To build orekit-5.0 on windows together with JCC, I got it to work with following line:

python -m jcc.__main__ --jar orekit-5.0.jar --jar commons-math-2.2.jar --include orekit-data.zip --shared  --python orekit --reserved INFINITE --reserved NO_DATA --reserved ERROR --install --build

In order for the VM to find the orekit-data.zip, it seems like it needs to be located in you ... python system /site-packages/JCC-XXX.egg/jcc/classes

Regards
/Petrus


On Thu, Jun 2, 2011 at 1:12 PM, Petrus Hyvönen <petrus.hyvonen@gmail.com> wrote:
Hi,

Has someone been trying to inteface orekit to cpython using JCC? (http://lucene.apache.org/pylucene/jcc/index.html)

I have managed to compile the wrapper on mac osx, but not on windows, the basic functionality seems to work (stepped keplerian propagation etc) from cpython ('normal' python, in comparison to jython). Python has a rich access to plotting and visualization, that's why I'm trying...

my JCC command on mac is:
python -m jcc --jar orekit-5.0.jar --jar commons-math-2.2.jar --include orekit-data.zip --shared  --python orekit --install --files separate --build

which creates a python module 'orekit' with a copy of orekit-data visible for the module. From here, it can be accessed in python by:

import orekit
orekit.initVM()
DM=orekit.DataProvidersManager.getInstance()
crawler=orekit.ZipJarCrawler('orekit-data.zip')
DM.clearProviders()
DM.addProvider(crawler)

...

Trying the JCC line on windows xp on my machine, gives some compilation errors w gcc. Maybe someone else has better luck :) (let me know in that case :)

Best regards
/Petrus







--
_____________________________________________
Petrus Hyvönen, Uppsala, Sweden
Mobile Phone/SMS:+46 73 803 19 00