From ec17d7d12c710ecc195191795350b5965db6754d Mon Sep 17 00:00:00 2001 From: runette Date: Sun, 24 Nov 2024 11:31:43 +0000 Subject: [PATCH] 20241124 --- dowlow_2021_v2.virgis | 44 +++++-- hope.virgis | 274 +++++++++++++----------------------------- 2 files changed, 115 insertions(+), 203 deletions(-) diff --git a/dowlow_2021_v2.virgis b/dowlow_2021_v2.virgis index ec3c97d..1b57813 100644 --- a/dowlow_2021_v2.virgis +++ b/dowlow_2021_v2.virgis @@ -170,13 +170,31 @@ }, "label": "", "texture-image": "", - "color-mode": "SinglebandGrey", - "colorinterp": { - "invert": false, - "k": 2.0, - "mad": false, - "ramp": "heat_map" - } + "color-mode": "SinglebandColor", + "colorinterp": {}, + "color-map": { + "type": "Interpolate", + "values": [ + { + "color": [ + 1.0,0.0,0.0,1.0 + ], + "threshold": .3 + }, + { + "color":[ + 0.0,1.0,0.0,1.0 + ], + "threshold": .6 + }, + { + "color":[ + 0.0,0.0,1.0,1.0 + ], + "threshold": null + } + ] + } } } }, @@ -295,9 +313,9 @@ }, "body": { "color": [ - 0.0, - 0.0, - 0.0, + 1.0, + 1.0, + 1.0, 1.0 ], "shape": "Spheroid", @@ -604,9 +622,9 @@ }, "body": { "color": [ - 0.0, - 0.0, - 0.0, + 1.0, + 1.0, + 1.0, 1.0 ], "shape": "Spheroid", diff --git a/hope.virgis b/hope.virgis index e7c496f..017d652 100644 --- a/hope.virgis +++ b/hope.virgis @@ -6,12 +6,7 @@ "properties": { "dem": "../test_data/hope_dem_new.tif", "header-string": "band_1", - "filter": [ - { - "type": "filters.range", - "limits": "band_1[0:50]" - } - ], + "filter": null, "bbox": null, "mapscale": 0, "map_size": 0, @@ -64,12 +59,35 @@ "label": "", "shape": "Spheroid", "color-mode": "SinglebandColor", - "colorinterp": { - "dimension": "band_1", - "minimum": 11.4106, - "maximum": 33.5059, - "invert": false, - "ramp": "blue_red" + "colorinterp": {}, + "color-map": { + "type": "Interpolate", + "values": [ + { + "color": [ + 1.0,0.0,0.0,1.0 + ], + "threshold": .6 + }, + { + "color":[ + 0.0, 1.0, 0.0, 1.0 + ], + "threshold": 0.75 + }, + { + "color":[ + 0.0,0.0,1.0,1.0 + ], + "threshold": 0.9 + }, + { + "color":[ + 1.0,1.0,1.0,1.0 + ], + "threshold": null + } + ] } }, "line": { @@ -239,12 +257,35 @@ "label": "", "shape": "Spheroid", "color-mode": "SinglebandColor", - "colorinterp": { - "dimension": "band_1", - "minimum": 49094.3, - "maximum": 49257.0, - "invert": false, - "ramp": "heat_map" + "colorinterp": {}, + "color-map": { + "type": "Interpolate", + "values": [ + { + "color": [ + 1.0,0.0,0.0,1.0 + ], + "threshold": .6 + }, + { + "color":[ + 0.0, 1.0, 0.0, 1.0 + ], + "threshold": 0.75 + }, + { + "color":[ + 0.0,0.0,1.0,1.0 + ], + "threshold": 0.9 + }, + { + "color":[ + 1.0,1.0,1.0,1.0 + ], + "threshold": null + } + ] } }, "line": { @@ -605,7 +646,7 @@ "body": { "texture-image": "", "color": [ - 0.0, + 1.0, 0.0, 0.0, 1.0 @@ -631,14 +672,31 @@ "label": "", "shape": "Spheroid", "color-mode": "SinglebandColor", - "colorinterp": { - "minimum": 179.781, - "maximum": 463.883, - "invert": false, - "ramp": "black_orange", - "k": 1.0, - "mad": false + "colorinterp": null, + "color-map": { + "type": "Categorize", + "values": [ + { + "color": [ + 1.0,0.0,0.0,1.0 + ], + "threshold": .3 + }, + { + "color":[ + 0.0,1.0,0.0,1.0 + ], + "threshold": 0.7 + }, + { + "color":[ + 0.0,0.0,1.0,1.0 + ], + "threshold": null + } + ] } + } }, "data_units": null, @@ -664,170 +722,6 @@ ] } }, - { - "datatype": "DEM", - "source": "../test_data/hope_dem_new.tif", - "properties": { - "dem": null, - "header-string": "band_1", - "filter": null, - "bbox": null, - "mapscale": 0, - "map_size": 0, - "image_folder": null, - "bh-data": { - "x-field": null, - "y-field": null, - "z-field": null, - "id-field": null, - "inc-field": null, - "azi-field": null, - "from-field": null, - "to-field": null, - "data-field": null, - "data-source": null, - "log-id-field": null, - "legend": null, - "eoh-field": null - }, - "hide-sublayers": null - }, - "proj4": "", - "units": { - "point": { - "texture-image": "", - "color": [ - 0.0, - 0.0, - 0.0, - 1.0 - ], - "transform": { - "translate": [ - 0.0, - 0.0, - 0.0 - ], - "rotate": [ - 0.0, - 0.0, - 0.0, - 1.0 - ], - "scale": [ - 1.0, - 1.0, - 1.0 - ] - }, - "label": "", - "shape": "Spheroid", - "color-mode": "SinglebandColor", - "colorinterp": { - "dimension": "band_1", - "minimum": 0.0, - "maximum": 458.209, - "invert": false, - "ramp": "blue_hue" - } - }, - "line": { - "texture-image": "", - "color": [ - 0.0, - 0.0, - 0.0, - 1.0 - ], - "transform": { - "translate": [ - 0.0, - 0.0, - 0.0 - ], - "rotate": [ - 0.0, - 0.0, - 0.0, - 1.0 - ], - "scale": [ - 1.0, - 1.0, - 1.0 - ] - }, - "label": "", - "shape": "Spheroid", - "color-mode": "SinglebandColor", - "colorinterp": { - "dimension": "band_1", - "minimum": 0.0, - "maximum": 458.209, - "invert": false, - "ramp": "blue_hue" - } - }, - "body": { - "texture-image": "", - "color": [ - 0.0, - 0.0, - 0.0, - 1.0 - ], - "transform": { - "translate": [ - 0.0, - 0.0, - 0.0 - ], - "rotate": [ - 0.0, - 0.0, - 0.0, - 1.0 - ], - "scale": [ - 1.0, - 1.0, - 1.0 - ] - }, - "label": "", - "shape": "Spheroid", - "color-mode": "SinglebandColor", - "colorinterp": { - "minimum": 0.0, - "maximum": 458.209, - "invert": false, - "ramp": "blue_hue" - } - } - }, - "data_units": null, - "id": "005", - "display-name": "Hope Dem", - "position": null, - "transform": { - "translate": [ - 0.0, - 0.0, - 0.0 - ], - "rotate": [ - 0.0, - 0.0, - 0.0, - 1.0 - ], - "scale": [ - 1.0, - 1.0, - 1.0 - ] - } - }, { "datatype": "BoreHole", "source": "../test_data/boreholes/Hope_collars_E9.vrt",