Recover density JB2008 and its parameter JB2008spaceenvironmentData

Hi to everyone, I’m relatively new to this community and I’m having some problem with the density recovery with the model JB2008. In particular i’m not sure what to put in the field parameters for the constructor of JB2008

JB2008​(JB2008InputParameters parameters, PVCoordinatesProvider sun, BodyShape earth)

I attach the code with what i tried to do but does not work

File orekitData = new File(“demo/orekit-data”);
DataProvidersManager manager = DataContext.getDefault().getDataProvidersManager();
manager.addProvider(new DirectoryCrawler(orekitData));
AbsoluteDate date = new AbsoluteDate(2023, 10, 1, 12, 0, 0.0, TimeScalesFactory.getUTC());
BodyShape earth = new OneAxisEllipsoid(Constants.WGS84_EARTH_EQUATORIAL_RADIUS, Constants.WGS84_EARTH_FLATTENING, FramesFactory.getITRF(IERSConventions.IERS_2010, true));

    // Define the date and position
    GeodeticPoint point = new GeodeticPoint(Math.toRadians(45.0), Math.toRadians(45.0), 400000.0); // 400 km altitude
    TopocentricFrame fr = new TopocentricFrame(earth, point, "");
    Frame inertialFrame = FramesFactory.getEME2000();
    PVCoordinates pVInertials = fr.getPVCoordinates(new AbsoluteDate(), inertialFrame);
    Vector3D position = pVInertials.getPosition();

    // Define the sun
    PVCoordinatesProvider sun = CelestialBodyFactory.getSun();

    JB2008InputParameters parameters = new JB2008SpaceEnvironmentData("DEFAULT_SUPPORTED_NAMES_SOLFSMY","DEFAULT_SUPPORTED_NAMES_DTC");

    // Set up the JB2008 atmosphere model
    JB2008 jb2008 = new JB2008(parameters, sun, earth);
    jb2008.getDensity(date, position, inertialFrame);

Thanks a lot in advance!

Hi @Pablo

Do you have the SOLFSMY and DTCFILE in you orekit-data folder? Those files are available here: JB2008 | Space Environment Technologies
Please note that you have to create an account to access the historical data (If I remember well, creating an account is free). In addition, the website only provides historical data. In other words, you will not find the predicted data.

Could you give more details?

Best regards,
Bryan