local transforms = asset.require("scene/solarsystem/sun/transforms")


local OneAU = 1.496e+8

local Translation = {
  Type = "KeplerTranslation",
  Eccentricity = 0.4319581224809352,
  SemiMajorAxis = 68.14536545526268	 * OneAU,
  Inclination = 43.76049565740999,
  AscendingNode = 36.07068767579804,
  ArgumentOfPeriapsis = 150.9970340507818,
  MeanAnomaly = 208.7617474668772,
  Epoch = "2023 02 08 21:38:05",
  Period = 205472.1258735657 * 60 * 60 * 24
}

local Position = {
  Identifier = "ErisPosition",
  Parent = transforms.SunECLIPJ2000.Identifier,
  Transform = {
    Translation = Translation
  },
  GUI = {
    Name = "Eris Position",
    Path = "/Solar System/Dwarf Planets/Eris",
    Hidden = true
  }
}


asset.onInitialize(function()
    openspace.addSceneGraphNode(Position)
end)

asset.onDeinitialize(function()
    openspace.removeSceneGraphNode(Position)
end)

asset.export("Translation", Translation)
asset.export("Position", Position)



asset.meta = {
  Name = "Eris Position (Keplerian)",
  Version = "1.0",
  Description = [[Position of Eris. KeplerTranslation Version Data from
    JPL Horizons]],
  Author = "OpenSpace Team",
  URL = "https://ssd.jpl.nasa.gov/sbdb.cgi?sstr=Eris",
  License = "JPL/NASA"
}
