Skip to content

Commit

Permalink
breaking the expand dim operation into two steps
Browse files Browse the repository at this point in the history
  • Loading branch information
gtramonte committed Jul 17, 2024
1 parent 25d07d1 commit 0402069
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/intake_geokube/afm.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ def postprocess_afm(dset: xr.Dataset) -> xr.Dataset:
dset = dset.drop('lat')
dset = dset.drop('lon')
dset = dset.sortby('time')
return dset.expand_dims(dim={"lat": latitude}, axis=0).expand_dims(dim={"lon": longitude}, axis=0)
dset = dset.expand_dims(dim={"lat": latitude}, axis=0)
dset = dset.expand_dims(dim={"lon": longitude}, axis=0)
return dset


class CMCCAFMSource(GeokubeSource):
Expand Down

0 comments on commit 0402069

Please sign in to comment.