conrad-blucher-institute / semaphore

Creative Commons Zero v1.0 Universal
1 stars 0 forks source link

456 update inundation models to dspec 20 #471

Closed matdenkas closed 2 days ago

matdenkas commented 3 weeks ago

Finally the inundation models are done. There is a warning in the PPC for low values and a new way of doing series overrides.

Here is the script I used to test this

import subprocess
from datetime import datetime
MONTHS = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]
MONTS_ABRIVE = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']
LEAD_TIMES = ['12', '24', '48']
START_TIME = datetime(2024, 9, 14, 00, 00)

for month, month_abrive in zip(MONTHS, MONTS_ABRIVE):
    for lead_time in LEAD_TIMES:
        time_str = START_TIME.strftime('%Y%m%d%H') + '01'
        cmd = f'./Inundation/{month}/ar_inundation_{month_abrive}_{lead_time}h.json'
        proc = subprocess.run(["docker", "exec", "semaphore-core", "python3", "src/semaphoreRunner.py", "-d", cmd, '-p', time_str]) 
        print(f'----------------------PROC RETURN {proc.returncode}----------------------')