@@ -677,6 +677,19 @@ function createREP1Config(indicatorCode, rasterFileUrl) {
677
677
value : 25000 ,
678
678
step : 10 ,
679
679
} ,
680
+ transformerDistance : {
681
+ display : false ,
682
+ label : 'Distance to transformers [m]' ,
683
+ metadataLabel : 'DISTANCE TO TRANSFORMERS [m]' ,
684
+ id : 'transformerDistance' ,
685
+ dataInfo : 'TransformerDistance' ,
686
+ type : 'slider' ,
687
+ inverted : true ,
688
+ min : 0 ,
689
+ max : 50000 ,
690
+ value : 50000 ,
691
+ step : 10 ,
692
+ } ,
680
693
ruggedness : {
681
694
display : false ,
682
695
label : 'Ruggedness index' ,
@@ -714,6 +727,7 @@ function createREP1Config(indicatorCode, rasterFileUrl) {
714
727
{ url : 'https://eox-gtif-public.s3.eu-central-1.amazonaws.com/DHI/Natura2000_Austria_COG_3857_fix.tif' } ,
715
728
{ url : 'https://eox-gtif-public.s3.eu-central-1.amazonaws.com/DHI/RuggednessIndex_Austria_3857_COG_fix.tif' } ,
716
729
{ url : 'https://eox-gtif-public.s3.eu-central-1.amazonaws.com/DHI/v2/CadasterDistance_COG_v2.tif' } ,
730
+ { url : 'https://eox-gtif-public.s3.eu-central-1.amazonaws.com/PLES/Austria_transformer_distance_gt_36KW.tif' } ,
717
731
] ,
718
732
style : {
719
733
variables : {
@@ -728,6 +742,7 @@ function createREP1Config(indicatorCode, rasterFileUrl) {
728
742
protected : 0 ,
729
743
ruggedness : 1 ,
730
744
cadasterDistance : 0 ,
745
+ transformerDistance : 50000 ,
731
746
} ,
732
747
color : [
733
748
'case' ,
@@ -741,6 +756,7 @@ function createREP1Config(indicatorCode, rasterFileUrl) {
741
756
[ '<' , [ 'band' , 5 ] , [ 'var' , 'energyGridDistance' ] ] ,
742
757
[ '<' , [ 'band' , 7 ] , [ 'var' , 'ruggedness' ] ] ,
743
758
[ '>=' , [ 'band' , 8 ] , [ 'var' , 'cadasterDistance' ] ] ,
759
+ [ '<' , [ 'band' , 9 ] , [ 'var' , 'transformerDistance' ] ] ,
744
760
[ 'any' ,
745
761
[ '==' , [ 'var' , 'protected' ] , 0 ] ,
746
762
[ '==' , [ 'band' , 6 ] , 0 ] ,
@@ -832,6 +848,19 @@ function createREP2Config(indicatorCode, rasterFileUrl, min, max) {
832
848
step : 20 ,
833
849
inverted : true ,
834
850
} ,
851
+ transformerDistance : {
852
+ display : false ,
853
+ label : 'Distance to transformers [m]' ,
854
+ metadataLabel : 'DISTANCE TO TRANSFORMERS' ,
855
+ id : 'transformerDistance' ,
856
+ dataInfo : 'TransformerDistance' ,
857
+ type : 'slider' ,
858
+ inverted : true ,
859
+ min : 0 ,
860
+ max : 50000 ,
861
+ value : 50000 ,
862
+ step : 10 ,
863
+ } ,
835
864
elevation : {
836
865
display : false ,
837
866
label : 'Terrain elevation' ,
@@ -875,6 +904,7 @@ function createREP2Config(indicatorCode, rasterFileUrl, min, max) {
875
904
{ url : 'https://eox-gtif-public.s3.eu-central-1.amazonaws.com/DHI/Copernicus_DSM_COG_10m_3857_fix.tif' } ,
876
905
{ url : 'https://eox-gtif-public.s3.eu-central-1.amazonaws.com/DHI/Austria_Full_Energy_Increase_Water_Masked_COG_nodata.tif' } ,
877
906
{ url : 'https://eox-gtif-public.s3.eu-central-1.amazonaws.com/DHI/Natura2000_Austria_COG_3857_fix.tif' } ,
907
+ { url : 'https://eox-gtif-public.s3.eu-central-1.amazonaws.com/PLES/Austria_transformer_distance_gt_36KW.tif' } ,
878
908
] ,
879
909
style : {
880
910
variables : {
@@ -892,6 +922,7 @@ function createREP2Config(indicatorCode, rasterFileUrl, min, max) {
892
922
albedoMin : 0 ,
893
923
albedoMax : 0.3 ,
894
924
protected : 0 ,
925
+ transformerDistance : 50000 ,
895
926
} ,
896
927
color : [
897
928
'case' ,
@@ -915,6 +946,7 @@ function createREP2Config(indicatorCode, rasterFileUrl, min, max) {
915
946
[ '<' , [ 'band' , 4 ] , [ 'var' , 'energyGridDistance' ] ] ,
916
947
[ 'between' , [ 'band' , 5 ] , [ 'var' , 'elevationMin' ] , [ 'var' , 'elevationMax' ] ] ,
917
948
[ 'between' , [ 'band' , 6 ] , [ 'var' , 'albedoMin' ] , [ 'var' , 'albedoMax' ] ] ,
949
+ [ '<' , [ 'band' , 8 ] , [ 'var' , 'transformerDistance' ] ] ,
918
950
[ 'any' ,
919
951
[ '==' , [ 'var' , 'protected' ] , 0 ] ,
920
952
[ '==' , [ 'band' , 7 ] , 0 ] ,
@@ -937,6 +969,32 @@ function createREP2Config(indicatorCode, rasterFileUrl, min, max) {
937
969
...overlayLayers . protectionZones ,
938
970
} , {
939
971
...overlayLayers . protectionZonesNatura ,
972
+ } , {
973
+ protocol : 'cog' ,
974
+ dataInfo : 'Albedo_Single_Product' ,
975
+ id : 'albedo_visualization' ,
976
+ sources : [
977
+ { url : 'https://eox-gtif-public.s3.eu-central-1.amazonaws.com/PLES/PLES-DP-24-02-Austria_Full_Single_Albedo_watermasked_nodata.tif' } ,
978
+ ] ,
979
+ visible : false ,
980
+ style : {
981
+ color : [
982
+ 'case' ,
983
+ [ '==' , [ 'band' , 1 ] , - 1 ] ,
984
+ [ 'color' , 0 , 0 , 0 , 0 ] ,
985
+ [ '==' , [ 'band' , 1 ] , 0 ] ,
986
+ [ 'color' , 25 , 25 , 200 , 0 ] ,
987
+ [ '>' , [ 'band' , 1 ] , 0 ] ,
988
+ [
989
+ 'interpolate' ,
990
+ [ 'linear' ] ,
991
+ [ 'band' , 1 ] ,
992
+ ...getColorStops ( 'viridis' , 0 , 1 , 32 , false ) ,
993
+ ] ,
994
+ [ 'color' , 0 , 0 , 0 , 0 ] ,
995
+ ]
996
+ } ,
997
+ name : 'Albedo - Single Product' ,
940
998
} ] ,
941
999
} ,
942
1000
} ,
0 commit comments