Skip to content

Commit

Permalink
fixes to offshore workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
WOTrompDeltares committed Dec 4, 2024
1 parent 86a18a9 commit 7939613
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DT_flood/workflows/pyscripts/update_sfincs_offshore.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
ValueError("Provide data in correct format.")

sf.setup_pressure_forcing_from_grid(press=ds['press_msl'])
sf.setup_wind_forcing_from_grid(wind=ds[['wind_u', 'wind_v']])
sf.setup_wind_forcing_from_grid(wind=ds[['wind10_u', 'wind10_v']])

sf.write_forcing()
sf.write_config()
Expand Down
8 changes: 4 additions & 4 deletions Notebooks/solara/test_solara_config_v2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@
"\n",
"# fiat_path = database_path/\"output\"/\"Scenarios\"/scenario/\"Impacts\"/\"fiat_model\" \n",
"fiat_path = database_path/\"output\"/\"scenarios\"/scenario/\"Impacts\"/\"fiat_model\" \n",
"floodmap_path = database_path / \"output\" / \"Scenarios\" / scenario / \"Flooding\" / f\"FloodMap_{scenario}.tif\"\n",
"floodmap_path = database_path / \"output\" / \"scenarios\" / scenario / \"Flooding\" / f\"FloodMap_{scenario}.tif\"\n",
"fiat_output_path = fiat_path/\"output\"/\"spatial.gpkg\"\n",
"metrics_html_path = database_path /\"output\"/\"Scenarios\"/scenario/f\"{scenario}_metrics.html\"\n"
"metrics_html_path = database_path /\"output\"/\"scenarios\"/scenario/f\"{scenario}_metrics.html\"\n"
]
},
{
Expand Down Expand Up @@ -1164,8 +1164,8 @@
" event_dict[\"name\"] = event_name\n",
" event_dict[\"start_time\"] = start_date.strftime('%Y-%m-%d %H:%M:%S')\n",
" event_dict[\"end_time\"] = end_date.strftime('%Y-%m-%d %H:%M:%S')\n",
" event_dict[\"data_catalogues\"] = 'MISSING'\n",
" event_dict[\"sfincs_forcing\"] = {'meteo': 'MISSING', 'waterlevel': 'MISSING'}\n",
" event_dict[\"data_catalogues\"] = ''\n",
" event_dict[\"sfincs_forcing\"] = {'meteo': '', 'waterlevel': ''}\n",
"\n",
"############################################## TAB 2 ##############################################\n",
"\n",
Expand Down

0 comments on commit 7939613

Please sign in to comment.