added triton voyager2 layer (#2611)

* added triton voyager2 layer

* renamed triton layers for newyork
This commit is contained in:
Micah Acinapura
2023-04-14 19:46:57 -04:00
committed by GitHub
parent 54cf02055d
commit a421d0fbe6
5 changed files with 115 additions and 0 deletions
@@ -1,4 +1,5 @@
asset.require("./triton/triton")
asset.require("./triton/default_layers")
asset.require("./nereid/nereid")
@@ -0,0 +1,11 @@
asset.require("./layers/colorlayers/Triton_Voyager2_ClrMosaic_GlobalFill_600m_newyork", true)
asset.meta = {
Name = "Default Triton Layers",
Version = "1.0",
Description = "Default Triton layers are: Voyager2 Mosaic",
Author = "OpenSpace Team",
URL = "http://openspaceproject.com",
License = "MIT license"
}
@@ -0,0 +1,36 @@
local globeIdentifier = asset.require("scene/solarsystem/planets/neptune/triton/triton").Triton.Identifier
local layer = {
Identifier = "Triton_Voyager2_ClrMosaic_GlobalFill_600m_newyork",
Name = "Triton Voyager2 Mosaic [New York]",
Enabled = asset.enabled,
FilePath = asset.localResource("Triton_Voyager2_ClrMosaic_GlobalFill_600m_newyork.vrt"),
Description = [[Voyager 2 data was used to construct the best-ever global color map of Triton.
This map has a resolution of 1,970 feet (600 meters per pixel [m]). Color was synthesized by
combining high-resolution images taken through orange, violet, and ultraviolet filters; these
images were displayed as red, green, and blue images and combined to create this
color version (Smith et al., 1989).]],
}
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 = "Triton Voyager2 Mosaic",
Version = "1.0",
Description = [[Voyager2 mosaic of Triton. This layer is hosted on the
OpenSpace server in New York]],
Author = "USGS",
URL = "https://astrogeology.usgs.gov/search/map/Triton/Mosaic/" ..
"Triton_Voyager2_ClrMosaic_GlobalFill_600m/",
License = "NASA/PDS"
}
@@ -0,0 +1,47 @@
<VRTDataset rasterXSize="14138" rasterYSize="7069">
<SRS dataAxisToSRSAxisMapping="2,1">GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AXIS["Latitude",NORTH],AXIS["Longitude",EAST],AUTHORITY["EPSG","4326"]]</SRS>
<GeoTransform> -1.8000000000000000e+02, 2.5463290422973548e-02, 0.0000000000000000e+00, 9.0000000000000000e+01, 0.0000000000000000e+00, -2.5463290422973548e-02</GeoTransform>
<VRTRasterBand dataType="Byte" band="1">
<ColorInterp>Red</ColorInterp>
<SimpleSource>
<SourceFilename relativeToVRT="1">Triton_Voyager2_ClrMosaic_GlobalFill_600m_newyork.wms</SourceFilename>
<SourceBand>1</SourceBand>
<SourceProperties RasterXSize="14138" RasterYSize="7069" DataType="Byte" BlockXSize="512" BlockYSize="512" />
<SrcRect xOff="0" yOff="0" xSize="14138" ySize="7069" />
<DstRect xOff="0" yOff="0" xSize="14138" ySize="7069" />
</SimpleSource>
</VRTRasterBand>
<VRTRasterBand dataType="Byte" band="2">
<ColorInterp>Green</ColorInterp>
<SimpleSource>
<SourceFilename relativeToVRT="1">Triton_Voyager2_ClrMosaic_GlobalFill_600m_newyork.wms</SourceFilename>
<SourceBand>2</SourceBand>
<SourceProperties RasterXSize="14138" RasterYSize="7069" DataType="Byte" BlockXSize="512" BlockYSize="512" />
<SrcRect xOff="0" yOff="0" xSize="14138" ySize="7069" />
<DstRect xOff="0" yOff="0" xSize="14138" ySize="7069" />
</SimpleSource>
</VRTRasterBand>
<VRTRasterBand dataType="Byte" band="3">
<ColorInterp>Blue</ColorInterp>
<SimpleSource>
<SourceFilename relativeToVRT="1">Triton_Voyager2_ClrMosaic_GlobalFill_600m_newyork.wms</SourceFilename>
<SourceBand>3</SourceBand>
<SourceProperties RasterXSize="14138" RasterYSize="7069" DataType="Byte" BlockXSize="512" BlockYSize="512" />
<SrcRect xOff="0" yOff="0" xSize="14138" ySize="7069" />
<DstRect xOff="0" yOff="0" xSize="14138" ySize="7069" />
</SimpleSource>
</VRTRasterBand>
<VRTRasterBand dataType="Byte" band="4">
<ColorInterp>Alpha</ColorInterp>
<NoDataValue>0</NoDataValue>
<ComplexSource>
<SourceFilename relativeToVRT="1">Triton_Voyager2_ClrMosaic_GlobalFill_600m_newyork.wms</SourceFilename>
<SourceBand>1</SourceBand>
<SourceProperties RasterXSize="14138" RasterYSize="7069" DataType="Byte" BlockXSize="512" BlockYSize="512" />
<SrcRect xOff="0" yOff="0" xSize="14138" ySize="7069" />
<DstRect xOff="0" yOff="0" xSize="14138" ySize="7069" />
<ScaleRatio>255</ScaleRatio>
<NODATA>0</NODATA>
</ComplexSource>
</VRTRasterBand>
</VRTDataset>
@@ -0,0 +1,20 @@
<GDAL_WMS>
<Service name="TMS">
<ServerUrl>http://wms.openspace.amnh.org/Triton/Triton_Voyager2_ClrMosaic_GlobalFill_600m/tile/${z}/${y}/${x}</ServerUrl>
</Service>
<DataWindow>
<UpperLeftX>-180.0</UpperLeftX>
<UpperLeftY>90.0</UpperLeftY>
<LowerRightX>180.0</LowerRightX>
<LowerRightY>-90.0</LowerRightY>
<SizeX>14138</SizeX>
<SizeY>7069</SizeY>
<TileLevel>5</TileLevel>
<YOrigin>top</YOrigin>
</DataWindow>
<Projection>EPSG:4326</Projection>
<BlockSizeX>512</BlockSizeX>
<BlockSizeY>512</BlockSizeY>
<BandsCount>4</BandsCount>
<MaxConnections>10</MaxConnections>
</GDAL_WMS>