Add new 99.5% coverage CTX layer

This commit is contained in:
Alexander Bock
2023-04-08 20:21:47 +02:00
parent 28cacd3df4
commit bebac26a7f
7 changed files with 98 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ asset.require("./layers/colorlayers/themis_ir_night_utah", false)
asset.require("./layers/colorlayers/themis_ir_night_sweden", false)
asset.require("./layers/colorlayers/ctx_mosaic_utah", false)
asset.require("./layers/colorlayers/ctx_mosaic_sweden", false)
asset.require("./layers/colorlayers/ctx_blended_01", false)
asset.require("./layers/colorlayers/ctx_blended", false)
asset.require("./layers/colorlayers/hirise", false)
asset.require("./layers/colorlayers/hirisels", false)

View File

@@ -0,0 +1,36 @@
local globeIdentifier = asset.require("../../mars").Mars.Identifier
local layer = {
Identifier = "CTX_blended",
Name = "CTX Blended",
Enabled = asset.enabled,
FilePath = asset.localResource("ctx_blended.vrt"),
BlendMode = "Color",
Description = [[The Bruce Murray Laboratory for Planetary Visualization has completed a 5.7 terapixel mosaic of the surface of Mars rendered at 5.0 m/px. Each pixel in the mosaic is about the size of a typical parking space, providing unprecedented resolution of the martian surface at the global scale.
The mosaic covers 99.5% of Mars from 88°S to 88°N. The pixels that make up the mosaic can all be mapped back to their source data, providing full traceability for the entire mosaic. The mosaic is available to stream over the internet and to download, as described below.
All data in the mosaic come from the Context Camera (CTX) onboard the Mars Reconnaissance Orbiter (MRO). (Description from URL)]]
}
asset.onInitialize(function()
openspace.globebrowsing.addLayer(globeIdentifier, "ColorLayers", layer)
end)
asset.onDeinitialize(function()
openspace.globebrowsing.deleteLayer(globeIdentifier, "ColorLayers", layer)
end)
asset.export("layer", layer)
asset.meta = {
Name = "CTX Blended",
Version = "1.0",
Description = [[New blended CTX map for Mars from CalTech Murray lab. This map is
hosted by ESRI]],
Author = "Caltech Murray Lab",
URL = "http://murray-lab.caltech.edu/CTX/",
License = "Esri Master License Agreement"
}

View File

@@ -5,7 +5,7 @@
<NoDataValue>0.00000000000000E+00</NoDataValue>
<ColorInterp>Gray</ColorInterp>
<ComplexSource>
<SourceFilename relativeToVRT="1">ctx_blended_01.wms</SourceFilename>
<SourceFilename relativeToVRT="1">ctx_blended.wms</SourceFilename>
<SourceBand>1</SourceBand>
<SourceProperties RasterXSize="4194304" RasterYSize="2097152" DataType="Byte" BlockXSize="512" BlockYSize="512" />
<SrcRect xOff="0" yOff="0" xSize="4194304" ySize="2097152" />
@@ -17,7 +17,7 @@
<NoDataValue>0</NoDataValue>
<ColorInterp>Alpha</ColorInterp>
<ComplexSource>
<SourceFilename relativeToVRT="1">ctx_blended_01.wms</SourceFilename>
<SourceFilename relativeToVRT="1">ctx_blended.wms</SourceFilename>
<SourceBand>1</SourceBand>
<SourceProperties RasterXSize="4194304" RasterYSize="2097152" DataType="Byte" BlockXSize="512" BlockYSize="512" />
<SrcRect xOff="0" yOff="0" xSize="4194304" ySize="2097152" />

View File

