local globeIdentifier = asset.require("scene/solarsystem//planets/mercury/mercury").Mercury.Identifier

local layer = {
  Identifier = "Mercury_Messenger_USGS_DEM_665m_v2_Hillshade",
  Name = [[MSGR MDIS, Hillshade Global]],
  FilePath = asset.localResource("Mercury_Messenger_USGS_DEM_665m_v2_Hillshade.vrt"),
  Description = [[This is a shaded-relief generated from the USGS Astrogeology Science Center’s Mercury MESSENGER Global DEM 665m v2 data product providing global coverage of Mercury. This shaded-relief data product was generated in ArcPro with the hillshade raster function. The resolution of the original DEM used to create this product is 64 pixels/degree (665 m/pixel). The control network used for registration contains tie points that are sample/line coordinates with geometric locations (derived from SPICE) that are automatically measured across the overlapping image areas. Elevation values are in meters and referred to a radius of 2439400m.]]
}
  
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 = [[MSGR MDIS, Hillshade Global]],
  Version = "1.0",
  Author = "NASA/Treks",
  URL = "https://trek.nasa.gov/mercury/#v=0.1&x=0&y=0&z=1&p=urn:ogc:def:crs:IAU2000::19900&d=&l=Mercury_Messenger_USGS_DEM_665m_v2_Hillshade%2Ctrue%2C1&b=mercury&e=-180.0%2C-90.0%2C180.0%2C90.0&sfv=&w=",
  License = "NASA/Treks",
  Description = [[MSGR MDIS, Hillshade Global layer from NASA/Treks for Mercury]]
}
