Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stubs for other extractions #4

Merged
merged 2 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/climate_downscale/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,11 @@ def era5(self) -> Path:
@property
def ncei_climate_stations(self) -> Path:
return self.extracted_data / "ncei_climate_stations"

@property
def srtm_elevation(self) -> Path:
return self.extracted_data / "srtm_elevation"

@property
def rub_local_climate_zones(self) -> Path:
return self.extracted_data / "rub_local_climate_zones"
12 changes: 12 additions & 0 deletions src/climate_downscale/extract/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,25 @@
from climate_downscale.extract.ncei_climate_stations import (
extract_ncei_climate_stations,
)
from climate_downscale.extract.rub_local_climate_zones import (
extract_rub_local_climate_zones,
extract_rub_local_climate_zones_task,
)
from climate_downscale.extract.srtm_elevation import (
extract_srtm_elevation,
extract_srtm_elevation_task,
)

RUNNERS = {
"ncei": extract_ncei_climate_stations,
"era5": extract_era5,
"lcz": extract_rub_local_climate_zones,
"elevation": extract_srtm_elevation,
}

TASK_RUNNERS = {
"ncei": extract_ncei_climate_stations,
"era5": extract_era5_task,
"lcz": extract_rub_local_climate_zones_task,
"elevation": extract_srtm_elevation_task,
}
15 changes: 15 additions & 0 deletions src/climate_downscale/extract/rub_local_climate_zones.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import click


def extract_rub_local_climate_zones_main() -> None:
pass


@click.command()
def extract_rub_local_climate_zones_task() -> None:
raise NotImplementedError


@click.command()
def extract_rub_local_climate_zones() -> None:
raise NotImplementedError
15 changes: 15 additions & 0 deletions src/climate_downscale/extract/srtm_elevation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import click


def extract_srtm_elevation_main() -> None:
pass


@click.command()
def extract_srtm_elevation_task() -> None:
raise NotImplementedError


@click.command()
def extract_srtm_elevation() -> None:
raise NotImplementedError
Loading