Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit aa70207

Browse files
committed
Add comments
1 parent 7324045 commit aa70207

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/generate_topographic_data.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,17 @@
7373
src_crs = src.crs
7474
xds.attrs["crs"] = src_crs
7575

76+
# 500 meter resolution map
7677
xds_resampled = xds.rio.reproject(dst_crs=dst_crs, resolution=500, resampling=Resampling.bilinear)
7778
print(xds_resampled)
7879
print(abs(xds_resampled.coords["x"][1] - xds_resampled.coords["x"][0]))
7980
xds_resampled.rio.to_raster("europe_dem_500m_osgb.tif")
81+
# 1000 meter resolution map
8082
xds_resampled = xds.rio.reproject(dst_crs=dst_crs, resolution=1000, resampling=Resampling.bilinear)
8183
print(xds_resampled)
8284
print(abs(xds_resampled.coords["x"][1] - xds_resampled.coords["x"][0]))
8385
xds_resampled.rio.to_raster("europe_dem_1km_osgb.tif")
86+
# 2000 meter resolution meter map
8487
xds_resampled = xds.rio.reproject(dst_crs=dst_crs, resolution=2000, resampling=Resampling.bilinear)
8588
print(xds_resampled)
8689
print(abs(xds_resampled.coords["x"][1] - xds_resampled.coords["x"][0]))

0 commit comments

Comments
 (0)