Class CachedNormalizedSphericalHarmonicsProvider

java.lang.Object
org.orekit.forces.gravity.potential.CachedNormalizedSphericalHarmonicsProvider
All Implemented Interfaces:
NormalizedSphericalHarmonicsProvider, SphericalHarmonicsProvider, TideSystemProvider

public class CachedNormalizedSphericalHarmonicsProvider extends Object implements NormalizedSphericalHarmonicsProvider
Caching wrapper for NormalizedSphericalHarmonicsProvider.

This wrapper improves efficiency of NormalizedSphericalHarmonicsProvider by sampling the values at a user defined rate and using interpolation between samples. This is important with providers that have sub-daily frequencies and are computing intensive, such as tides fields.

Since:
6.1
Author:
Luc Maisonobe
See Also:
  • Constructor Details

    • CachedNormalizedSphericalHarmonicsProvider

      public CachedNormalizedSphericalHarmonicsProvider(NormalizedSphericalHarmonicsProvider rawProvider, double step, int nbPoints, int maxSlots, double maxSpan, double newSlotInterval)
      Simple constructor.
      Parameters:
      rawProvider - underlying raw provider
      step - time step between sample points for interpolation
      nbPoints - number of points to use for interpolation, must be at least 2
      maxSlots - maximum number of independent cached time slots
      maxSpan - maximum duration span in seconds of one slot (can be set to Double.POSITIVE_INFINITY if desired)
      newSlotInterval - time interval above which a new slot is created instead of extending an existing one
  • Method Details