I have been working with Orekit quite a while and I wanted to start trying Rugged for Earth observation applications. I would like to implement a tileUpdater to Noaa’s GLOBE DEM like in this example here: An example of tileUpdater to Noaa's GLOBE DEM.
The problem is that I have experience with Orekit but always using the Python wrapper, not in Java… I saw here:
that @yzokras imports a PythonTileUpdater to perform the subclassing of TileUpdater like with other classes to use them in Python, but I am not sure how to do the same.
Is there anything I need to know or can you show me a way to do it?
I am not sure I understand your question, but reading your question I got to review the Rugged that was part of the Orekit python package, and it was not updated properly for the python wrapper 12.0 release. Now there is a build-1 soon on the servers that contains an updated Rugged package with the Python additional classes.
To get further help I think you need to specify more your question?
Hi @petrus.hyvonen , thanks for answering!
Basically, what I am looking for is for the class “PythonTileUpdater” in order to create my own
“TileUpdater” class.
I just brought the post of @yzokras because I saw in his code the line where he imported it:
from org.orekit.rugged.raster import PythonTileUpdater
but I get the error: cannot import name ‘PythonTileUpdater’ from ‘org.orekit.rugged.raster’.
It works! But now I am facing a different problem. I saw that in the new version of Orekit the TimeStampedPVCoordinates class has no attribute interpolate, and same with Vector3D and normalize.
So when I build the RuggedBuilder() I get this error:
Hi again, sorry for posting again here, but I would like to know if there is a way to use RuggedBuilder().build as I’m currently facing the errors I’ve mentioned in the comments.
Please Checa, could it be possible to give us some code snippets. It seems that you use JAVA class through Python bindings where inheritence is not straightforward. As mentionned by @petrus.hyvonen some cast are needed
Hi,
Thank you both for you answer. @petrus.hyvonen. Exactly, org.orekit.utils.TimeStampedPVCoordinates does not seem to have a method “interpolate”. That’s why I do not know why I receive the error: “java.lang.NoSuchMethodError: org.orekit.utils.TimeStampedPVCoordinates.interpolate” when I call the method “build” of the ruggedBuilder.
@jonathan.guinet I basically followed the tutorial of direct location. And when I build the rugged builder:
I am facing the same issue in Python. I have the most recent version of Orekit and I also can’t find the PythonTileUpdater.
I already created a different environment, downgraded, upgraded in order to test the issues, and it still persists on Orekit version: 12.1.2.
Yesterday, I posted in the forum (Set Digital Elevation Model on Rugged Builder) where I was capable of importing it once, but I got with an error NotImplementedError: ('instantiating java class', <class 'tu2.DEMTileUpdater'>). Yet, I could not reproduce this later, only with the TileUpdater function.
Is it possible that there still is an issue with the library, or am I missing something?