Class HeliotropicOrbitDataLoader

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

public class HeliotropicOrbitDataLoader extends Object
  • Constructor Details Link icon

    • HeliotropicOrbitDataLoader Link icon

      public HeliotropicOrbitDataLoader()
  • Method Details Link icon

    • main Link icon

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

      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 Link icon

      protected float parsef(String str)
    • parsed Link icon

      protected double parsed(String str)
    • parsei Link icon

      protected int parsei(String str)
    • correctSunLongitude Link icon

      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 Link icon

      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 Link icon

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