-
Notifications
You must be signed in to change notification settings - Fork 42
[929][evalution/io] Make lead time and source windew available to evaluation via OutputDataset #1087
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: develop
Are you sure you want to change the base?
[929][evalution/io] Make lead time and source windew available to evaluation via OutputDataset #1087
Conversation
tjhunter
left a comment
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.
| return list(example_stream.group_keys()) | ||
|
|
||
| @functools.cached_property | ||
| def lead_times(self) -> list[int]: |
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.
are you using it? I don't see a place where you would need it.
Also, let's not used cached_property unless it is vital to do so. Most people will be confused.
|
Yes, no problem for the backward compatibility. If we have the checkpoints we can always re-run inference so I'd not worry about it. |
2618ce0 to
50fc8ab
Compare
ac8a281 to
9d6232a
Compare
48971bf to
16e27f9
Compare
e581e93 to
c8986d6
Compare
iluise
left a comment
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.
Hi Simon,
I tested the PR and we are close. Small requests:
-
can we remove the 0 from the zio.forecast_steps when it is not predicted? If not we will always get forecast_steps = [0-x] even if we don't have target or prediction in the zarr for setp 0.
-
I can't retrieve source from forecast step 0. I get the following:
out = zio.get_data('0', stream, '0')
*** ValueError: Missing target dataset for item: 0/ERA5/0
is there a better way to retrieve source directly without passing through zio.get_data('0', stream, '0')?
Description
Store source window as a attribute of the zarr group corresponding to one
OuputDataset. When convertingOutputDatasetto xarray, source window is available as a coordinate over the axis"sample". Lead time can be calculated from the source window and the absolute time.Issue Number
closes #929
Is this PR a draft? Mark it as draft.
Checklist before asking for review
./scripts/actions.sh lint./scripts/actions.sh unit-test./scripts/actions.sh integration-testlaunch-slurm.py --time 60