Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow Step: geo -> analyze -> 01_met_summary #101

Open
rburghol opened this issue Nov 19, 2024 · 0 comments
Open

Workflow Step: geo -> analyze -> 01_met_summary #101

rburghol opened this issue Nov 19, 2024 · 0 comments
Assignees

Comments

@rburghol
Copy link
Contributor

rburghol commented Nov 19, 2024

  • Summarizes met data for the given coverage and scenario. Scenario includes the datasource, which is tied to a specific varkey and potentially a property featureid+entity_type combo.
  • Draft R script: precip_coverage_summary.R
  • Example bash script to call R in workflow 06_plot_stormVolume

Testing/Running

Running in meta_model

scenario=stormVol_daymet # scenario=stormVol_prism

for i in usgs_ws_01613900 usgs_ws_01616100 usgs_ws_01673550; do
  /opt/model/meta_model/run_model raster_met $scenario $i auto geo analyze 01
done

R retrieval via om_vahydro_metric_grid()

library("hydrotools")
basepath='/var/www/R';
source("/var/www/R/config.R") # will need file in same folder/directory

# GET VAHydro 1.0 RIVERSEG l90_Qout DATA
mdf <- data.frame(
  'model_version' = c('met-1.0','met-1.0','met-1.0','met-1.0'),
  'runid' = c('stormVol_prism','stormVol_daymet','stormVol_prism','stormVol_daymet'),
  'metric' = c('precip_annual_max_in','precip_annual_max_in','precip_annual_min_in','precip_annual_min_in'),
  'runlabel' = c('prism_p_max_in','daymet_p_max_in','prism_p_min_in','daymet_p_min_in')
)
met_data <- om_vahydro_metric_grid(
  metric = metric, runids = mdf, bundle="watershed", ftype="usgs_full_drainage",
  base_url = paste(site,'entity-model-prop-level-export',sep="/"),
  ds = ds
)


@rburghol rburghol mentioned this issue Nov 19, 2024
2 tasks
@rburghol rburghol changed the title Workflow Step: geo -> 01_met_summary Workflow Step: geo -> analysis -> 01_met_summary Dec 6, 2024
@rburghol rburghol changed the title Workflow Step: geo -> analysis -> 01_met_summary Workflow Step: geo -> analysis -> 01_met_summary Dec 6, 2024
@rburghol rburghol changed the title Workflow Step: geo -> analysis -> 01_met_summary Workflow Step: geo -> analyze -> 01_met_summary Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants