From 742ad06a1d9f58c5389410e470f9128ffea90eda Mon Sep 17 00:00:00 2001 From: Trond Kristiansen Date: Thu, 16 Jul 2020 09:29:08 -0700 Subject: [PATCH] Fixed loop over years --- ECMWF_query.py | 2 +- ECMWF_tools.py | 2 +- README.md | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ECMWF_query.py b/ECMWF_query.py index a38f27b..3f9ddb8 100644 --- a/ECMWF_query.py +++ b/ECMWF_query.py @@ -9,7 +9,7 @@ def __init__(self): # https://www.ecmwf.int/en/forecasts/access-forecasts/ecmwf-web-api self.use_era5 = True - self.start_year = 1980 + self.start_year = 1981 self.end_year =2019 self.resultsdir = "results" self.debug = False diff --git a/ECMWF_tools.py b/ECMWF_tools.py index 73d905e..a74e3bc 100644 --- a/ECMWF_tools.py +++ b/ECMWF_tools.py @@ -17,7 +17,7 @@ def __init__(self): self.server = cdsapi.Client(debug=self.config_ecmwf.debug) def create_requests(self): - years = [self.config_ecmwf.start_year + y for y in range(1)] + years = [self.config_ecmwf.start_year + y for y in range(self.config_ecmwf.end_year)] for year in years: print("=> Downloading for year {}".format(year)) diff --git a/README.md b/README.md index c3817fd..68f9d11 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +[![Build status][image-1]][1] +![CodeBeat][image-2] +![CodeCov][image-3] + # Download ERA5 and convert to ROMS format This toolbox enables you to download ERA5 atmospheric forcing data for your model domain for a specified period. The toolbox uses the [*Climate Data Store*] Python API to connect and download specific variables required by ROMS to perform simulations with atmospheric forcing. These variables are included in the list below: @@ -38,3 +42,8 @@ To run the toolbox after editing the settings simply run **Unittest** A few simple unittests are included in `test_ERA5.py`. + +[1]: https://buildkite.com/rask-dev-llc/era5-toolbox +[image-1]: https://badge.buildkite.com/9fe63ac4afc901fb503d10d67c26175d7071137729c00d1b17.svg +[image-2]: https://codebeat.co/badges/402a5755-c757-4a8d-a9a5-f9349aed8462 +[image-3]: https://codecov.io/gh/trondkr/ERA5-ROMS/branch/master/graph/badge.svg