-
Notifications
You must be signed in to change notification settings - Fork 23
Extend the ERA5 driven SCM to multi-day and smooth data #3863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
ba1ea82
to
da9befb
Compare
sim_forcing["hus"] = tvforcing["q"][lon_index, lat_index, :, :] | ||
sim_forcing["ta"] = tvforcing["t"][lon_index, lat_index, :, :] | ||
sim_forcing["zg"] = tvforcing["z"][lon_index, lat_index, :, :] | ||
sim_forcing["ua"] = smooth_4D_era5(tvforcing, "u", lon_index, lat_index) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the assert statements on lines 250 and 251 need to be updated to reflect the extra requirements for 4d smoothing.
|
||
defVar(ds, "ts", FT, ("x", "y", "z", "time")) | ||
skt = | ||
tv_inst["skt"][lon_index_surf2, lat_index_surf2, matching_time_indices] | ||
skt = smooth_3D_era5(tv_inst, "skt", lon_index_surf2, lat_index_surf2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment about updating the asserts
lat_index_surf, | ||
matching_time_indices, | ||
] / time_resolution | ||
-smooth_3D_era5(tv_accum, "slhf", lon_index_surf, lat_index_surf) / |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment about updating the asserts
# get forcing file path | ||
single_parsed_args = Dict( | ||
"start_date" => Dates.format(dd, "yyyymmdd"), | ||
"t_end" => "23hours", # some value between 0 and 24 hours to generate the single day file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be hard coded?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used get
to return the start date as default so we don't need to pass t_end explicitly here. let me know if you thought of a better solution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you document somewhere the time specification (i.e start_date [yyyymmdd] and t_end, with end_time inferred from start_date)
working multifile read; add functions for smoothing but not yet implemented updates smooth forcing
08d9414
to
14a0781
Compare
Co-authored-by: Teja Reddy <[email protected]>
Two purposes:
Purpose
To-do
Content