diff --git a/Wang2024/convert.py b/Wang2024/convert.py index 22651b4..24f1d86 100644 --- a/Wang2024/convert.py +++ b/Wang2024/convert.py @@ -65,7 +65,7 @@ def open_raster(local_data): data = data.assign(uncertainty=errd['band_1']) return data -# function to resample to 0.5 degrees +# 3. function to resample to 0.5 degrees def coarsen(target_res, data): resampled_data = data.coarsen(x=(int(target_res / abs(data.rio.resolution()[0]))), y=(int(target_res / abs(data.rio.resolution()[1])))).mean()