@@ -0,0 +1,22 @@
<GDAL_WMS>
<Service name="TMS">
<ServerUrl>https://astro.arcgis.com/arcgis/rest/services/OnMars/CTX1/raw/tile/${z}/${y}/${x}</ServerUrl>
</Service>
<DataWindow>
<UpperLeftX>-180.0</UpperLeftX>
<UpperLeftY>90.0</UpperLeftY>
<LowerRightX>180.0</LowerRightX>
<LowerRightY>-90.0</LowerRightY>
<SizeX>4194304</SizeX>
<SizeY>2097152</SizeY>
<TileLevel>12</TileLevel>
<YOrigin>top</YOrigin>
</DataWindow>
<Projection>GEOGCS["GCS_Mars_2000_Sphere",DATUM["D_Mars_2000_Sphere",SPHEROID["Mars_2000_Sphere_IAU_IAG",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]</Projection>
<BlockSizeX>512</BlockSizeX>
<BlockSizeY>512</BlockSizeY>
<BandsCount>1</BandsCount>
<MaxConnections>5</MaxConnections>
<DataValues NoData="0"></DataValues>
<ZeroBlockHttpCodes>404,400</ZeroBlockHttpCodes>
</GDAL_WMS>

View File

@@ -4,7 +4,7 @@ local layer = {
Identifier = "CTX_blended_01",
Name = "CTX Blended beta01",
Enabled = asset.enabled,
FilePath = asset.localResource("ctx_blended_01.vrt"),
FilePath = asset.localResource("ctx_blended_beta01.vrt"),
BlendMode = "Color",
Settings = {
Gamma = 2.14,

View File

@@ -0,0 +1,28 @@
<VRTDataset rasterXSize="11534336" rasterYSize="2097152">
<SRS>GEOGCS["GCS_Mars_2000_Sphere",DATUM["D_Mars_2000_Sphere",SPHEROID["Mars_2000_Sphere_IAU_IAG",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]</SRS>
<GeoTransform> -8.1000000000000000e+02, 8.5830688476562500e-05, 0.0000000000000000e+00, 9.0000000000000000e+01, 0.0000000000000000e+00, -8.5830688476562500e-05</GeoTransform>
<VRTRasterBand dataType="Byte" band="1">
<NoDataValue>0.00000000000000E+00</NoDataValue>
<ColorInterp>Gray</ColorInterp>
<ComplexSource>
<SourceFilename relativeToVRT="1">ctx_blended_beta01.wms</SourceFilename>
<SourceBand>1</SourceBand>
<SourceProperties RasterXSize="4194304" RasterYSize="2097152" DataType="Byte" BlockXSize="512" BlockYSize="512" />
<SrcRect xOff="0" yOff="0" xSize="4194304" ySize="2097152" />
<DstRect xOff="7340032" yOff="0" xSize="4194304" ySize="2097152" />
<NODATA>0</NODATA>
</ComplexSource>
</VRTRasterBand>
<VRTRasterBand dataType="Byte" band="2">
<NoDataValue>0</NoDataValue>
<ColorInterp>Alpha</ColorInterp>
<ComplexSource>
<SourceFilename relativeToVRT="1">ctx_blended_beta01.wms</SourceFilename>
<SourceBand>1</SourceBand>
<SourceProperties RasterXSize="4194304" RasterYSize="2097152" DataType="Byte" BlockXSize="512" BlockYSize="512" />
<SrcRect xOff="0" yOff="0" xSize="4194304" ySize="2097152" />
<DstRect xOff="7340032" yOff="0" xSize="4194304" ySize="2097152" />
<LUT>0:0,1:255,255:255</LUT>
</ComplexSource>
</VRTRasterBand>
</VRTDataset>

View File

@@ -3,10 +3,14 @@
<ServerUrl>http://astro.arcgis.com/arcgis/rest/services/OnMars/CTX/MapServer/tile/${z}/${y}/${x}</ServerUrl>
</Service>
<DataWindow>
<UpperLeftX>-180.0</UpperLeftX> <UpperLeftY>90.0</UpperLeftY>
<LowerRightX>180.0</LowerRightX> <LowerRightY>-90.0</LowerRightY>
<SizeX>4194304</SizeX> <SizeY>2097152</SizeY>
<TileLevel>12</TileLevel> <YOrigin>top</YOrigin>
<UpperLeftX>-180.0</UpperLeftX>
<UpperLeftY>90.0</UpperLeftY>
<LowerRightX>180.0</LowerRightX>
<LowerRightY>-90.0</LowerRightY>
<SizeX>4194304</SizeX>
<SizeY>2097152</SizeY>
<TileLevel>12</TileLevel>
<YOrigin>top</YOrigin>
</DataWindow>
<Projection>GEOGCS["GCS_Mars_2000_Sphere",DATUM["D_Mars_2000_Sphere",SPHEROID["Mars_2000_Sphere_IAU_IAG",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]</Projection>
<BlockSizeX>512</BlockSizeX>