Commit 5feb2496 authored by Clément Haëck's avatar Clément Haëck
Browse files

Fix hist to TS generation

parent 2d6262c4
......@@ -25,6 +25,7 @@ def main():
args['fixes']['threshold'] = args['threshold']
ds = lib.data.hists.get_data(args)
ds = ds.squeeze()
ds = ds.chunk(dict(zone=1, mask=1, variable=1))
ts = pd.DatetimeIndex([])
for year in set(ds.time.dt.year.values):
......@@ -38,8 +39,6 @@ def main():
hist['bins'] = ds.bins
ds = hist
ds.load()
lib.data.hists.normalize_hist(ds)
ds['med'] = lib.data.hists.get_percentile(ds, 0.5)
ds['n'] = ds.n.sel(variable='CHL')
......
......@@ -10,7 +10,8 @@ pregex = ("number_%(number:fmt=d:rgx=%I)/"
"scale_%(scale:fmt=.1f)/"
"coef_%(coef:fmt=d)/"
"zone_%(zone:fmt=s)/"
"TS_thr_%(threshold:fmt=.2f)"
"TS_%(time:Y)"
"_thr_%(threshold:fmt=.2f)"
".nc")
......
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