Skip to content

Commit

Permalink
Closes issues #65 by completing convert file for US soc
Browse files Browse the repository at this point in the history
  • Loading branch information
msteckle committed Aug 26, 2024
1 parent f535e7f commit 237ad07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Wang2024/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 237ad07

Please sign in to comment.