Verif
A command-line tool that lets you verify the quality of weather forecasts for point locations.
https://github.com/wfrt/verif
Category: Atmosphere
Sub Category: Meteorological Observation and Forecast
Keywords
evaluation forecasting prediction statistics verification weather
Keywords from Contributors
prediction weather verification
Last synced: about 20 hours ago
JSON representation
Repository metadata
Graphical tool for creating verification plots of weather forecasts
- Host: GitHub
- URL: https://github.com/wfrt/verif
- Owner: WFRT
- License: other
- Created: 2015-05-30T13:24:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-11-10T21:12:38.000Z (about 2 months ago)
- Last Synced: 2025-12-09T01:28:26.845Z (18 days ago)
- Topics: evaluation, forecasting, prediction, statistics, verification, weather
- Language: Python
- Homepage:
- Size: 4.47 MB
- Stars: 99
- Watchers: 14
- Forks: 40
- Open Issues: 3
- Releases: 13
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
README.rst
Forecast verification software
==============================
.. image:: https://img.shields.io/github/v/release/WFRT/verif.svg
:target: https://github.com/WFRT/verif/releases
:alt: Release badge
.. image:: https://github.com/WFRT/verif/actions/workflows/python-package.yml/badge.svg
:target: https://github.com/WFRT/verif/actions/workflows/python-package.yml
:alt: CI badge
.. image:: https://img.shields.io/badge/DOI-10.1175%2FBAMS--D--22--0253.1-blue
:target: https://doi.org/10.1175/BAMS-D-22-0253.1
:alt: Bams Article
Verif is a command-line tool that lets you verify the quality of weather forecasts for point
locations. It can also compare forecasts from different forecasting systems (that have different
models, post-processing methods, etc).
The program reads files with observations and forecasts in a specific format (see "Input files"
below). The input files contain information about dates, forecast lead times, and locations such
that statistics can be aggregated across different dimensions. To ensure a fair comparison among
files, Verif will discard data points where one or more forecast systems have missing forecasts.
Since Verif is a command-line tool, it can be used in scripts to automatically create
verification figures.
Verif version 1.3 has been released (see "Installation Instruction" below). We welcome suggestions
for improvements. Verif is developed by Thomas Nipen (thomasn@met.no), with contributions from many.
Features
--------
* Deterministic metrics such as MAE, bias, correlation, RMSE (e.g. ``-m mae``)
* Threshold-based metrics such as the false alarm rate, ETS, EDI, Yule's Q (e.g. ``-m ets``)
* Probabilistic metrics such as brier score, PIT-histogram, reliability diagrams (e.g. ``-m bs``)
* Special plots like Taylor diagrams (``-m taylor``), quantile-quantile plots (``-m qq``).
* Plot scores as a function of date, lead time, station altitude/lat/longitude (e.g. ``-x date``)
* Show scores on maps (``-type map``)
* Subset the data by specifying a date range and lat/lon range (``-latrange 58,60``)
* Export to text (``-type text``)
* Options to adjust font sizes, label positions, tick marks, legends, etc (``-labfs 14``)
* Anomaly statistics relative to a baseline like climatology (``-c climfile.txt``)
* Output to png, jpeg, eps, etc and specify dimensions and resolution (``-f image.png -dpi 300``)
Resources
---------
* Check out the **wiki** at https://github.com/WFRT/verif/wiki.
* Found a bug? Please report it in the **issue tracker** at https://github.com/WFRT/verif/issues.
* Reach out to the Verif community in the **discussions** at https://github.com/WFRT/verif/discussions.
* Check out our `article `_ published in BAMS.
.. image:: other/image.jpg
:alt: Example plots
:width: 400
:align: center
Getting started
---------------
The easiest way to get started is to install verif with pip:
.. code-block:: bash
pip3 install verif
The `verif` command-line program should then be available.
Note that the python package "cartopy" is optional and not installed by default when verif is
installed, Verif uses "cartopy" for creating a background map when verification scores are plotted
on a map. To install Cartopy run
.. code-block:: bash
pip3 install cartopy
To upgrade to a newer version of Verif, run the following:
.. code-block:: bash
pip3 install verif --upgrade
Examples
--------
To test Verif, you can download example datasets from the github
`discussion page `_. For example, download the following two files from the wind speed dataset: `MEPS.nc `_ (2.5 km regional model; 20MB file size) and `ECMWF.nc `_ (0.2° global model; 24MB file size). Then run the following
commands to test out the software:
.. code-block:: bash
# Shows mean absolute error as a function of lead-time
verif MEPS.nc ECMWF.nc -m mae
# Shows average observed and forecasted values as a function on time
verif MEPS.nc ECMWF.nc -m obsfcst -x time
# Shows equitable threat score as a function of threshold
verif MEPS.nc ECMWF.nc -m ets
# Shows a reliability diagram for a threshold of 13.9 m/s (gale force winds)
verif MEPS.nc ECMWF.nc -m reliability -r 13.9
# Shows Brier skill score as a function of threshold
verif MEPS.nc ECMWF.nc -m bss -x threshold
How to cite
-----------
Nipen, T. N., R. B. Stull, C. Lussana, and I. A. Seierstad, 2023: `Verif: A Weather-Prediction Verification Tool for Effective Product Development `_. Bull. Amer. Meteor. Soc., 104, E1610–E1618, https://doi.org/10.1175/BAMS-D-22-0253.1.
Copyright and license
---------------------
Copyright © 2013-2025 UBC Weather Forecast Research Team. Verif is licensed under the 3-clause
BSD license. See LICENSE file.
Owner metadata
- Name: Weather Forecast Research Team
- Login: WFRT
- Email:
- Kind: organization
- Description:
- Website:
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/4650439?v=4
- Repositories: 3
- Last ynced at: 2024-03-27T06:52:11.215Z
- Profile URL: https://github.com/WFRT
GitHub Events
Total
- Issues event: 3
- Watch event: 11
- Delete event: 1
- Issue comment event: 2
- Push event: 14
- Gollum event: 80
- Pull request event: 4
- Fork event: 1
- Create event: 3
Last Year
- Issues event: 3
- Watch event: 10
- Issue comment event: 2
- Push event: 14
- Pull request event: 2
- Gollum event: 24
- Fork event: 1
- Create event: 2
Committers metadata
Last synced: 1 day ago
Total Commits: 836
Total Committers: 5
Avg Commits per committer: 167.2
Development Distribution Score (DDS): 0.01
Commits in past year: 21
Committers in past year: 2
Avg Commits per committer in past year: 10.5
Development Distribution Score (DDS) in past year: 0.048
| Name | Commits | |
|---|---|---|
| Thomas Nipen | t****n@g****m | 828 |
| Tomas Barton | t****n@u****a | 4 |
| David Siuta | d****a@e****a | 2 |
| tc637 | t****4@h****m | 1 |
| mokrzesa | m****a@g****m | 1 |
Committer domains:
- eos.ubc.ca: 1
- ualberta.ca: 1
Issue and Pull Request metadata
Last synced: 23 days ago
Total issues: 98
Total pull requests: 7
Average time to close issues: over 1 year
Average time to close pull requests: 4 months
Total issue authors: 12
Total pull request authors: 5
Average comments per issue: 0.45
Average comments per pull request: 1.29
Merged pull request: 4
Bot issues: 0
Bot pull requests: 0
Past year issues: 2
Past year pull requests: 3
Past year average time to close issues: about 7 hours
Past year average time to close pull requests: 2 days
Past year issue authors: 1
Past year pull request authors: 3
Past year average comments per issue: 0.5
Past year average comments per pull request: 0.33
Past year merged pull request: 1
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- tnipen (84)
- martadd (2)
- evenmn (2)
- dsiuta (2)
- DikraK (1)
- Marcoii1801 (1)
- agiord (1)
- MigueLesPaul (1)
- cjmelick (1)
- brey (1)
- mokrzesa (1)
- dhanraj125 (1)
Top Pull Request Authors
- tommz9 (3)
- tnipen (2)
- evenmn (1)
- yma042 (1)
- mokrzesa (1)
Top Issue Labels
- wontfix (5)
- enhancement (4)
- bug (1)
- duplicate (1)
Top Pull Request Labels
Package metadata
- Total packages: 1
-
Total downloads:
- pypi: 419 last-month
- Total dependent packages: 1
- Total dependent repositories: 5
- Total versions: 17
- Total maintainers: 1
pypi.org: verif
A verification program for meteorological forecasts and observations
- Homepage: https://github.com/WFRT/verif
- Documentation: https://verif.readthedocs.io/
- Licenses: BSD-3
- Latest release: 1.3.0 (published almost 2 years ago)
- Last Synced: 2025-12-24T02:01:34.418Z (3 days ago)
- Versions: 17
- Dependent Packages: 1
- Dependent Repositories: 5
- Downloads: 419 Last month
-
Rankings:
- Dependent packages count: 4.798%
- Forks count: 6.529%
- Dependent repos count: 6.599%
- Stargazers count: 7.824%
- Average: 8.696%
- Downloads: 17.729%
- Maintainers (1)
Dependencies
- coveralls *
- future *
- matplotlib *
- netCDF4 *
- numpy >=1.7
- pep8 *
- scipy *
- future *
- matplotlib *
- netCDF4 *
- numpy >=1.7
- scipy *
- six *
- actions/checkout v3 composite
- github/codeql-action/analyze v2 composite
- github/codeql-action/autobuild v2 composite
- github/codeql-action/init v2 composite
- actions/checkout v2 composite
- actions/setup-python v2 composite
Score: 12.288850071987742