pymsis.msis.create_input#

pymsis.msis.create_input(dates, lons, lats, alts, f107s=None, f107as=None, aps=None)#

Combine all input values into a single flattened array.

Parameters:
  • dates (ArrayLike) – Dates and times of interest

  • lons (ArrayLike) – Longitudes of interest

  • lats (ArrayLike) – Latitudes of interest

  • alts (ArrayLike) – Altitudes of interest

  • f107s (ArrayLike, optional) – F107 values for the previous day of the given date(s)

  • f107as (ArrayLike, optional) – F107 running 81-day average for the given date(s)

  • aps (ArrayLike, optional) – Ap for the given date(s)

Returns:

The shape of the data as a tuple (ndates, nlons, nlats, nalts) and the flattened version of the input data (ndates*nlons*nlats*nalts, 14). If the input array was preflattened (ndates == nlons == nlats == nalts), then the shape is (ndates,).

Return type:

tuple (shape, flattened_input)