You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the coastal damage functions we need to have the depth variable in the damage function lookup be
TWL = SWL + 0.71.6Hm0
and wave height needs to be
Hc = 1.6*Hm0
But technically this should only apply if the damage function comes from the fema logically consistent set.
there are a few things we could do here.
we could add a new variable to the hazard (Total Water Level) so that SWL can be used for non wave damage functions.
the compute of the depth could be pushed into go consequences, if the hazard has wave height and the occupancy type is of a certain type...
The text was updated successfully, but these errors were encountered:
So only the depth calculations would go into go-consequences and all the other hazard pieces in go-coastal? If we have only just started, it would make sense to have a middleware layer to take care of any hazard data generation.
Either way, if we want to continue relegating the wave damage selection to the backend, we would need some way to distinguish whether the alternative formulation would be warranted. Maybe adding another variable to each function to document its source?
well go-coastal (this project) is really the "middleware" here. We do actually have access to the occupancy type when we run the compute here, so we could actually put all of the logic in the go-coastal project
there is an open issue in go-consequences to add a source variable to the damage function. i feel like that is a fairly simple use case, and it might be releavant to add a "damage driving parameter" variable too
go-coastal/geometry/triangulation.go
Line 139 in de01b9a
For the coastal damage functions we need to have the depth variable in the damage function lookup be
TWL = SWL + 0.71.6Hm0
and wave height needs to be
Hc = 1.6*Hm0
But technically this should only apply if the damage function comes from the fema logically consistent set.
there are a few things we could do here.
we could add a new variable to the hazard (Total Water Level) so that SWL can be used for non wave damage functions.
the compute of the depth could be pushed into go consequences, if the hazard has wave height and the occupancy type is of a certain type...
The text was updated successfully, but these errors were encountered: