Read-only mirror of https://github.com/MeteoSwiss/pyrad-tests — MeteoSwiss. Issues & pull requests at the source.
  • nesC 90.3%
  • R 9.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Wolfensberger 02a4e95fee update reference
2026-07-15 15:39:08 +02:00
.pyrad-arm-venv changed some outputs to match arm version 2026-04-13 09:39:21 +00:00
2024-05-22 update reference 2026-07-15 15:39:08 +02:00
__pycache__ update reference 2026-07-15 14:10:02 +02:00
config adaption to slight changes in gecsx 2026-04-24 10:36:24 +00:00
input_data added new tests that checks the QPE comparison functionality 2025-05-05 17:48:02 +02:00
pyrad_products_ref update reference 2026-07-15 15:39:08 +02:00
.gitignore Overhaul of pyrad-tests 2026-02-04 11:53:07 +01:00
LICENSE first commit 2023-05-17 13:36:42 +02:00
README.md Moved maxecho test to pyart mch tests 2025-02-24 11:40:18 +01:00
run_tests.py ADD: correct reference to ARM pyart config file 2026-02-04 13:56:45 +01:00
time_references.txt added new tests that checks the QPE comparison functionality 2025-05-05 17:48:02 +02:00

pyrad-tests

Set of config files and reference outputs used for the CI testing of pyrad

Guidelines on how to write new tests

  1. Figure out if your test requires the standard Py-ART version or if it requires the version of MeteoSwiss.
  2. Define env variables ${PYRAD_TESTS_PATH} (to the directory of this repository) and ${S3_SECRET_READ}, ${S3_KEY_READ}, ${S3_SECRET_WRITE}, ${S3_KEY_WRITE}
  3. Place your input data in pyrad-tests/input_data/<name_of_your_test>
  4. Create your loc, main and prod config files under pyrad-tests/config/processing/base/ if you use the standard Py-ART version or under pyrad-tests/config/processing/mch/ if you use the MeteoSwiss version. Make sure to use the respect the following rules:
    • Main config filename must be <name_of_your_test>_main.txt
    • The name parameter in the main config file must be <name_of_your_test>
    • The main directory of the pyrad-tests repository must be indicated with ${PYRAD_TESTS_PATH}, for example datapath STRING ${PYRAD_TESTS_PATH}/input_data/read_display_nexrad/KATX/
    • Make sure that the path to the data as defined in your config files agrees with where you placed them at step 2.
    • Make sure that the output path is set to saveimgbasepath STRING ${PYRAD_TESTS_PATH}/pyrad_products_test/
  5. Finally update the file pyrad-tests/time_references.txt with the relevant start and end times for your new test. Add the line <name_of_your_test>,start_time,end_time, start_time and end_time must be provided in the YYYYMMDDHHMMSS format.
  6. Run your config files once using main_process_data.py --cfgpath <local_path_to_pyrad_tests>/config/processing/<base or mch (see step 3)>/ --starttime start_time --endtime end_time <name_of_your_test>_main.txt
  7. If you are happy with your outputs and think they can be used as reference, copy the directory pyrad_products_test/<name_of_your_test> to pyrad_products_ref/<name_of_your_test
  8. Add your local modifications to the github repository, with a PR