-- This file was automatically generated using a script found at
-- https://github.com/OpenSpace/scripts/treks-to-openspace. See the README.md file
-- in that repository for more information on how to run the script to update these
-- files. In particular in the case of errors, prefer to change that script rather
-- than the individual files

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

local treks_LRO_NAC_AvgMosaic_NPole855_1mp_EQ = {
  Identifier = "LRO_NAC_AvgMosaic_NPole855_1mp_EQ",
  Name = [[LRO LROC NAC Image Mosaic, N Pole, Avg Merge]],
  FilePath = asset.localResource("LRO_LROC_NAC_Image_Mosaic/N_Pole.vrt"),
  Description = [[This is a visible image mosaic generated using Lunar Reconnaissance Orbiter Camera (LROC) Narrow Angle Camera (NAC) images from the Lunar Reconnaissance Orbiter mission. The images were orthorectified using LRO's Lunar Orbiter Laser Altimeter (LOLA) polar 5 meter/pixel DEM. The mosaic is generated at half the resolution at which the individual LROC NAC images were gathered, which is approximately 0.5 meters/pixel. The mosaic was registered horizontally to the LOLA global DEM.]]
}

local treks_LRO_NAC_AvgMosaic_SPole855_1mp_EQ = {
  Identifier = "LRO_NAC_AvgMosaic_SPole855_1mp_EQ",
  Name = [[LRO LROC NAC Image Mosaic, S Pole, Avg Merge]],
  FilePath = asset.localResource("LRO_LROC_NAC_Image_Mosaic/S_Pole.vrt"),
  Description = [[This is a visible image mosaic generated using Lunar Reconnaissance Orbiter Camera (LROC) Narrow Angle Camera (NAC) images from the Lunar Reconnaissance Orbiter mission. The images were orthorectified using LRO's Lunar Orbiter Laser Altimeter (LOLA) polar 5 meter/pixel DEM. The mosaic is generated at half the resolution at which the individual LROC NAC images were gathered, which is approximately 0.5 meters/pixel. The mosaic was registered horizontally to the LOLA global DEM.]]
}

asset.onInitialize(function()
  openspace.globebrowsing.addLayer(globeIdentifier, "ColorLayers", treks_LRO_NAC_AvgMosaic_NPole855_1mp_EQ)
  openspace.globebrowsing.addLayer(globeIdentifier, "ColorLayers", treks_LRO_NAC_AvgMosaic_SPole855_1mp_EQ)
end)

asset.onDeinitialize(function()
  openspace.globebrowsing.deleteLayer(globeIdentifier, "ColorLayers", "treks_LRO_NAC_AvgMosaic_NPole855_1mp_EQ")
  openspace.globebrowsing.deleteLayer(globeIdentifier, "ColorLayers", "treks_LRO_NAC_AvgMosaic_SPole855_1mp_EQ")
end)

asset.export("LRO_NAC_AvgMosaic_NPole855_1mp_EQ", treks_LRO_NAC_AvgMosaic_NPole855_1mp_EQ)
asset.export("LRO_NAC_AvgMosaic_SPole855_1mp_EQ", treks_LRO_NAC_AvgMosaic_SPole855_1mp_EQ)


asset.meta = {
  Name = [[NASA Treks Layers for Moon LRO_LROC_NAC_Image_Mosaic],
  Version = "1.0",
  Author = "NASA/Treks",
  URL = "https://trek.nasa.gov/moon",
  License = "NASA/Treks",
  Description = [[LRO_LROC_NAC_Image_Mosaic layers from NASA/Treks for Moon]]
}
