-- 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/mars/mars").Mars.Identifier

local treks_Mars_MOLA_blend200ppx_HRSC_ClrShade_clon0dd_200mpp_lzw = {
  Identifier = "Mars_MOLA_blend200ppx_HRSC_ClrShade_clon0dd_200mpp_lzw",
  Name = [[MGS MOLA and Mars Express HRSC, Color Hillshade Blend]],
  FilePath = asset.localResource("MGS_MOLA_and_Mars_Express_HRSC/Color_Hillshade_Blend.vrt"),
  Description = [[This data product is a blend of digital terrain model (DTM) data derived from the Mars Orbiter Laser Altimeter (MOLA) instrument aboard NASA's Mars Global Surveyor spacecraft (MGS), and the High-Resolution Stereo Camera (HRSC) aboard the European Space Agency's Mars Express spacecraft.

MOLA fired infrared laser pulses downward 10 times per second, and measured the time it took for the reflected pulses to return from the surface. The image used for the MOLA base of this map represents more than 600 million measurements gathered between 1999 and 2001. The average accuracy of each point is originally ~100 meters in horizontal position and the total elevation uncertainty is at least ±3 m. MOLA produced global topographic coverage with a spatial resolution of about 300 x 1000 m at the equator, and better near the poles.

HRSC, the only dedicated stereo camera orbiting Mars, is a multi-sensor push broom instrument comprising 9 CCD line sensors mounted in parallel for simultaneous high-resolution stereo, multicolor and multi-phase imaging by delivering 9 superimposed image swaths. The HRSC design permits stereo imaging with triple to quintuple panchromatic along-track stereo including a nadir-directed, forward and aft-looking (+/-18.91), and 2 inner (+/-12.81) stereo line sensors. The along-track acquisition of stereo imagery avoids changes in atmospheric and illumination conditions. The sub-pixel accuracy of the three-dimensional point determination allows the derivation of digital terrain models DTMs with a grid size of up to 50 m and a height accuracy of a single pixel with up to 10 m.

R. Jaumann, et al. (2007), The high-resolution stereo camera (HRSC) experiment on Mars Express: instrument aspects and experiment conduct from interplanetary cruise through the nominal mission, Planet. Space Sci., 55 (7-8) (2007), pp. 928-952]]
}

local treks_Mars_MOLA_blend200ppx_HRSC_Shade_clon0dd_200mpp_lzw = {
  Identifier = "Mars_MOLA_blend200ppx_HRSC_Shade_clon0dd_200mpp_lzw",
  Name = [[MGS MOLA and Mars Express HRSC, Hillshade Blend]],
  FilePath = asset.localResource("MGS_MOLA_and_Mars_Express_HRSC/Hillshade_Blend.vrt"),
  Description = [[This data product is a blend of digital terrain model (DTM) data derived from the Mars Orbiter Laser Altimeter (MOLA) instrument aboard NASA's Mars Global Surveyor spacecraft (MGS), and the High-Resolution Stereo Camera (HRSC) aboard the European Space Agency's Mars Express spacecraft.

MOLA fired infrared laser pulses downward 10 times per second, and measured the time it took for the reflected pulses to return from the surface. The image used for the MOLA base of this map represents more than 600 million measurements gathered between 1999 and 2001. The average accuracy of each point is originally ~100 meters in horizontal position and the total elevation uncertainty is at least ±3 m. MOLA produced global topographic coverage with a spatial resolution of about 300 x 1000 m at the equator, and better near the poles.

HRSC, the only dedicated stereo camera orbiting Mars, is a multi-sensor push broom instrument comprising 9 CCD line sensors mounted in parallel for simultaneous high-resolution stereo, multicolor and multi-phase imaging by delivering 9 superimposed image swaths. The HRSC design permits stereo imaging with triple to quintuple panchromatic along-track stereo including a nadir-directed, forward and aft-looking (+/-18.91), and 2 inner (+/-12.81) stereo line sensors. The along-track acquisition of stereo imagery avoids changes in atmospheric and illumination conditions. The sub-pixel accuracy of the three-dimensional point determination allows the derivation of digital terrain models DTMs with a grid size of up to 50 m and a height accuracy of a single pixel with up to 10 m.

R. Jaumann, et al. (2007), The high-resolution stereo camera (HRSC) experiment on Mars Express: instrument aspects and experiment conduct from interplanetary cruise through the nominal mission, Planet. Space Sci., 55 (7-8) (2007), pp. 928-952]]
}

asset.onInitialize(function()
  openspace.globebrowsing.addLayer(globeIdentifier, "ColorLayers", treks_Mars_MOLA_blend200ppx_HRSC_ClrShade_clon0dd_200mpp_lzw)
  openspace.globebrowsing.addLayer(globeIdentifier, "ColorLayers", treks_Mars_MOLA_blend200ppx_HRSC_Shade_clon0dd_200mpp_lzw)
end)

asset.onDeinitialize(function()
  openspace.globebrowsing.deleteLayer(globeIdentifier, "ColorLayers", "treks_Mars_MOLA_blend200ppx_HRSC_ClrShade_clon0dd_200mpp_lzw")
  openspace.globebrowsing.deleteLayer(globeIdentifier, "ColorLayers", "treks_Mars_MOLA_blend200ppx_HRSC_Shade_clon0dd_200mpp_lzw")
end)

asset.export("Mars_MOLA_blend200ppx_HRSC_ClrShade_clon0dd_200mpp_lzw", treks_Mars_MOLA_blend200ppx_HRSC_ClrShade_clon0dd_200mpp_lzw)
asset.export("Mars_MOLA_blend200ppx_HRSC_Shade_clon0dd_200mpp_lzw", treks_Mars_MOLA_blend200ppx_HRSC_Shade_clon0dd_200mpp_lzw)


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