You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
954 B
JavaScript
23 lines
954 B
JavaScript
import { Iau2000Orientation } from "../../Source/Cesium.js";
|
|
import { JulianDate } from "../../Source/Cesium.js";
|
|
import { TimeStandard } from "../../Source/Cesium.js";
|
|
|
|
describe("Core/Iau2000Orientation", function () {
|
|
it("compute moon", function () {
|
|
var date = new JulianDate(2451545.0, -32.184, TimeStandard.TAI);
|
|
var param = Iau2000Orientation.ComputeMoon(date);
|
|
|
|
// expected results taken from STK Components:
|
|
// Iau2000Orientation.ComputeMoon(TimeConstants.J2000);
|
|
var expectedRightAscension = 4.6575460830237914;
|
|
var expectedDeclination = 1.1456533675897986;
|
|
var expectedRotation = 0.71899299269222972;
|
|
var expectedRotationRate = 0.0000026518066425764541;
|
|
|
|
expect(param.rightAscension).toEqual(expectedRightAscension);
|
|
expect(param.declination).toEqual(expectedDeclination);
|
|
expect(param.rotation).toEqual(expectedRotation);
|
|
expect(param.rotationRate).toEqual(expectedRotationRate);
|
|
});
|
|
});
|