Skip to content

Commit bf6b1fa

Browse files
authored
Merge pull request #12 from ihmeuw/feature/new-era5-extractions
Feature/new era5 extractions
2 parents 8a0410b + 5a70089 commit bf6b1fa

File tree

5 files changed

+142
-115
lines changed

5 files changed

+142
-115
lines changed

poetry.lock

Lines changed: 71 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ pandas = "^2.2.2"
3737
rasterra = "^0.6.0"
3838
shapely = "^2.0.4"
3939
geopandas = "^1.0.1"
40-
xarray = "^2024.3.0"
41-
cdsapi = "^0.7.0"
40+
xarray = "^2024.11.0"
41+
cdsapi = "^0.7.5"
4242
matplotlib = "^3.8.4"
4343
scikit-learn = "^1.4.2"
4444
rra-tools = "^1.0.10"
45-
netcdf4 = "^1.6.5"
45+
netcdf4 = "^1.7.2"
4646
pyarrow = "^16.0.0"
4747
types-requests = "^2.31.0.20240406"
4848
types-tqdm = "^4.66.0.20240417"

src/climate_data/cli_options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
_P = ParamSpec("_P")
1919

2020

21-
VALID_HISTORY_YEARS = [str(y) for y in range(1990, 2024)]
21+
VALID_HISTORY_YEARS = [str(y) for y in range(1950, 2024)]
2222
VALID_REFERENCE_YEARS = VALID_HISTORY_YEARS[-5:]
2323
VALID_FORECAST_YEARS = [str(y) for y in range(2024, 2101)]
2424

src/climate_data/data.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ def extracted_era5(self) -> Path:
3737
def extracted_era5_path(
3838
self, dataset: str, variable: str, year: int | str, month: str
3939
) -> Path:
40-
return (
41-
self.extracted_era5
42-
/ f"reanalysis-era5-{dataset}_{variable}_{year}_{month}.nc"
43-
)
40+
return self.extracted_era5 / f"{dataset}_{variable}_{year}_{month}.nc"
4441

4542
@property
4643
def extracted_cmip6(self) -> Path:

0 commit comments

Comments
 (0)