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

Update develop-ref after #1187 #1196

Merged
merged 217 commits into from
Oct 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
217 commits
Select commit Hold shift + click to select a range
595a47f
removed -ref from end of branch name when looking for new input data …
georgemccabe Mar 25, 2021
3eb23e0
feature 779 add support for output_flag, nc_pairs_flag, and climo_cdf…
georgemccabe Mar 30, 2021
6809d8a
Feature 779 compare pdf (#860)
georgemccabe Mar 30, 2021
ef813fe
Feature 857 tc stat met config (2nd attempt) (#862)
georgemccabe Mar 31, 2021
3972050
remove quotes around branch items
georgemccabe Apr 1, 2021
f24b9dd
only build docs in GHA
georgemccabe Apr 1, 2021
d02eef7
added missing jobs item
georgemccabe Apr 1, 2021
ef97e78
cd back to GITHUB_WORKSPACE
georgemccabe Apr 1, 2021
e9fce2f
cd back to github workspace
georgemccabe Apr 1, 2021
ed9a553
removed html theme options needed for version selector that are no lo…
georgemccabe Apr 1, 2021
9e21601
moved documentation building into script, use sphinx_rtd_theme from p…
georgemccabe Apr 1, 2021
0e7c5fe
rename jobs and steps
georgemccabe Apr 1, 2021
2cd8800
Feature 767 ext dependencies doc update (#866)
j-opatz Apr 6, 2021
2638c4f
feature CI documentation (#867)
georgemccabe Apr 6, 2021
511323a
Feature 836 rtd release doc (#870)
jprestop Apr 7, 2021
188eab8
Adding NOAA/CPC to the list of requestors. Already ran the script to …
JohnHalleyGotway Apr 8, 2021
e5bd13f
Adding common label for NOAA/OPC. The new label has already been push…
JohnHalleyGotway Apr 8, 2021
02ff221
sort list of files in directory to ensure the same result regardless …
georgemccabe Apr 8, 2021
4e3827c
Feature 852 series by same name (#868)
georgemccabe Apr 12, 2021
36fb55e
Merge branch 'develop-ref' into develop
georgemccabe Apr 12, 2021
2670308
feature 871 TCGen new MET config variables (#872)
georgemccabe Apr 12, 2021
0f8f8d3
Feature 728 update python embedding (#876)
j-opatz Apr 13, 2021
cb5518f
Merge branch 'develop-ref' into develop
georgemccabe Apr 13, 2021
c08f7a2
Feature 629 metdbload (#882)
georgemccabe Apr 14, 2021
b64b938
feature_630_UIUC_GDF_TDF (#878)
DanielAdriaansen Apr 14, 2021
cb3504d
moved new use case into another group
georgemccabe Apr 14, 2021
c46e422
Merge branch 'develop-ref' into develop
georgemccabe Apr 14, 2021
2ef4399
Update MODE_fcstFV3_obsGOES_BrightnessTempObjs.py
CPKalb Apr 14, 2021
2bf1b02
feature 880 improve field info handling (#881)
georgemccabe Apr 15, 2021
961a170
Feature 686 hdr tdr (#885)
mrinalbiswas Apr 19, 2021
4fa8998
removed NEW from newly added use case
georgemccabe Apr 19, 2021
de43453
Merge branch 'develop-ref' into develop
georgemccabe Apr 19, 2021
7dbef1a
feature 768 fix broken climo stdev (#886)
georgemccabe Apr 19, 2021
e2d2e0f
Switched order of instructions to merge release branch and updating r…
bikegeek Apr 21, 2021
6c27570
Feature 551 create pdf user guide (#890)
ksearight Apr 23, 2021
c4740a4
Feature 779 add support for MODE and PointStat configs (#888)
georgemccabe Apr 26, 2021
41b0840
removed duplicate entry in glossary
georgemccabe Apr 26, 2021
60968ca
changed string to boolean to remove warning
georgemccabe Apr 26, 2021
ba58ee7
Added identifier to quicksearch.rst ci-docs-only
jprestop Apr 26, 2021
28c1bf1
Feature 779 pb2nc configs (#893)
georgemccabe Apr 27, 2021
b32290e
Feature 779 grid stat configs and climo_mean/stdev (#894)
georgemccabe Apr 27, 2021
0af3ea0
Changes to release guide steps for MET. Recommend making silimar chan…
JohnHalleyGotway Apr 27, 2021
55c6bdf
Adding create_release_feature_branch.rst to all the release steps for…
JohnHalleyGotway Apr 27, 2021
52abfaa
Added argument to code-blocks
jprestop Apr 28, 2021
e468690
Added release guide for METexpress development releases.
mollybsmith-noaa Apr 29, 2021
87bfc9c
Delete Regrid_PCP_obsERA_obsOnly_Blocking_orig.conf
CPKalb Apr 29, 2021
9a29e56
Feature 626 hovmoeller diagram (#889)
hankenstein2 May 3, 2021
3e49e2d
Feature 627 coherence spectra (#891)
hankenstein2 May 3, 2021
5a8cd79
merged develop-ref and resolved conflicts
georgemccabe May 3, 2021
6808987
create 4.0.0-beta5 release (#897)
georgemccabe May 3, 2021
2460fb4
Update pull_request_template.md
jprestop May 3, 2021
39cce0c
feature 900 single metplus_config.conf file (#901)
georgemccabe May 3, 2021
8a6eb36
update version for development towards rc1
georgemccabe May 3, 2021
b77874f
Feature authorship (#912)
JohnHalleyGotway May 4, 2021
f969b3a
Use CIRA and IMSG instead of CIR and IM, respectively.
JohnHalleyGotway May 4, 2021
4f68079
do not run documentation workflow on develop-ref branch, only run ste…
georgemccabe May 5, 2021
83e7d3f
test sending slack message when a release is published
georgemccabe May 5, 2021
12051fb
tabs to spaces
georgemccabe May 5, 2021
3f848cc
fixed multi line command
georgemccabe May 5, 2021
d788709
removed old Travis-CI content
georgemccabe May 6, 2021
a78dfc9
clean docs, READMEs, and CI for release
georgemccabe May 6, 2021
daecfb3
changed badge for testing workflow to display status of default branc…
georgemccabe May 6, 2021
837e1c2
fixed path to version file in docker hook helper script
georgemccabe May 6, 2021
136d176
updated manage externals stable config and created symbolic link to E…
georgemccabe May 6, 2021
8c9597a
updated METplus release instructions to isolate release specific chan…
georgemccabe May 6, 2021
929d299
ci-run-diff
georgemccabe May 6, 2021
4fb2013
run all use cases if push to develop or main_v* branches to ensure no…
georgemccabe May 6, 2021
b81b7dc
run ALL use cases if push to develop on main_v*
georgemccabe May 6, 2021
b2c8567
cast PosixPath to string to prevent crash when using Python 3.8.10
georgemccabe May 6, 2021
0c52397
feature 681 Modifed wording of regrid dictionary references (#916)
georgemccabe May 6, 2021
a38fca5
bugfix 914 handle complex _VAR<n>_OPTIONS like MET dictionaries (#915)
georgemccabe May 7, 2021
cabcee6
Feature 673 metviewer release (#910)
TatianaBurek May 10, 2021
78ad54d
Updated directions per Tara's instructions.
jprestop May 10, 2021
e07c0cc
Added update_dtc_website.rst to metcalcpy and metplotpy subdirectories
jprestop May 10, 2021
b509292
.. include:: release_steps/met/update_dtc_website.rst
jprestop May 10, 2021
7a61f05
Corrected subdirectories from met to metcalcpy and metplotpy as needed
jprestop May 10, 2021
1adac63
Feature 903 update users guide (#919)
georgemccabe May 10, 2021
e4933e9
Fixes to automation to handle main_vX.Y branches (#920)
georgemccabe May 11, 2021
ad3973a
update version to show development towards 4.1.0-beta1
georgemccabe May 11, 2021
ba32942
changes made to main_v4.0 as bugfix to get docker data build to stop …
georgemccabe May 11, 2021
e3ec9b4
generate union of sample data with subset to force a successful build…
georgemccabe May 11, 2021
2aad903
Added release guide for METexpress production releases.
mollybsmith-noaa May 11, 2021
894fa39
Added announcement section to release guide for METexpress production…
mollybsmith-noaa May 11, 2021
983b2dd
Merge remote-tracking branch 'origin/develop' into feature_metexpress…
mollybsmith-noaa May 11, 2021
e9bdaf5
Added rotate author section to release guide for METexpress productio…
mollybsmith-noaa May 11, 2021
573a0cf
Fixed length of title underlines for METexpress release guide.
mollybsmith-noaa May 11, 2021
5b51772
added useful logging messages to script that builds documentation so …
georgemccabe May 12, 2021
443a670
Added new alert: REQUIRED FOR RELEASE label to all the METplus repos.
JohnHalleyGotway May 12, 2021
9faa028
modified steps for METplus to include updating release date and creat…
georgemccabe May 17, 2021
f245ed4
Added more content to METdatadb release guides, following model of ME…
venitahagerty May 17, 2021
8728065
added script to run on DTCenter web server to create a new input data…
georgemccabe May 18, 2021
2e7b6c2
feature 928 PCPCombine option to skip lookback in derive mode (#930)
georgemccabe May 18, 2021
874cbab
Edits to METexpress release guide
mollybsmith-noaa May 18, 2021
c972052
Merge pull request #925 from dtcenter/feature_metexpress_releases
mollybsmith-noaa May 18, 2021
950e41a
feature 924 support extra options in RegridDataPlane (#929)
georgemccabe May 19, 2021
ac0a3e4
fixed minor bug in usage wrapper
georgemccabe May 19, 2021
4887842
Merge branch 'develop' of github.com:dtcenter/METplus into develop
georgemccabe May 19, 2021
264c00f
strip off whitespace from version numbers so they are read correctly …
georgemccabe May 20, 2021
3b11449
Migrate issue and PR template changes from PR MET/#1803 into METplus …
JohnHalleyGotway May 24, 2021
19ba321
Update README.md
jprestop May 27, 2021
3fca2b4
changed non-unicode apostrophe and fixed typo in URL
georgemccabe May 27, 2021
e2f0ded
feature 749 TCPairs refactor (#937)
georgemccabe Jun 1, 2021
bf14b8d
merged develop-ref and resolved conflicts
georgemccabe Jun 1, 2021
824870a
removed file that should have been deleted in merge
georgemccabe Jun 1, 2021
6970bee
Probability field threshold control in SeriesAnalysis (#942)
j-opatz Jun 1, 2021
68e18eb
Somehow the required labels weren't present. Adding 2 required: label…
JohnHalleyGotway Jun 2, 2021
319306a
feature 960 GenVxMask -type (#961)
georgemccabe Jun 18, 2021
c10bb60
feature 926 TCMPRPlotter improvements (#959)
georgemccabe Jun 18, 2021
7eef01c
changed variable name so that it does not overwrite author variable u…
georgemccabe Jun 18, 2021
864c87b
add missing quick search items (#962)
georgemccabe Jun 18, 2021
dda9de3
run pip freeze before use case commands to see python environment use…
georgemccabe Jun 23, 2021
3498c31
Feature 933 cartopy hpc (#964)
j-opatz Jun 24, 2021
e49352c
Updated thumbnail path
j-opatz Jun 24, 2021
64044eb
Feature 963 quick search (#965)
lisagoodrich Jun 25, 2021
3267ae6
Feature 839 conda envs in automation (#967)
georgemccabe Jun 30, 2021
f9ef26b
merged develop-ref into develop and resolved conflicts
georgemccabe Jun 30, 2021
58becbe
feature 641 MTD input to ExtractTiles (#968)
georgemccabe Jun 30, 2021
2ff460c
merged develop-ref and resolved conflicts
georgemccabe Jun 30, 2021
6fa6605
fixed documentation typos from bad merge
georgemccabe Jun 30, 2021
2d9deb1
Feature 834 use case ice cover (#970)
j-opatz Jun 30, 2021
1d0ed9f
doc updates (#972)
j-opatz Jul 1, 2021
0b4c66f
fixed timing logs to show MM:SS instead of HH:MM
georgemccabe Jul 1, 2021
9d6fd0e
fixed typo in doc
georgemccabe Jul 2, 2021
6cb701e
feature 936 force MET version used for testing (#977)
georgemccabe Jul 6, 2021
2986e66
moved logic for creating conda environments for metplus base and py_e…
Jul 6, 2021
3939989
moved logic to update conda to docker file because update cannot be d…
Jul 6, 2021
7a00b6f
updated instructions to include steps to create conda environments on…
Jul 6, 2021
eb08988
Feature 963 quick search (#981)
lisagoodrich Jul 6, 2021
4c7d03b
Feature 956 develop discussions (#988)
jprestop Jul 8, 2021
858eca8
feature 986 TCPairs valid time (#997)
georgemccabe Jul 15, 2021
4185006
feature 986 TCPairs allow run all times when LOOP_ORDER = processes (…
georgemccabe Jul 20, 2021
0b41607
Feature 1002 user script files (#1014)
georgemccabe Jul 21, 2021
34f166b
Feature 615 gfdl tc tracking (#1020)
georgemccabe Jul 21, 2021
199c996
Merge branch 'develop-ref' into develop
georgemccabe Jul 21, 2021
ab53413
fixed incorrect length of overline
georgemccabe Jul 21, 2021
c9e1b3b
error out if ouput data volumes fail to update
georgemccabe Jul 21, 2021
dc84f2d
don't fail if no volumes to build
georgemccabe Jul 21, 2021
d2490a0
added error checking to script that updates docker data volumes that …
georgemccabe Jul 21, 2021
b8c398d
skip diff for binary index files created from GFDL tracker
georgemccabe Jul 21, 2021
35db1b7
Feature 950 weather regime freq (#1024)
CPKalb Jul 21, 2021
2c54f34
Feature 952 blocking files (#1023)
CPKalb Jul 22, 2021
d9e0711
Feature 892 rmm omi drivers (#1028)
hankenstein2 Jul 22, 2021
22aeede
Changes for 4.1.0-beta1 release (#1027)
georgemccabe Jul 22, 2021
b96a8ba
update version to dev 4.1.0-beta2
georgemccabe Jul 22, 2021
9f2876c
support skip times in example wrapper
georgemccabe Jul 22, 2021
2599369
Feature 759 fr met py (#1025)
DanielAdriaansen Jul 26, 2021
07484ff
merged develop-ref and resolved conflicts
georgemccabe Jul 26, 2021
09be513
updated list of use cases to run in tests to reflect use case that wa…
georgemccabe Jul 26, 2021
647d544
remove log for copying files and modify log output for difference sum…
georgemccabe Jul 27, 2021
c7b86d1
bugfix 1021 develop climo mean/stdev field (#1039)
georgemccabe Jul 27, 2021
822ad35
Merge branch 'develop' into feature_metplus_release_guide
georgemccabe Jul 27, 2021
3cb17b3
save script to update use case data directories on DTC web server
georgemccabe Jul 27, 2021
371c5d3
move step to update version number in develop branch right after crea…
georgemccabe Jul 27, 2021
a04e8fa
removed step that is no longer needed after #963
georgemccabe Jul 27, 2021
f5a69fe
added step to set up next release data directory on DTC web server
georgemccabe Jul 27, 2021
2148adf
updated wording to be more clear
georgemccabe Jul 27, 2021
d6965c9
Release Guide updates (#1041)
georgemccabe Jul 27, 2021
f860ade
added newline after each difference summary item for better readability
georgemccabe Jul 27, 2021
7061841
use relative path for image
georgemccabe Jul 27, 2021
fc947b3
Merge branch 'feature_release_guide_updates' into develop
georgemccabe Jul 27, 2021
e4c9d3c
added content from the GitHub wiki so I could remove the wiki pages
georgemccabe Jul 27, 2021
a254f5a
feature 931 default wrapped MET config file (#1037)
georgemccabe Jul 29, 2021
8c9c51c
updated info for _CONFIG_FILE variables in glossary
georgemccabe Jul 29, 2021
0abf541
Feature 892 rmm omi tests (#1038)
georgemccabe Jul 29, 2021
76462ab
Merge branch 'develop-ref' into develop
georgemccabe Jul 29, 2021
41cb6cc
feature 951 add support for setting hss_ec_value (#1048)
georgemccabe Aug 2, 2021
536b732
Fix stale URL in GitHub issue and pull request templates.
JohnHalleyGotway Aug 2, 2021
1cf03b4
changed import to prevent error if location of variable changes when …
georgemccabe Aug 10, 2021
9adefda
report error and exit if default metplus config files were somehow re…
georgemccabe Aug 10, 2021
eb2250b
updated error message to list parm directory where default confs are …
georgemccabe Aug 10, 2021
0d9a27f
suggest that METPLUS_PARM_BASE may be the cause of the error
georgemccabe Aug 10, 2021
607ed03
Added note to update information in conf.py file for release
jprestop Aug 11, 2021
eab50ae
updated link to instructions to upload data via FTP
georgemccabe Aug 12, 2021
487bc3f
feature 1057 pass directory to tcmpr plot script (#1085)
georgemccabe Aug 16, 2021
c4f8e51
Merge branch 'develop-ref' into develop
georgemccabe Aug 20, 2021
779a73b
Feature 935 release guide (#1098)
jprestop Aug 20, 2021
b27c091
Changed component installation instructions to download MET as a tar…
hankenstein2 Aug 24, 2021
be97259
Merge branches 'develop' and 'develop' of ssh://github.com/dtcenter/M…
hankenstein2 Aug 24, 2021
9d2dc81
changed key in use case group list from 'new' to 'run' to be more clear
georgemccabe Aug 19, 2021
522a304
Added lines to only build documentation for pull requests where only …
Aug 25, 2021
7ad9786
Merge branch 'develop' of github.com:dtcenter/METplus into develop
Aug 25, 2021
8127693
Added quotes to echo on line 21
Aug 25, 2021
95d64b3
Feature 874 doc (#1115)
jprestop Aug 26, 2021
3b6542e
Update task.md
jprestop Aug 26, 2021
6e9da16
Update task.md
jprestop Aug 26, 2021
5a1e9ca
Update task.md
jprestop Aug 26, 2021
6fc94df
Added additional default labels
Aug 26, 2021
ef01c02
Feature 1062 pcp combine level template (#1118)
georgemccabe Aug 30, 2021
bba3a9c
feature 1069 TCPairs write_valid, valid_inc, valid_exc (#1122)
georgemccabe Aug 31, 2021
9309f83
Feature 1103 PointStat orank output_flag (#1124)
georgemccabe Aug 31, 2021
35846c4
per comment in #1124, changed order of output flags to group related …
georgemccabe Aug 31, 2021
758a931
Feature 617 gfdl etc (#1121)
georgemccabe Aug 31, 2021
e500623
added new use cases to existing use case group
georgemccabe Aug 31, 2021
fc1d76e
Merge branch 'develop-ref' into develop
georgemccabe Aug 31, 2021
6805f36
Feature 1001 blocking statanalysis (#1125)
CPKalb Aug 31, 2021
220b794
updated instructions for updating the truth dataset reference branch
georgemccabe Aug 31, 2021
b7f6f0b
Merge branch 'develop-ref' into develop
georgemccabe Aug 31, 2021
881f6ac
feature_1128_v4.1.0-beta2 (#1129)
georgemccabe Sep 1, 2021
d35a5ff
update version for development towards next beta release
georgemccabe Sep 1, 2021
e21c498
updated release guide instructions
georgemccabe Sep 1, 2021
31e1f43
update instructions to remove references to NCAR/METplus
georgemccabe Sep 2, 2021
44d5d72
Feature release guide (#1132)
jprestop Sep 2, 2021
8a64233
changed to use PRMSL instead of MSLET for mean sea level pressure
georgemccabe Sep 10, 2021
00f25e3
Committing directly to develop for a minor documentation change. Add …
JohnHalleyGotway Sep 15, 2021
2ed9414
feature 1067 develop install instruct (#1156)
jprestop Sep 16, 2021
20bfaad
Removing version number from sphinx-gallery and adding one line to th…
Sep 16, 2021
3aead8c
feature 1147 final conf sorting (#1152)
georgemccabe Sep 29, 2021
0ff21a0
Merge branch 'develop-ref' into develop
georgemccabe Sep 29, 2021
d7dddb0
use master branch of SciTools/cartopy since pull request was merged
georgemccabe Sep 29, 2021
c9ea3fe
Feature 641 mtd feature relative (#1153)
DanielAdriaansen Sep 30, 2021
5a54997
Feature 1004 usecase ghrsst marine (#1182)
j-opatz Sep 30, 2021
fdc3344
Merge branch 'develop-ref' into develop
georgemccabe Sep 30, 2021
c5cff7a
Upload file for new use case
j-opatz Oct 1, 2021
e1e8f32
removed dependency on metplus function that is not needed
Oct 5, 2021
c3e84d7
feature 1089 add distance_map to GridStat (#1190)
georgemccabe Oct 6, 2021
165d310
Feature 1187 name update (#1193)
j-opatz Oct 6, 2021
cc9de9b
Merge branch 'develop-ref' into develop
j-opatz Oct 6, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 110 additions & 23 deletions docs/Contributors_Guide/add_use_case.rst
Original file line number Diff line number Diff line change
Expand Up @@ -542,15 +542,27 @@ or develop directories.
Add contents of existing tarfile to feature branch directory (if applicable)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

**If you have determined that there is an existing tarfile for the category
(from the previous step)**, then untar the sample data tarball into
the feature branch directory. If no tarfile exists yet, you can skip this
step::
**ONLY RUN THE COMMAND THAT IS APPROPRIATE TO YOUR USE CASE. READ CAREFULLY!**

**CONDITION 1: IF you have determined that there is an existing tarfile
for the category (from the previous step)**,
then untar the sample data tarball into the feature branch directory::

tar zxf ${METPLUS_EXISTING_DATA_TARFILE} -C ${METPLUS_DATA_TARFILE_DIR}/${METPLUS_FEATURE_BRANCH}

Create the new tarfile
^^^^^^^^^^^^^^^^^^^^^^
**CONDITION 2: If no tarfile exists yet, you can skip this step**

Rename or modify existing data or data structure (if applicable)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

**If the reason for your feature branch is to adjust an existing use case, such as renaming a use case
or changing the data file,** then adjust the directory structure and/or the data files which should now
be in your feature branch directory (from your last step). Changes to a use case name or input data for
a preexisting use case should be separately verified to run successfully, and noted in the Pull Request form
(described later).

Add new data to feature branch directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Untar the new data tarball into the feature branch directory::

Expand All @@ -559,13 +571,17 @@ Untar the new data tarball into the feature branch directory::
Verify that all of the old and new data exists in the directory that was
created (i.e. model_applications/<category>).

Create the new tarfile
^^^^^^^^^^^^^^^^^^^^^^
Create the new sample data tarball.

Model Application Use Case Example::
**ONLY RUN THE COMMAND THAT IS APPROPRIATE TO YOUR USE CASE. READ CAREFULLY!**

**CONDITION 1:** Model Application Use Case Example::

tar czf sample_data-${METPLUS_USE_CASE_CATEGORY}.tgz model_applications/${METPLUS_USE_CASE_CATEGORY}

MET Tool Wrapper Use Case Example::
**CONDITION 2:** MET Tool Wrapper Use Case Example::

tar czf sample_data-${METPLUS_USE_CASE_CATEGORY}.tgz met_test

Expand Down Expand Up @@ -699,8 +715,8 @@ dependencies.
Dependencies
^^^^^^^^^^^^

Environments
""""""""""""
Conda Environments
""""""""""""""""""

The keywords that end with "_env" are Python environments created in Docker
images using Conda that can be used to run use cases. These images are stored
Expand Down Expand Up @@ -789,7 +805,59 @@ environments, refer to the comments in the scripts found in
developer, so please contact MET Help if none of these environments contain the
package requirements needed to run a new use case.

**MORE INFO COMING SOON!**
A README file can be found in the ci/docker/docker_env directory that
provides commands that can be run to recreate a Docker image if the
conda environment needs to be updated. Please note that Docker must
be installed on the workstation used to create new Docker images and
a DockerHub account with access to the dtcenter repositories must
be used to push Docker images to DockerHub.

The README file also contains commands to create a conda environment
that is used for the tests locally. Any base conda environments,
such as metplus_base and py_embed_base, must be created locally first
before creating an environment that builds upon these environments.
Please note that some commands in the scripts are specific to
the Docker environment and may need to be rerun to successfully
build the environment locally.

**Installing METplus Components**

These scripts
do not install any METplus components,
such as metplotpy/metcalcpy/metplus, in the Python environment that
may be needed for a use case. This is done because the automated tests
will install and use the latest version (develop) of the packages to
ensure that any changes to those components do not break any existing
use cases. These packages will need to be installed by the user
and need to be updated manually. To install these packages,
activate the Conda environment, obtain the source code from GitHub,
and run "pip3 install ." in the top level directory of the repository.

Example::

conda activate weatherregime
git clone [email protected]:dtcenter/METplotpy
cd METplotpy
git checkout develop
git pull
pip3 install .

**Cartopy Shapefiles**

The cartopy python package automatically attempts to download
shapefiles as needed.
The URL that is used in cartopy version 0.18.0 and earlier no longer
exists, so use cases that needs these files will fail if they are
not found locally. If a conda environment uses cartopy, these
shapefiles may need to be downloaded by the user running the use case
even if the conda environment was created by another user.
Cartopy provides a script that can be used to obtain these shapefiles
from the updated URL::

wget https://raw.githubusercontent.com/SciTools/cartopy/master/tools/cartopy_feature_download.py
python3 cartopy_feature_download.py cultural physical cultural-extra



.. _add_new_category_to_test_runs:

Expand Down Expand Up @@ -1034,27 +1102,33 @@ Compare the feature branch file to the develop directory file::

diff ${METPLUS_FEATURE_BRANCH}/volume_mount_directories develop/volume_mount_directories

**IF there is a new entry or change in the feature version**,
**ONLY RUN THE COMMAND THAT IS APPROPRIATE TO YOUR USE CASE. READ CAREFULLY!**

**CONDITION 1: IF there is a new entry or change in the feature version**,
copy the feature file into the develop directory::

cp ${METPLUS_FEATURE_BRANCH}/volume_mount_directories develop/volume_mount_directories

Copy the data from the feature directory into the next version directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Copy data from the feature directory into the next version directory
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Make sure the paths are correct before copying.
**Make sure the paths are correct before copying.**

Model Applications Use Cases::
**ONLY RUN THE COMMAND THAT IS APPROPRIATE TO YOUR USE CASE. READ CAREFULLY!**

from_directory=${METPLUS_DATA_TARFILE_DIR}/${METPLUS_FEATURE_BRANCH}/model_applications/${METPLUS_USE_CASE_CATEGORY}
**CONDITION 1:** Model Applications Use Cases::

from_directory=${METPLUS_DATA_TARFILE_DIR}/${METPLUS_FEATURE_BRANCH}/model_applications/${METPLUS_USE_CASE_CATEGORY}/${METPLUS_USE_CASE_NAME}
echo $from_directory
ls $from_directory

to_directory=${METPLUS_DATA_TARFILE_DIR}/v${METPLUS_VERSION}/model_applications/${METPLUS_USE_CASE_CATEGORY}
echo $to_directory
ls $to_directory

MET Tool Wrapper Use Cases::
**OR**

**CONDITION 2:** MET Tool Wrapper Use Cases::

from_directory=${METPLUS_DATA_TARFILE_DIR}/${METPLUS_FEATURE_BRANCH}/met_test
echo $from_directory
Expand All @@ -1066,36 +1140,49 @@ MET Tool Wrapper Use Cases::

Once you have verified the correct directories are set, copy the files::

cp -r $from_directory/* $to_directory/
cp -r $from_directory $to_directory/

List the tarfile for the use case category in the next release version directory::

cd ${METPLUS_DATA_TARFILE_DIR}/v${METPLUS_VERSION}
ls -lh sample_data-${METPLUS_USE_CASE_CATEGORY}*

**IF the latest version of the tarfile is in this directory**,
**ONLY RUN THE COMMAND THAT IS APPROPRIATE TO YOUR USE CASE. READ CAREFULLY!**

**CONDITION 1: IF the latest version of the tarfile is in this directory**,
then rename the existing sample data tarball for
the use case category just in case something goes wrong::

mv sample_data-${METPLUS_USE_CASE_CATEGORY}-${METPLUS_VERSION}.tgz sample_data-${METPLUS_USE_CASE_CATEGORY}-${METPLUS_VERSION}.sav.`date +%Y%m%d%H%M`.tgz

**OR**

**IF the sample data tarfile for the category is a link to another METplus
**CONDITION 2: IF the sample data tarfile for the category is a link to another METplus
version**, then simply remove the tarfile link::

unlink sample_data-${METPLUS_USE_CASE_CATEGORY}.tgz

Create the new sample data tarfile.

Model Applications Use Cases::
**ONLY RUN THE COMMAND THAT IS APPROPRIATE TO YOUR USE CASE. READ CAREFULLY!**

**CONDITION 1:** Model Applications Use Cases::

tar czf sample_data-${METPLUS_USE_CASE_CATEGORY}-${METPLUS_VERSION}.tgz model_applications/${METPLUS_USE_CASE_CATEGORY}

MET Tool Wrapper Use Cases::
**OR**

**CONDITION 2:** MET Tool Wrapper Use Cases::

tar czf sample_data-${METPLUS_USE_CASE_CATEGORY}-${METPLUS_VERSION}.tgz met_test

Remove old data (if applicable)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

If the pull request notes mention an old directory path that should be removed,
please remove that directory. Be careful not to remove any files that are
still needed.

Update the link in the develop directory if needed
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down
Loading