local globeIdentifier = asset.require("scene/solarsystem//planets/earth/moon/moon").Moon.Identifier

local layer = {
  Identifier = "NAC_DTM_APOLLO17_MOSAIC_120CM",
  Name = [[LRO Narrow Angle Camera, Mosaic Apollo 17]],
  FilePath = asset.localResource("NAC_DTM_APOLLO17_MOSAIC_120CM.vrt"),
  Description = [[This is a mosaic of Narrow Angle Camera (NAC) images orthorectified with a 5m/ Digital Terrain Model (DTM) of the Apollo 17 landing site. NAC stereo image pairs from the Lunar Reconnaissance Orbiter Camera (LROC) aboard the Lunar Reconnaissance Orbiter (LRO). ). Images were processed ISIS 3.4.4 with SER enhancements and SOCET SET v5.5(c) from BAE Systems to create the DTM, and then the input images were orthorectified.]]
}
  
asset.onInitialize(function()
  openspace.globebrowsing.addLayer(globeIdentifier, "ColorLayers", layer)
end)
  
asset.onDeinitialize(function()
  openspace.globebrowsing.deleteLayer(globeIdentifier, "ColorLayers", layer.Identifier)
end)
  
asset.export("layer", layer)


asset.meta = {
  Name = [[LRO Narrow Angle Camera, Mosaic Apollo 17]],
  Version = "1.0",
  Author = "NASA/Treks",
  URL = "https://trek.nasa.gov/moon/#v=0.1&x=0&y=0&z=1&p=urn:ogc:def:crs:EPSG::104903&d=&l=NAC_DTM_APOLLO17_MOSAIC_120CM%2Ctrue%2C1&b=moon&e=-180.0%2C-90.0%2C180.0%2C90.0&sfv=&w=",
  License = "NASA/Treks",
  Description = [[LRO Narrow Angle Camera, Mosaic Apollo 17 layer from NASA/Treks for Moon]]
}
