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



local AU = 1.496e+8

local Translation = {
  Type = "KeplerTranslation",
  Eccentricity = 0.8565069519144183,
  SemiMajorAxis = 532.3064703980097 * AU,
  Inclination = 11.93034000375754,
  AscendingNode = 144.2584776398181,
  ArgumentOfPeriapsis = 310.8687900929183,
  MeanAnomaly = 358.4694078785378,
  Epoch = "2023 02 10 13:48:38",
  Period = 4485811.755507208 * 60 * 60 * 24
}

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