openclimatefix / nowcasting-metrics

Repo to automatically run metrics on the nowcasting forecast
0 stars 1 forks source link

nowasting_metrics

All Contributors

Repo to automatically run metrics on the nowcasting forecast

Metrics

DAILY

MAE

RMSE

ME

Ramp Rate

Probabilistic

Tests

Local pytest

To run local pytests you need to

  1. add src to python path export PYTHONPATH=$PYTHONPATH:./nowcasting_metrics
  2. run pytests: pytest

Docker Tests

TO run tests use the following command

docker stop $(docker ps -a -q)
docker-compose -f test-docker-compose.yml build
docker-compose -f test-docker-compose.yml run nowcasting_metrics

Running the app

Environmental Variables

The environmental variables are DB_URL: The database url you want to save the results to N_GSPS: The number of gsps you want to pull DATETIME_NOW: The datetime of when this app is ran. Default is None, and Now() is selected. This is useful as the app calculates the daily metrics from yesterday USE_PVNET_GSP_SUM: Option to use pvnet_gsp_sum or not. Default is false

These options can also be enter like this:

Run Locally

First add 'nowcasting_metrics' to your python path:

export PYTHONPATH=$PYTHONPATH:./nowcasting_metrics

Then run the app.

python nowcasting_metrics/app.py --n-gsps=10

You will need to set 'DB_URL'

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Abhijeet
Abhijeet

💻
Peter Dudfield
Peter Dudfield

💻
Ansh Roshan
Ansh Roshan

💻

This project follows the all-contributors specification. Contributions of any kind welcome!