Skip to content

Commit

Permalink
Cleanup attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
dnerini committed Mar 12, 2024
1 parent 8ec8c2d commit 3db6c9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mlpp_features/nwp.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ def leadtime(data: Dict[str, xr.Dataset], stations, reftimes, leadtimes, **kwarg
ds = ds.preproc.align_time(reftimes, leadtimes, return_source_leadtimes=True)
ds = ds.reset_coords("source_leadtime").rename({"source_leadtime": "leadtime"})
ds["leadtime"] = ds.leadtime // np.timedelta64(1, "h")
ds.leadtime.attrs = {}
return ds.astype("float32")


Expand Down

0 comments on commit 3db6c9a

Please sign in to comment.