Commit 340e53cf authored by tpys's avatar tpys
Browse files

support gfs input

parent 0e8d5efa
......@@ -32,7 +32,7 @@ def save_like(output, input, step, save_dir="", input_type="hres", freq=6, split
if input_type.upper() == "HRES":
dtime = (step+2) * freq
init_time = pd.to_datetime(input.time.values[0])
ds = xr.DataArray(
......@@ -63,8 +63,8 @@ def save_like(output, input, step, save_dir="", input_type="hres", freq=6, split
new_ds.append(v)
ds = xr.merge(new_ds, compat="no_conflicts")
print(f'Save to {save_name} ...')
save_name = os.path.join(save_dir, f'{dtime:03d}.nc')
print(f'Save to {save_name} ...')
ds.to_netcdf(save_name)
......
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