Skip to content
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

Extract frequency from file #27

Merged
merged 2 commits into from
Jun 1, 2021

Conversation

mgrover1
Copy link
Contributor

Remove the requirement that we get the frequency information from the stream name

@mgrover1 mgrover1 requested a review from andersy005 May 28, 2021 21:54
@@ -103,6 +107,7 @@ def parse_cesm_history(file):
for v, da in ds.variables.items()
if time in da.dims and v not in {time, time_bounds}
]
info['frequency'] = ds.attrs['time_period_freq']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @mgrover1! Can we confirm whether this time_period_freq attribute is only available in CESM2+? As far as I can remember from my conversation with @sherimickelson, older versions of CESM didn't output this attribute across all components.

@andersy005
Copy link
Member

Merging this shortly...

@sherimickelson, your feedback/comment on #27 (comment) is still relevant, and appreciated :)

@andersy005 andersy005 merged commit d399adb into ncar-xdev:main Jun 1, 2021
@mgrover1
Copy link
Contributor Author

mgrover1 commented Jun 1, 2021

@andersy005 Taking a look at the CESM1-LE vs CESM2-LE datasets, it looks like CESM1 does not include the time_period_freq attribute!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants