Skip to content

Commit ace3d6c

Browse files
committed
raster writer: write band names and measurement
1 parent 45b77fe commit ace3d6c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

geoengine/raster_workflow_rio_writer.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ def __create_new_dataset(self, query: QueryRectangle):
168168
**self.rio_kwargs
169169
)
170170

171+
for i, b in enumerate(self.bands, start=1):
172+
b_n = b.name
173+
b_m = str(b.measurement)
174+
rio_dataset.update_tag(i, band_name=b_n, band_measurement=b_m)
175+
171176
self.current_dataset = rio_dataset
172177

173178
async def query_and_write(self, query: QueryRectangle, skip_empty_times=True):

0 commit comments

Comments
 (0)