Skip to content

Commit

Permalink
Return to earlier job definition
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc committed Sep 8, 2023
1 parent 3d106a1 commit ca9b402
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions nwp/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,18 @@

import datetime as dt



dwd_base_path = "/mnt/storage_b/data/ocf/solar_pv_nowcasting/nowcasting_dataset_pipeline/NWP/DWD"

def build_config_on_runtime(model, run, delay=0):
config = IconConfig(model=model,
run=run,
delay=delay,
folder=f"{base_path}/ICON_Global/{run}",
zarr_path=f"{base_path}/ICON_Global/{run}/{run}.zarr.zip"),
config_dict = {"delay": config.delay, "folder": config.folder, "model": config.model, "run": config.run,
folder=f"{base_path}/{'ICON_Global' if model == 'global' else 'ICON_EU'}/{run}",
zarr_path=f"{base_path}/{'ICON_Global' if model == 'global' else 'ICON_EU'}/{run}/{run}.zarr.zip")
config_dict = {"delay": config.delay, "folder": config.folder, "model": config.model, "run": config.run,
"zarr_path": config.zarr_path}
return config_dict


schedules = []
for r in ["00", "06", "12", "18"]:
for model in ["global", "eu"]:
Expand Down

0 comments on commit ca9b402

Please sign in to comment.