Skip to content

Commit 90fecf6

Browse files
committed
ramona: change datatype and cog internal tile size
1 parent 3eca8fb commit 90fecf6

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

algorithm_catalog/dhi/RAMONA_HRB_Country_mosaick/openeo_udp/RAMONA_HRB_Country_mosaick.json

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,42 @@
7171
}
7272
}
7373
},
74+
"apply1": {
75+
"process_id": "apply",
76+
"arguments": {
77+
"data": {
78+
"from_node": "filterspatial1"
79+
},
80+
"process": {
81+
"process_graph": {
82+
"linearscalerange1": {
83+
"process_id": "linear_scale_range",
84+
"arguments": {
85+
"inputMax": 31000,
86+
"inputMin": -10,
87+
"outputMax": 31000,
88+
"outputMin": -10,
89+
"x": {
90+
"from_parameter": "x"
91+
}
92+
},
93+
"result": true
94+
}
95+
}
96+
}
97+
}
98+
},
7499
"saveresult1": {
75100
"process_id": "save_result",
76101
"arguments": {
77102
"data": {
78-
"from_node": "filterspatial1"
103+
"from_node": "apply1"
79104
},
80105
"format": "GTiff",
81106
"options": {
82107
"filename_prefix": "ramona_hrb_",
83-
"overviews": "AUTO"
108+
"overviews": "AUTO",
109+
"tile_size": 512
84110
}
85111
},
86112
"result": true

algorithm_catalog/dhi/RAMONA_HRB_Country_mosaick/openeo_udp/generate.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,14 @@ def generate():
8787

8888
format_opts = {
8989
"filename_prefix": "ramona_hrb_",
90-
"overviews": "AUTO"
90+
"overviews": "AUTO",
91+
"tile_size": 512
9192
}
9293

9394
cube = (connection.load_stac("https://stac.openeo.vito.be/collections/RAMONA_HERBACEOUS_BIOMASS",
9495
temporal_extent=[date_param, date_shift(date_param, 1, "day")])
9596
.filter_spatial(connection.load_url(text_concat(["https://raw.githubusercontent.com/georgique/world-geojson/refs/heads/develop/countries/", country_name, ".json"]),
96-
format="GeoJSON")).save_result(format="GTiff", options= format_opts ))
97+
format="GeoJSON")).linear_scale_range(-10,31000,-10,31000).save_result(format="GTiff", options= format_opts ))
9798

9899
udp = build_process_dict(process_graph=cube, process_id="RAMONA_HRB_Country_mosaick",
99100
description=(Path(__file__).parent / "README.md").read_text(),

0 commit comments

Comments
 (0)