Another problem is torturing me today.
I am trying to initialize a Geomagnetic field taking advantage of the GeoMagneticFieldFactory class.
In particular I am using the method getIGRF() which requires an decimal year as input.
Using the GeoMagneticField.getDecimalYear() method, I can easily calculate it and give it as input to the getIGRF.
Here the code:
decimal_year = GeoMagneticField.getDecimalYear(5,2,2022)
mag_field = GeoMagneticFieldFactory.getIGRF(decimal_year)
But when I do so, I get an unusual error saying " org.orekit.errors.OrekitException: ^IGRF.COF$ not existing in the classpath"
Does anyone know what does this mean and a workaround for that?
Definitely the right solution, but I got the same error after putting the .cof into the config\orekit-data.zip\orekit-data-master folder that I have.
Am I doing something wrong?