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



local AU = 1.496e+8

local Translation = {
  Type = "KeplerTranslation",
  Eccentricity = 0.2286250262659888,
  SemiMajorAxis = 39.11652902051571 * AU,
  Inclination = 20.56757017337535,
  AscendingNode = 268.5357792998585,
  ArgumentOfPeriapsis = 73.46005226906388,
  MeanAnomaly = 184.3682302120697,
  Epoch = "2023 02 08 18:00:50",
  Period = 89359.12208173508 * 60 * 60 * 24
}

local Position = {
  Identifier = "OrcusPosition",
  Parent = transforms.SunECLIPJ2000.Identifier,
  Transform = {
    Translation = Translation
  },
  GUI = {
    Name = "Orcus Position",
    Path = "/Solar System/Dwarf Planets/Orcus",
    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 = "Orcus Position (Keplerian)",
  Version = "1.0",
  Description = [[Position of Orcus. KeplerTranslation Version Data from
    JPL Horizons]],
  Author = "OpenSpace Team",
  URL = "https://ssd.jpl.nasa.gov/sbdb.cgi?sstr=Orcus",
  License = "JPL/NASA"
}
