Skip to content

Commit

Permalink
resetting indexes to remove duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
gtramonte committed Jul 19, 2024
1 parent d503dbb commit 40710f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/intake_geokube/afm.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def preprocess_afm(dset: xr.Dataset) -> xr.Dataset:
dset = dset.drop('lon')
dset = dset.sortby('time')
dset = dset.expand_dims(dim={"latitude": latitude, "longitude": longitude}, axis=(0, 1))
dset = dset.reset_index(dims_or_levels=['latitude','longitude','time'],drop=True)
return dset.chunk({'time': 10, 'latitude': 50, 'longitude': 50})


Expand Down

0 comments on commit 40710f2

Please sign in to comment.