Skip to content

Commit d18037d

Browse files
committed
Write CRS to TIFFs before saving
Closes #2
1 parent 5d04201 commit d18037d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

workflow/scripts/area_potential.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def get_area_potential(
9595

9696
potential_da.name = "area_potential"
9797
potential_da = potential_da.transpose("band", "y", "x")
98+
potential_da.rio.write_crs(ds.rio.crs, inplace=True)
9899
potential_da.rio.to_raster(output_path, driver="GTiff", compress="LZW")
99100

100101
potential_da.plot()

0 commit comments

Comments
 (0)