pull/836/head
Piero Toffanin 2020-03-21 09:22:55 -04:00
rodzic b13fe89f8f
commit a874b80f17
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -42,5 +42,8 @@ def export_raster_index(input, expression, output):
index_band[index_band>1e+30] = -9999
index_band[index_band<-1e+30] = -9999
# Make sure this is float32
arr = arr.astype(np.float32)
with rasterio.open(output, 'w', **profile) as dst:
dst.write(arr)