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



local Layer = {
  Identifier = "Themis_IR_Night_Sweden",
  Name = "Themis IR Night [Sweden]",
  Enabled = asset.enabled,
  FilePath = asset.localResource("themis_ir_night_sweden.vrt"),
  BlendMode = "Color",
  Description = [[This mosaic represents the Thermal Emission Imaging System (THEMIS)
    -nighttime infrared (IR) 100 meter/pixel mosaic (version 12) released in the
    summer of 2014 by Arizona State University. Values represent only a visual
    representation of night-time temperatures. The original values have been stretched
    and blended to make a more seamless mosaic. Coverage is only from 60N to 60S
    latitude. <br><br> Reference: * Edwards, C.S., K. J. Nowicki, P. R. Christensen,
    J. Hill, N. Gorelick, and K. Murray (2011), Mosaicking of global planetary image
    datasets: 1. Techniques and data processing for Thermal Emission Imaging System
    (THEMIS) multi-spectral data, J. Geophys. Res., 116, E10008,
    doi:10.1029/2010JE003755. http://dx.doi.org/10.1029/2010JE003755 (Description from
    URL)]]
}


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

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

asset.export("layer", Layer)



asset.meta = {
  Name = "Themis IR Night [Sweden]",
  Version = "1.1",
  Description = [[Themis Night layer for Mars. This map is hosted on the OpenSpace
    server in Sweden]],
  Author = "USGS",
  URL = "https://astrogeology.usgs.gov/search/map/Mars/Odyssey/THEMIS-IR-Mosaic-ASU/" ..
    "Mars_MO_THEMIS-IR-Night_mosaic_60N60S_100m_v14",
  License = "NASA/PDS"
}
