Skip to content

Commit

Permalink
Fixed loop over years
Browse files Browse the repository at this point in the history
  • Loading branch information
trondkr committed Jul 16, 2020
1 parent f8785dd commit 742ad06
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ECMWF_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ECMWF_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 742ad06

Please sign in to comment.