-- 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_LOLA_ClrShade_Global_128ppd_v04 = {
  Identifier = "LRO_LOLA_ClrShade_Global_128ppd_v04",
  Name = [[LRO LOLA DEM, ColorHillshade]],
  FilePath = asset.localResource("LRO_LOLA_DEM/ColorHillshade.vrt"),
  Description = [[]]
}

local treks_LRO_LOLA_ClrShade_Global_256ppd_v06 = {
  Identifier = "LRO_LOLA_ClrShade_Global_256ppd_v06",
  Name = [[LRO LOLA DEM, ColorHillshade v6]],
  FilePath = asset.localResource("LRO_LOLA_DEM/ColorHillshade_v6.vrt"),
  Description = [[]]
}

local treks_LRO_LOLA_Coverage_Global_128ppd_v04 = {
  Identifier = "LRO_LOLA_Coverage_Global_128ppd_v04",
  Name = [[LRO LOLA DEM, Coverage]],
  FilePath = asset.localResource("LRO_LOLA_DEM/Coverage.vrt"),
  Description = [[]]
}

local treks_LRO_LOLA_Shade_Global_256ppd_v06 = {
  Identifier = "LRO_LOLA_Shade_Global_256ppd_v06",
  Name = [[LRO LOLA DEM, Hillshade]],
  FilePath = asset.localResource("LRO_LOLA_DEM/Hillshade.vrt"),
  Description = [[]]
}

local treks_LRO_LOLA_NoDataMask_Global_128ppd_v04 = {
  Identifier = "LRO_LOLA_NoDataMask_Global_128ppd_v04",
  Name = [[LRO LOLA DEM, No Data Mask]],
  FilePath = asset.localResource("LRO_LOLA_DEM/No_Data_Mask.vrt"),
  Description = [[]]
}

local treks_LRO_LOLA_ClrShade_NPole875_5mp_v04_EQ = {
  Identifier = "LRO_LOLA_ClrShade_NPole875_5mp_v04_EQ",
  Name = [[LRO LOLA DEM, N Pole, 87.5 deg, ColorHillshade]],
  FilePath = asset.localResource("LRO_LOLA_DEM/N_Pole.vrt"),
  Description = [[This is version 4 of the LRO LOLA North Pole 87.5 deg DEM, ColorHillshade. This is a colorized shaded-relief of a original polar LOLA Digital Elevation Model (DEM). The DEM is a shape map (radius) of the Moon at a resolution 100 meters per pixel, based on altimetry data acquired through Spetember 2011 by the LOLA instrument. The ground tracks were interpolated using the Generic Mapping Tools programs "surface" and "grdblend". Map values are referred to a radius of 1737400 m.]]
}

local treks_LRO_LOLA_ClrShade_SPole875_5mp_v04_EQ = {
  Identifier = "LRO_LOLA_ClrShade_SPole875_5mp_v04_EQ",
  Name = [[LRO LOLA DEM, S Pole, 87.5 deg, ColorHillshade]],
  FilePath = asset.localResource("LRO_LOLA_DEM/S_Pole.vrt"),
  Description = [[This is version 4 of the LRO LOLA South Pole 87.5 deg DEM, ColorHillshade. This is a colorized shaded-relief of a original polar LOLA Digital Elevation Model (DEM). The DEM is a shape map (radius) of the Moon at a resolution 100 meters per pixel, based on altimetry data acquired through Spetember 2011 by the LOLA instrument. The ground tracks were interpolated using the Generic Mapping Tools programs "surface" and "grdblend". Map values are referred to a radius of 1737400 m.]]
}

asset.onInitialize(function()
  openspace.globebrowsing.addLayer(globeIdentifier, "ColorLayers", treks_LRO_LOLA_ClrShade_Global_128ppd_v04)
  openspace.globebrowsing.addLayer(globeIdentifier, "ColorLayers", treks_LRO_LOLA_ClrShade_Global_256ppd_v06)
  openspace.globebrowsing.addLayer(globeIdentifier, "ColorLayers", treks_LRO_LOLA_Coverage_Global_128ppd_v04)
  openspace.globebrowsing.addLayer(globeIdentifier, "ColorLayers", treks_LRO_LOLA_Shade_Global_256ppd_v06)
  openspace.globebrowsing.addLayer(globeIdentifier, "ColorLayers", treks_LRO_LOLA_NoDataMask_Global_128ppd_v04)
  openspace.globebrowsing.addLayer(globeIdentifier, "ColorLayers", treks_LRO_LOLA_ClrShade_NPole875_5mp_v04_EQ)
  openspace.globebrowsing.addLayer(globeIdentifier, "ColorLayers", treks_LRO_LOLA_ClrShade_SPole875_5mp_v04_EQ)
end)

asset.onDeinitialize(function()
  openspace.globebrowsing.deleteLayer(globeIdentifier, "ColorLayers", "treks_LRO_LOLA_ClrShade_Global_128ppd_v04")
  openspace.globebrowsing.deleteLayer(globeIdentifier, "ColorLayers", "treks_LRO_LOLA_ClrShade_Global_256ppd_v06")
  openspace.globebrowsing.deleteLayer(globeIdentifier, "ColorLayers", "treks_LRO_LOLA_Coverage_Global_128ppd_v04")
  openspace.globebrowsing.deleteLayer(globeIdentifier, "ColorLayers", "treks_LRO_LOLA_Shade_Global_256ppd_v06")
  openspace.globebrowsing.deleteLayer(globeIdentifier, "ColorLayers", "treks_LRO_LOLA_NoDataMask_Global_128ppd_v04")
  openspace.globebrowsing.deleteLayer(globeIdentifier, "ColorLayers", "treks_LRO_LOLA_ClrShade_NPole875_5mp_v04_EQ")
  openspace.globebrowsing.deleteLayer(globeIdentifier, "ColorLayers", "treks_LRO_LOLA_ClrShade_SPole875_5mp_v04_EQ")
end)

asset.export("LRO_LOLA_ClrShade_Global_128ppd_v04", treks_LRO_LOLA_ClrShade_Global_128ppd_v04)
asset.export("LRO_LOLA_ClrShade_Global_256ppd_v06", treks_LRO_LOLA_ClrShade_Global_256ppd_v06)
asset.export("LRO_LOLA_Coverage_Global_128ppd_v04", treks_LRO_LOLA_Coverage_Global_128ppd_v04)
asset.export("LRO_LOLA_Shade_Global_256ppd_v06", treks_LRO_LOLA_Shade_Global_256ppd_v06)
asset.export("LRO_LOLA_NoDataMask_Global_128ppd_v04", treks_LRO_LOLA_NoDataMask_Global_128ppd_v04)
asset.export("LRO_LOLA_ClrShade_NPole875_5mp_v04_EQ", treks_LRO_LOLA_ClrShade_NPole875_5mp_v04_EQ)
asset.export("LRO_LOLA_ClrShade_SPole875_5mp_v04_EQ", treks_LRO_LOLA_ClrShade_SPole875_5mp_v04_EQ)


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