Class CssiSpaceWeatherData

    • Field Detail

      • DEFAULT_SUPPORTED_NAMES

        public static final String DEFAULT_SUPPORTED_NAMES
        Default regular expression for supported names that works with all officially published files.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CssiSpaceWeatherData

        @DefaultDataContext
        public CssiSpaceWeatherData​(String supportedNames)
        Simple constructor. This constructor uses the default data context.

        The original file names provided by AGI/CSSI are of the form: SpaceWeather-All-v1.2.txt (AGI's ftp) or SW-Last5Years.txt (CelesTrak's website). So a recommended regular expression for the supported names that works with all published files is: DEFAULT_SUPPORTED_NAMES.

        Parameters:
        supportedNames - regular expression for supported AGI/CSSI space weather files names
      • CssiSpaceWeatherData

        public CssiSpaceWeatherData​(String supportedNames,
                                    DataProvidersManager dataProvidersManager,
                                    TimeScale utc)
        Constructor that allows specifying the source of the CSSI space weather file.
        Parameters:
        supportedNames - regular expression for supported AGI/CSSI space weather files names
        dataProvidersManager - provides access to auxiliary data files.
        utc - UTC time scale.
    • Method Detail

      • getInstantFlux

        public double getInstantFlux​(AbsoluteDate date)
        Get the value of the instantaneous solar flux.
        Specified by:
        getInstantFlux in interface DTM2000InputParameters
        Parameters:
        date - the current date
        Returns:
        the instantaneous solar flux
      • getMeanFlux

        public double getMeanFlux​(AbsoluteDate date)
        Get the value of the mean solar flux.
        Specified by:
        getMeanFlux in interface DTM2000InputParameters
        Parameters:
        date - the current date
        Returns:
        the mean solar flux
      • getThreeHourlyKP

        public double getThreeHourlyKP​(AbsoluteDate date)
        Get the value of the 3 hours geomagnetic index. With a delay of 3 hours at pole to 6 hours at equator using: delay=6-abs(lat)*0.033 (lat in deg.)
        Specified by:
        getThreeHourlyKP in interface DTM2000InputParameters
        Parameters:
        date - the current date
        Returns:
        the 3H geomagnetic index
      • get24HoursKp

        public double get24HoursKp​(AbsoluteDate date)
        Get the last 24H mean geomagnetic index.
        Specified by:
        get24HoursKp in interface DTM2000InputParameters
        Parameters:
        date - the current date
        Returns:
        the 24H geomagnetic index
      • getDailyFlux

        public double getDailyFlux​(AbsoluteDate date)
        Get the value of the daily F10.7 solar flux for previous day.
        Specified by:
        getDailyFlux in interface NRLMSISE00InputParameters
        Parameters:
        date - the current date
        Returns:
        the daily F10.7 flux for previous day
      • getAverageFlux

        public double getAverageFlux​(AbsoluteDate date)
        Get the value of the 81 day average of F10.7 solar flux centered on current day.
        Specified by:
        getAverageFlux in interface NRLMSISE00InputParameters
        Parameters:
        date - the current date
        Returns:
        the 81 day average of F10.7 solar flux centered on current day
      • getAp

        public double[] getAp​(AbsoluteDate date)
        Get the Ap geomagnetic indices.

        Ap indices are provided as an array such as:

        • 0 → daily Ap
        • 1 → 3 hr Ap index for current time
        • 2 → 3 hr Ap index for 3 hrs before current time
        • 3 → 3 hr Ap index for 6 hrs before current time
        • 4 → 3 hr Ap index for 9 hrs before current time
        • 5 → Average of eight 3 hr Ap indices from 12 to 33 hrs prior to current time
        • 6 → Average of eight 3 hr Ap indices from 36 to 57 hrs prior to current time
        Specified by:
        getAp in interface NRLMSISE00InputParameters
        Parameters:
        date - the current date
        Returns:
        the array of Ap indices