mirror of
https://github.com/dylanbenzi/hurricane_normalization_app.git
synced 2026-07-30 05:08:57 +00:00
add data population to calc
This commit is contained in:
@@ -1032,7 +1032,56 @@ calculator_storm_selection <- reactiveValues(
|
||||
full_lf_id = NULL,
|
||||
)
|
||||
|
||||
observeEvent(input$impact_populate_storm, {
|
||||
calculator_storm_selection$storm_basin = input$impact_storm_basin
|
||||
calculator_storm_selection$storm_year = input$impact_storm_year
|
||||
calculator_storm_selection$storm_name = input$impact_storm_name
|
||||
calculator_storm_selection$full_lf_id = input$impact_storm_full_lf_id
|
||||
|
||||
calculator_storm_details <- get_lf_type_factors(calculator_storm_selection)
|
||||
|
||||
updateTextInput(
|
||||
session,
|
||||
"impact_lat",
|
||||
value = calculator_storm_details$lat
|
||||
)
|
||||
|
||||
updateTextInput(
|
||||
session,
|
||||
"impact_lon",
|
||||
value = calculator_storm_details$lon
|
||||
)
|
||||
|
||||
updateTextInput(
|
||||
session,
|
||||
"impact_rmw",
|
||||
value = calculator_storm_details$rmw
|
||||
)
|
||||
|
||||
updateSliderInput(
|
||||
session,
|
||||
"impact_rmw_slider",
|
||||
value = calculator_storm_details$rmw
|
||||
)
|
||||
|
||||
updateTextInput(
|
||||
session,
|
||||
"impact_base_year",
|
||||
value = calculator_storm_details$storm_year
|
||||
)
|
||||
|
||||
updateTextInput(
|
||||
session,
|
||||
"impact_ref_year",
|
||||
value = "2024"
|
||||
)
|
||||
|
||||
updateTextInput(
|
||||
session,
|
||||
"impact_base_damage",
|
||||
value = calculator_storm_details$mwr
|
||||
)
|
||||
})
|
||||
```
|
||||
|
||||
Column {data-width=700}
|
||||
|
||||
Reference in New Issue
Block a user