Commit 824107cc authored by Clément Haëck's avatar Clément Haëck
Browse files

Simpler fix_time_daily

parent bc9d5935
......@@ -9,8 +9,6 @@ from os import path
import re
import sys
import pandas as pd
# Scripts repository
try:
root_code = os.environ['SUBMESO_COLOR_CODE_DIR']
......@@ -172,5 +170,5 @@ def progressbar(it, prefix="", size=60, file=sys.stdout):
def fix_time_daily(ds):
ds = ds.assign_coords(
time=pd.to_datetime(ds.time.dt.strftime('%F').values))
time=ds.time.dt.floor("D"))
return ds
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment