Class HeliotropicOrbitDataLoader

java.lang.Object
gaiasky.data.orbit.HeliotropicOrbitDataLoader

public class HeliotropicOrbitDataLoader extends Object
  • Constructor Details

    • HeliotropicOrbitDataLoader

      public HeliotropicOrbitDataLoader()
  • Method Details

    • main

      public static void main(String[] args)
    • load

      public PointCloudData load(InputStream data) throws Exception
      Loads the data in the input stream and transforms it into Cartesian ecliptic coordinates. The reference system of the data goes as follows:
      • Origin of frame : Earth
      • X and Y axis in the EQUATORIAL PLANE with X pointing in the direction of vernal equinox.
      • Z perpendicular to the the EQUATORIAL PLANE in the north direction
      • The Y direction is defined to have (X,Y,Z) as a "three axis" positively oriented.

      The simulation reference system:

      • - XZ lies in the ECLIPTIC PLANE, with Z pointing to the vernal equinox.
      • - Y perpendicular to the ECLIPTIC PLANE pointing north.
      Parameters:
      data - The input stream with the data to load
      Throws:
      Exception
    • parsef

      protected float parsef(String str)
    • parsed

      protected double parsed(String str)
    • parsei

      protected int parsei(String str)
    • correctSunLongitude

      protected Vector3d correctSunLongitude(Vector3d pos, Instant t)
      Transforms the given vector to a heliotropic system using the given time.
      Parameters:
      pos - Position vector
      t - Time
      Returns:
      Vector3 with the position in the heliotropic reference frame
    • correctSunLongitude

      protected Vector3d correctSunLongitude(Vector3d pos, Instant t, float origin)
      Transforms the given vector to a heliotropic system using the given time.
      Parameters:
      pos - Position vector
      t - Time
      origin - The origin angle
      Returns:
      Vector3 with the position in the heliotropic reference frame
    • writeDistVsTimeData

      public void writeDistVsTimeData(String filePath, PointCloudData data) throws Exception
      Writes a file under the given path with the distance data
      Throws:
      Exception