Package gaiasky.data.orbit
Class HeliotropicOrbitDataLoader
java.lang.Object
gaiasky.data.orbit.HeliotropicOrbitDataLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Vector3dcorrectSunLongitude(Vector3d pos, Instant t) Transforms the given vector to a heliotropic system using the given time.protected Vector3dcorrectSunLongitude(Vector3d pos, Instant t, float origin) Transforms the given vector to a heliotropic system using the given time.load(InputStream data) Loads the data in the input stream and transforms it into Cartesian ecliptic coordinates.static voidprotected doubleprotected floatprotected intvoidwriteDistVsTimeData(String filePath, PointCloudData data) Writes a file under the given path with the distance data
-
Constructor Details
-
HeliotropicOrbitDataLoader
public HeliotropicOrbitDataLoader()
-
-
Method Details
-
main
-
load
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
-
parsed
-
parsei
-
correctSunLongitude
Transforms the given vector to a heliotropic system using the given time.- Parameters:
pos- Position vectort- Time- Returns:
- Vector3 with the position in the heliotropic reference frame
-
correctSunLongitude
Transforms the given vector to a heliotropic system using the given time.- Parameters:
pos- Position vectort- Timeorigin- The origin angle- Returns:
- Vector3 with the position in the heliotropic reference frame
-
writeDistVsTimeData
Writes a file under the given path with the distance data- Throws:
Exception
-