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



local Layer = {
  Identifier = "Themis_IR_Day_Utah",
  Name = "Themis IR Day [Utah]",
  Enabled = asset.enabled,
  FilePath = asset.localResource("themis_ir_day_utah.wms"),
  BlendMode = "Color",
  Description = [[This mosaic represents the Thermal Emission Imaging System (THEMIS)
    -daytime 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 day-time temperatures. The original values have been stretched and blended to
    make a more seamless mosaic. <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 Day [Utah]",
  Version = "1.1",
  Description = [[Themis Day layer for Mars. This map is hosted on the OpenSpace server
    in Utah]],
  Author = "USGS",
  URL = "https://astrogeology.usgs.gov/search/map/Mars/Odyssey/THEMIS-IR-Mosaic-ASU/" ..
    "Mars_MO_THEMIS-IR-Day_mosaic_global_100m_v12",
  License = "NASA/PDS"
}
