SolarFluxPrediction:

Path: SC/Environs

% Computes the solar flux prediction based on Julian date. 
 This function requires the mat files "SolarFluxPredictions" and
 "Kp_ap_Ap_SN_F107_since_1932". Returns historical flux data when
 available and otherwise loads prediction data. Prediction data through
 2040 includes error bars on the daily 10.7 cm flux (predicted/high/low)
 and does NOT include the geomagnetic idnex aP. The outputs of this
 function are used by AtmJ70. Give a single output to get a struct, use a
 third input to specify which date/location format.
 
 Earlier prediction data had early, nominal, and late timing of the solar
 cycle, which shifted the model on the order of a few months. The latest
 prediction data from NOAA does not have this timing but the input is left
 for backwards compatibility.

 The database is good until 2040. Historical data has been loaded through
 November, 2021. Databases are stored as persistent variables for faster
 funtion calls.

 Has a built-in demo that plots for no outputs. 
--------------------------------------------------------------------------
   Form:
   SolarFluxPrediction;   % Plot the available data
                        d = SolarFluxPrediction( jD, timing, dateForm )
   [aP, f, fHat, fHat400] = SolarFluxPrediction( jD, timing )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   jD          (1,1) Julian date
   timing       ''   'nominal', 'early', or 'late'
   dateForm     (1)  True: lat/lon datenum struct. False: jD / rECI struct.

   -------
   Outputs
   -------
   aP          (1,1) Geomagnetic index 6.7 hours before the computation
   f           (3,1) Daily 10.7 cm solar flux (e-22 watts/m^2/cycle/sec)
   fHat        (3,1) 81-day mean of f (e-22 watts/m^2/cycle/sec)
   fHat400     (3,1) fHat 400 days before computation date
     - or -
   d            (.)  Data structure for ingestion by AtmJ70. JD form:
                     .jD      (1)   Input Julian date
                     .rECI    (3,1) ECI position
                     .aP      (1,1) Geomagnetic index
                     .f       (1,1) Daily 10.7 cm solar flux
                     .fHat    (1,1) 81-day mean of f
                     .fHat400 (1,1) fHat 400 days before

--------------------------------------------------------------------------

Children:

SC: Ephem/GMSTime
SC: SCMat/Kp_ap_Ap_SN_F107_since_1932
SC: SCMat/SolarFluxPredictions
Common: Graphics/Plot2D
Common: Time/Date2JD
Common: Time/JD2DN
Common: Time/JD2Date

Back to the SC Module page