Skip to content

Commit

Permalink
fixed rasterize shape typo
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Sep 15, 2023
1 parent 3e17888 commit 5160e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dfm_tools/get_nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def rasterize_ugrid(uds:xu.UgridDataset, ds_like:xr.Dataset = None, resolution:f
regy = np.arange(ymin + 0.5 * d, ymax, d)
ds_like = xr.DataArray(np.empty((len(regy), len(regx))), {"y": regy, "x": regx}, ["y", "x"])

print(f'>> rasterizing ugrid {face_str} to shape=({len(ds_like.y)},{len(ds_like.y)}): ',end='')
print(f'>> rasterizing ugrid {face_str} to shape=({len(ds_like.y)},{len(ds_like.x)}): ',end='')
dtstart = dt.datetime.now()
ds = uds.ugrid.rasterize_like(other=ds_like)
print(f'{(dt.datetime.now()-dtstart).total_seconds():.2f} sec')
Expand Down

0 comments on commit 5160e7e

Please sign in to comment.