-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Online Zhao-Carr microphysics emulation (#218)
This PR adds the online emulation hooks for the ZC microphysics scheme and a barebones module to test it. Downstream users should override the emulation package with two top-level functions, store and microphysics. During runtime, two new namelist parameters under gfs_physics_nml are added which can be used to turn on/off the emulation components: emulate_zc_microphysics: calls emulation.microphysics save_zc_microphysics: calls emulation.store * Add gcsfs to requirements * Add prognostic hooks and module * Add emulation namelist parameters * Add conditionals to physics driver * Add specific configuration for training creation vs emulation * remove unused global variable * Add namelist flags for emulation * emulation.emulate debugging * Ignore egg-info * Add dummy model for testing * Fixed tensorflow import for emulation hooks * Change data saving namelist param name * Emulation integration test finished * Fix dummy model to correct vertical levels * Remove storage option from emulator, use monitor instead * Undo accidental import shift * Move emulation back into fv3net, remove from here * Reduce to basic call_py_fort interface for tests * Change to basic interface for testing call_py_fort usage * Update test config to run both call_py_fort functions * Update integration test * Fix integration test * Cleanup * Update emulation/README.md Co-authored-by: Noah D. Brenowitz <[email protected]> * Remove subprocess directory removal from callpyfort integration * Move emulation package to tests subdirectory * Update readme with more information about emulation * Add gotcha notes * Update language for emulation outputs Co-authored-by: Noah D. Brenowitz <[email protected]>
- Loading branch information
Showing
17 changed files
with
128 additions
and
686 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ depend | |
**/.vscode | ||
fv3.exe | ||
*.tmp.f90 | ||
**/*.egg-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.