-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature 1147 final conf sorting (#1152)
* removed config variable that is no longer used/needed * cleaned up functions that handle setting CURRENT_[FCST/OBS]_[NAME/LEVEL] * clean up * expand path of config argument to run_metplus.py for easier debugging * removed redundant logic and added comments * cleanup * added logic to move config variables that are runtime specific to a [runtime] section in the final conf that is written after the run completes * changed how config arguments are read so that order that arguments are found is preserved instead of setting explicit overrides at the end * minor change to trigger build, ci-run-all-cases * rearranged logic to save list of config inputs with full paths for easier debugging * move all config vars that start with LOG or end with BASE to runtime section * remove vars that start with CURRENT from final conf * removed confusing logic allowing override of parm base and cleaned up logging to be easier to read/understand * added METPLUS_PARM_BASE env var logic back * added old vs. new default value mismatch info for pb_report_type in PB2NC config file * renamed config var name * use PARM_BASE instead of METPLUS_BASE/parm since it will still be set * use develop version of METviewer docker image (may need to make this configurable in testing.yml in the future) * run cyclone plotter use case to test that new conda environment in docker image now contains missing cartopy map files * added dockerfile to copy cartopy shape files into run image if cartopy is listed as dependencies * download script used to download cartopy shape files and run it * added copy of conda environment * added logic to download cartopy shape files for metplotpy environment * added cartopy dependency to use cases so the shapefiles are copied into run environment * trigger 1 use case that uses metplotpy_env to test cartopy shapefiles are found properly * added instructions to create weatherregime environment that was missing * cleaned up list of packages used * removed extra use case group used for testing * removed netcdf package from env because it is already installed and version number was causing a conflict * added cartopy shapefile copy to use case that needs it * download cartopy shape files for weatherregime python environment because files were not found from base env (metplotpy) * removed debug message that fills up log files with info that is not very useful * updated input directories to use _WeatherRegime directory instead of _Blocking * updated location of input data that was not found in UserScript_fcstGFS_obsERA_WeatherRegime * updated readme with info on how to install metplotpy/metcalcpy in conda environments * added 3rd group of cartopy shapefiles to download because they are used in weatherregime use cases * try using cartopy download script from forked repo that has missing shapefile zip file added * updated input paths to match new data locations
- Loading branch information
1 parent
20bfaad
commit 3aead8c
Showing
15 changed files
with
328 additions
and
260 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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
ARG METPLUS_ENV_TAG=cycloneplotter | ||
ARG METPLUS_IMG_TAG=develop | ||
|
||
FROM dtcenter/metplus-envs:${METPLUS_ENV_TAG} as env | ||
|
||
ARG METPLUS_IMG_TAG=develop | ||
FROM dtcenter/metplus-dev:${METPLUS_IMG_TAG} | ||
|
||
COPY --from=env /usr/local/envs /usr/local/envs/ | ||
COPY --from=env /usr/local/bin/conda /usr/local/bin/conda | ||
|
||
COPY --from=env /root/.local/share/cartopy /root/.local/share/cartopy/ |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,23 +2,13 @@ | |
|
||
################################################################################ | ||
# Environment: weatherregime | ||
# Last Updated: 2021-06-29 ([email protected]) | ||
# Last Updated: 2021-09-16 ([email protected]) | ||
# Notes: Adds Python packages needed to run weather regime use case | ||
# METplotpy and METcalcpy | ||
# Uses pip to install kaleido because | ||
# could not install via Conda (glibc conflict) | ||
# Python Packages: | ||
# matplotlib==3.3.0 | ||
# scipy==1.5.1 | ||
# plotly==4.9.0 | ||
# pingouin==0.3.8 | ||
# cartopy==0.18.0 | ||
# eofs==1.3.0 | ||
# cmocean==2.0 | ||
# xarray==0.17 | ||
# netcdf4==1.5.6 | ||
# pyyaml==? | ||
# python-kaleido==0.2.1 | ||
# All packages from metplotpy_env | ||
# scikit-learn==0.24.2 | ||
# eofs==1.4.0 | ||
# | ||
# Other Content: None | ||
################################################################################ | ||
|
@@ -32,7 +22,9 @@ BASE_ENV=$1 | |
|
||
conda create -y --clone ${BASE_ENV} --name ${ENV_NAME} | ||
conda install -y --name ${ENV_NAME} -c conda-forge scikit-learn==0.24.2 | ||
#conda install -y --name ${ENV_NAME} -c conda-forge scipy==1.5.4 | ||
conda install -y --name ${ENV_NAME} -c conda-forge eofs==1.4.0 | ||
conda install -y --name ${ENV_NAME} -c conda-forge netcdf4==1.5.7 | ||
#conda install -y --name ${ENV_NAME} -c conda-forge numpy==1.19.5 | ||
|
||
rm cartopy_feature_download.py | ||
yum -y install wget | ||
wget https://raw.githubusercontent.com/georgemccabe/cartopy/master/tools/cartopy_feature_download.py | ||
/usr/local/envs/${ENV_NAME}/bin/python3 cartopy_feature_download.py cultural physical cultural-extra |
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
Oops, something went wrong.