-
Notifications
You must be signed in to change notification settings - Fork 4
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 support for CMEC driver #2
base: master
Are you sure you want to change the base?
Conversation
SUMMARY OF CHANGES README.md coastal-storm-metrics.sh settings.json cymep.yml cymep/cymep.py
cymep/functions/getSettings.py cymep/functions/write_cmec.py
Important functions: html_template(): populate_html_figures(), populate_html_json(): cymep/functions/write_spatial.py New and altered functions: create_output_json(): write_spatial_netcdf(): write_nc_metrics_jsons(): write_single_csv(): cymep/plotting/plot-*.ncl
cymep/graphics-cymep.sh |
@zarzycki These changes are working with the newest version of cmec-driver. It still depends on having post-processed trajectories (is not yet an end-to-end pipeline starting from model outputs). I've thrown together all of my changes in this PR, but let me know if you want things broken up. |
Summary:
The changes in this PR make CyMeP compatible with cmec-driver while preserving the existing functionality.
Additions:
settings.json is a settings file for cmec-driver.
coastal-storm-metrics.sh is a driver script for cmec-driver.
cymep.yml is an environment file that can be used to install the environment for running CyMeP in cmec-driver.
cymep.py can use CMEC environment variables to locate input and output folders. User settings can be loaded from the cmec.json configuration file. Descriptions are added for csv, netcdf, and figure outputs, which are written to a JSON called "output.json" as part of the cmec-driver output bundle.
Figure file type is changed to a user input in the NCL files. cmec-driver outputs png images for viewing in web browers, but graphics-cymep.sh still outputs pdfs. When calling one of the figure scripts, add
out_type="<figure extension>"
to the script call.Usage:
Instructions are added to the README for registering and running the package with cmec-driver.
TODO:
Note: Some of the plotting scripts (especially plot-taylor.ncl) show many changes in the diff because my editor automatically removed trailing whitespace.