local globe = asset.require("../../moon")



local Layer = {
  Identifier = "Lola_Clr_Shade_Sweden",
  Name = "LRO LOLA Color Shaded Relief 388m v4 [Sweden]",
  Enabled = asset.enabled,
  FilePath = asset.localResource("lola_clr_shade_sweden.wms"),
  Description = [[This is a colorized shaded-relief of a original polar digital elevation
    model (DEM) from the Lunar Orbiter Laser Altimeter (LOLA; Smith et al., 2010), an
    instrument on the National Aeronautics and Space Agency (NASA) Lunar Reconnaissance
    Orbiter (LRO) spacecraft (Tooley et al., 2010). The DEM is a shape map (radius) of the
    Moon at a resolution 100 meters per pixel (m) based on altimetry data acquired through
    September, 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 1,737,400 m]]
}


asset.onInitialize(function()
  openspace.globebrowsing.addLayer(globe.Moon.Identifier, "ColorLayers", Layer)
end)

asset.onDeinitialize(function()
  openspace.globebrowsing.deleteLayer(globe.Moon.Identifier, "ColorLayers", Layer)
end)

asset.export("layer", Layer)



asset.meta = {
  Name = "Lola Color Shade [Sweden]",
  Version = "1.1",
  Description = [[Moon LRO LOLA Color Shaded Relief 388m v4 layer for Moon globe. This
    map is hosted on the OpenSpace server in Sweden]],
  Author = "USGS",
  URL = "https://astrogeology.usgs.gov/search/map/Moon/LMMP/LOLA-derived/Lunar_LRO_LOLA_ClrShade_Global_128ppd_v04",
  License = "NASA/PDS"
}
