Function pecsim::gcpm_v24_fortran

Function Documentation

std::vector<double> pecsim::gcpm_v24_fortran(DateTime datetime, double r_RE, double amlt, double alatr, double akp = -1)

Call the GCPM Fortran function.

Parameters:
  • datetime – The date and time in UTC

  • r_RE – The geocentric distance in Earth radii

  • amlt – The solar magnetic local time in hours

  • alatr – The solar magnetic latitude in radians

  • akp – The KP index (-1: use the KP index from data)

Returns:

std::vector<double> The output density array (4 elements, total electron density, total hydrogen density, helium density, oxygen density) in cm^-3