mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-03 10:58:34 -06:00
Make use of the new temporal tile provider type
This commit is contained in:
@@ -7,9 +7,9 @@ local path = asset.syncedResource({
|
||||
Version = 1
|
||||
})
|
||||
|
||||
local layer = {
|
||||
Identifier = "ERA5_Land_HighRes_Monthly_2M_Temperature_Temporal",
|
||||
Name = "ERA5 Land HighRes Monthly 2M Temperature (Temporal)",
|
||||
local layer_prototype = {
|
||||
Identifier = "ERA5_Land_HighRes_Monthly_2M_Temperature_Temporal_prototype",
|
||||
Name = "ERA5 Land HighRes Monthly 2M Temperature (Temporal) [Prototype]",
|
||||
Type = "TemporalTileLayer",
|
||||
Prototyped = {
|
||||
Time = {
|
||||
@@ -25,8 +25,22 @@ local layer = {
|
||||
Description = [[ Temporal coverage: 01 Jan 1981 - 31 Dec 2020.]]
|
||||
}
|
||||
|
||||
local layer_folder = {
|
||||
Identifier = "ERA5_Land_HighRes_Monthly_2M_Temperature_Temporal_folder",
|
||||
Name = "ERA5 Land HighRes Monthly 2M Temperature (Temporal) [Folder]",
|
||||
Type = "TemporalTileLayer",
|
||||
Folder = {
|
||||
Folder = "C:/Development/sync/http/earth_textures_climate/1",
|
||||
Format = "%Y-%m-%d-land.png"
|
||||
},
|
||||
Interpolation = true,
|
||||
Colormap = path .. "rainbow.png",
|
||||
Description = [[ Temporal coverage: 01 Jan 1981 - 31 Dec 2020.]]
|
||||
}
|
||||
|
||||
asset.onInitialize(function ()
|
||||
openspace.globebrowsing.addLayer(globeIdentifier, "ColorLayers", layer)
|
||||
openspace.globebrowsing.addLayer(globeIdentifier, "ColorLayers", layer_prototype)
|
||||
openspace.globebrowsing.addLayer(globeIdentifier, "ColorLayers", layer_folder)
|
||||
end)
|
||||
|
||||
asset.export("layer", layer)
|
||||
|
||||
Reference in New Issue
Block a user