-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add single-variable time series file generation function from ADF #78
Conversation
- case_names: list, str | ||
name of simulaton case | ||
- hist_str: str | ||
CESM history number, ie h0, h1, etc. |
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.
Is this generic enough for different history file types (e.g. patch or landunit level output from CLM, as opposed to grid cell averages)
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.
@wwieder Are you referring to the hist_str here? This is now an editable quantity in the config.yml file. Would that be sufficient for those other kinds of history file output? I'm not familiar with those kinds of output, so any clarification would be helpful.
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.
Also mentioned in #86 ...
We should implement this by adding a call to |
Update branch to be up to date with CUPiD/main
Is this ready for testing? |
Hi @dabail10 , sorry for the slow response, I'm in full-day training every day this week... I'm hoping to, at the least, wrap this up before our meeting next week, and will remove the draft label once it's ready for testing/review. |
I've added the general infrastructure for components to use this timeseries generation. Each component will need to adjust the variables they want to generate (unless processing all vars) and the relevant history string (h0 is the current default) in |
Thanks for those suggestions, @mnlevy1981 ! All of those comments have been addressed. |
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'll run this branch before the 3:00 CUPiD meeting, but these are two more comments from just looking through the code
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 we update README.md
to mention the ability to generate time series files? Relatedly -- when I ran this myself, I didn't have the nco
module loaded so I got an error
FileNotFoundError: [Errno 2] No such file or directory: 'ncrcat'
Maybe a quick note in the README that time series generation requires NCO? Or can we install NCO via conda? if so, maybe we should just add it to conda-dev?
You can certainly install it via conda, but I'm not sure if there are advantages to using the module(s) available on HPC. Potentially some performance / compatibility tradeoffs there. |
Ok, I added another note to #86 to investigate any potential tradeoffs with NCO, as well as made a note in the README. And thanks for the loop suggestion Mike-- definitely a good idea! |
I also updated the project vision as I was looking at the README anyways... |
To elaborate on something I mentioned in #88 - a potential suggestion (that we don't have to take, definitely backseat driving a bit here): the CUPiD/ploomber framework is already set up to support multiple phases of tasks that depend on each other, e.g. running timeseries generation first before diagnostics. I would encourage at some point moving the timeseries config block to be under |
@rmshkv thanks for this suggestion! Just to clarify, are you suggesting creating a new |
The functionality to handle a |
@rmshkv Got it, that makes sense now! Thank you for clarifying! It seems like your suggestion is probably the best way forward, but I summarized this and some other relevant discussions that Mike and I had in #86 (with a note that we should probably use |
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.
This looks great! One more minor-ish suggestion, broken into two inline comments (and if we want to push it to #86 that's okay).
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.
Looks good, great work!
Thanks for all your help and suggestions from everyone who commented! |
This should hopefully generalize the timeseries generation capability so that any CUPiD script or notebook can use it.