-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from EcoExtreML/soil-temp-moist
Add soil temperature and soil moisture to ERA5 data, STEMMUS_SCOPE recipe
- Loading branch information
Showing
27 changed files
with
242 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# config (folder, login info etc goes to a ~/.zampy/config file) | ||
name: "STEMMUS_SCOPE_input" | ||
|
||
download: | ||
time: ["2020-01-01", "2020-06-30"] | ||
bbox: [60, 10, 50, 0] # NESW | ||
datasets: | ||
era5_land: | ||
variables: | ||
- air_temperature | ||
- dewpoint_temperature | ||
- soil_temperature | ||
- soil_moisture | ||
era5: | ||
variables: | ||
- total_precipitation | ||
- surface_thermal_radiation_downwards | ||
- surface_solar_radiation_downwards | ||
- surface_pressure | ||
- eastward_component_of_wind | ||
- northward_component_of_wind | ||
eth_canopy_height: | ||
variables: | ||
- height_of_vegetation | ||
fapar_lai: | ||
variables: | ||
- leaf_area_index | ||
land_cover: | ||
variables: | ||
- land_cover | ||
prism_dem_90: | ||
variables: | ||
- elevation | ||
cams: | ||
variables: | ||
- co2_concentration | ||
|
||
convert: | ||
convention: ALMA | ||
frequency: 1H # outputs at 1 hour frequency. Pandas-like freq-keyword. | ||
resolution: 0.25 # output resolution in degrees. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""zampy.""" | ||
|
||
from zampy import datasets | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
"""Implements CLI interface for Zampy.""" | ||
|
||
from pathlib import Path | ||
import click | ||
import dask.distributed | ||
from zampy.recipe import RecipeManager | ||
|
||
|
||
@click.command() | ||
@click.argument("recipe", type=click.Path(exists=True, path_type=Path)) | ||
def run_recipe(recipe: Path) -> None: | ||
@click.option("--skip-download", is_flag=True) | ||
def run_recipe(recipe: Path, skip_download: bool) -> None: | ||
"""Run the recipe using the CLI.""" | ||
click.echo(f"Executing recipe: {recipe}") | ||
rm = RecipeManager(recipe) | ||
rm = RecipeManager(recipe, skip_download) | ||
rm.run() | ||
|
||
|
||
if __name__ == "__main__": | ||
dask.distributed.Client() | ||
run_recipe() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Dataset formatter for different conventions.""" | ||
|
||
import json | ||
import warnings | ||
from pathlib import Path | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Outline of the dataset protocol.""" | ||
|
||
import json | ||
import shutil | ||
from dataclasses import dataclass | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Prism DEM dataset.""" | ||
|
||
import gzip | ||
import tarfile | ||
from pathlib import Path | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Shared utilities from datasets.""" | ||
|
||
import urllib.request | ||
from pathlib import Path | ||
import requests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.