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

add new --freq flag in mdtf-test-data to docs and tests #734

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/workflows/mdtf_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ jobs:
pip install mdtf-test-data
mkdir mdtf_test_data ; cd mdtf_test_data
# generate the data and run unit tests
mdtf_synthetic.py -c GFDL --startyear 1 --nyears 10 --unittest
mdtf_synthetic.py -c GFDL --startyear 1 --nyears 10 --freq day --unittest
mdtf_synthetic.py -c NCAR --startyear 1975 --nyears 7
mdtf_synthetic.py -c CMIP --startyear 1990 --nyears 20
mdtf_synthetic.py -c CMIP --startyear 1990 --nyears 20 --freq day mon
cd ../
mkdir wkdir
## make input data directories
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ mamba env create --force -q -f ./src/conda/_env_synthetic_data.yml
conda activate _MDTF_synthetic_data
pip install mdtf-test-data
mkdir mdtf_test_data && cd mdtf_test_data
mdtf_synthetic.py -c CMIP --startyear 1980 --nyears 5
mdtf_synthetic.py -c CMIP --startyear 1985 --nyears 5
mdtf_synthetic.py -c CMIP --startyear 1980 --nyears 5 --freq day
mdtf_synthetic.py -c CMIP --startyear 1985 --nyears 5 --freq day
```
Then, modify the ``path`` entries in diagnostic/example_multicase/esm_catalog_CMIP_synthetic_r1i1p1f1_gr1.csv, and
the `"catalog_file":` path in diagnostic/example_multicase/esm_catalog_CMIP_synthetic_r1i1p1f1_gr1.json to include the
Expand Down
4 changes: 2 additions & 2 deletions doc/sphinx/ref_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ We generate our synthetic data by running:
micromamba activate _MDTF_synthetic_data
pip install mdtf-test-data
mkdir mdtf_test_data && cd mdtf_test_data
mdtf_synthetic.py -c CMIP --startyear 1980 --nyears 5
mdtf_synthetic.py -c CMIP --startyear 1985 --nyears 5
mdtf_synthetic.py -c CMIP --startyear 1980 --nyears 5 --freq day
mdtf_synthetic.py -c CMIP --startyear 1985 --nyears 5 --freq day

Now would be a good time to generate a catalog for the synthetic data, but, in the sake
of testing, we provide a catalog for the files needed to run the example POD.
Expand Down
4 changes: 2 additions & 2 deletions doc/sphinx/start_install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ using the configuration in the
% conda activate _MDTF_synthetic_data
% pip install mdtf-test-data
% mkdir mdtf_test_data && cd mdtf_test_data
% mdtf_synthetic.py -c CMIP --startyear 1980 --nyears 5
% mdtf_synthetic.py -c CMIP --startyear 1985 --nyears 5
% mdtf_synthetic.py -c CMIP --startyear 1980 --nyears 5 --freq day
% mdtf_synthetic.py -c CMIP --startyear 1985 --nyears 5 --freq day

Obtaining supporting data for 3rd-generation and older single-run PODs
-------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions templates/module_config.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
// > pip install mdtf-test-data
// > cd <root directory>/mdtf
// > mkdir mdtf_test_data && cd mdtf_test_data
// > mdtf_synthetic.py -c CMIP --startyear 1980 --nyears 5
// > mdtf_synthetic.py -c CMIP --startyear 1985 --nyears 5
// > mdtf_synthetic.py -c CMIP --startyear 1980 --nyears 5 --freq day
// > mdtf_synthetic.py -c CMIP --startyear 1985 --nyears 5 --freq day
// Note that MODEL_DATA_ROOT assumes that mdtf_test_data is one directory above MDTF-diagnostics
// in this sample config file
{
Expand Down
4 changes: 2 additions & 2 deletions templates/runtime_config.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
// > pip install mdtf-test-data
// > cd <root directory>/mdtf
// > mkdir mdtf_test_data && cd mdtf_test_data
// > mdtf_synthetic.py -c CMIP --startyear 1980 --nyears 5
// > mdtf_synthetic.py -c CMIP --startyear 1985 --nyears 5
// > mdtf_synthetic.py -c CMIP --startyear 1980 --nyears 5 --freq day
// > mdtf_synthetic.py -c CMIP --startyear 1985 --nyears 5 --freq day
// Note that MODEL_DATA_ROOT assumes that mdtf_test_data is one directory above MDTF-diagnostics
// in this sample config file
{
Expand Down
Loading