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 geo #65

Open
rburghol opened this issue Jul 15, 2024 · 0 comments
Open

Workflow geo #65

rburghol opened this issue Jul 15, 2024 · 0 comments
Assignees

Comments

@rburghol
Copy link
Contributor

rburghol commented Jul 15, 2024

  • geo - process a given dataset into a time series for a single geographic coverage preferably with a usgs gage to assess with)
    • Exec:
      • Use: run_model raster_met [scenario, note:method is in scenario config] [coverage hydrocode] [work directory] geo [run steps=all]
      • Scenario con needs to set GEO_MET_MODEL and should be either simple_lm or storm_volume
      • Ex: run_model raster_met PRISM usgs_ws_01665500 auto geo
    • Config:
      • geo.config (meta model reformats from [scenario].con): https://github.com/HARPgroup/meta_model/blob/main/models/raster_met/geo/geo.config
      • $GEO_MET_MODEL: the selected analysis model is set as a variable in the config file for the model scenario
      • $COVERAGE_PRECIP_FILE: $NLDAS_ROOT/[datasource]/out/[hydrocode]-[datasource]-all.csv
      • $COVERAGE_FLOW_FILE: $MODEL_EXPORT_DIR/usgs/out/[hydrocode]-flow.csv
      • $DAILY_PRECIP_FILE: $NLDAS_ROOT/[datasource]/out/[hydrocode]-[datasource]-weekly.csv
      • $WEEKLY_PRECIP_FILE: $NLDAS_ROOT/[datasource]/out/[hydrocode]-[datasource]-weekly.csv
      • $USGS_GAGE: what gage to use for this coverage? Since this is only run for gage coverages, the gage id is implicit in the hydrocode of the coverage, so, we don't need to pass this in. However, in some future world, we might want this support, and a data model will be required.
      • $RATING_FILE: $MODEL_EXPORT_DIR/met/[datasource]/out/[hydrocode]-[datasource]-[method]-ratings.csv
      • $RATING_TS_FILE: $MODEL_EXPORT_DIR/met/[datasource]/out/[hydrocode]-[datasource]-[method]-rating-ts.csv
    • download Generate the CSV data files to analyze
      • 01_coverage_precip: Makes an area weighted precipitation timeseries for the given coverage and dataset summary from the requested raster dataset
        • Creates $NLDAS_ROOT/[datasource]/out/[hydrocode]-[datasource]-all.csv
        • Only generates data for dates passed by user from config file
        • Ex: /opt/model/meta_model/run_model raster_met PRISM usgs_ws_02031000 auto geo download
        • Generate CSV: calc_raster_ts
          • Use: calc_raster_ts [hydrocode] [varkey] [outfile] [dbhost] [dbname] [remove sql file=y/n]
          • Ex: /opt/model/meta_model/run_model raster_met PRISM usgs_ws_02031000 auto geo download
      • 02_obtain_flow: download a flow dataset for the corresponding USGS gage
      • copy: get copy of data on local storage
    • process
    • analyze: create outputs to describe precip dataset and its fidelity by coverage
      • Output/Intermediate Files:
        • $MODEL_EXPORT_DIR/met/[datasource]/out/[hydrocode]-[datasource]-[method]-ratings.csv
      • 02_model_XXXX: Accuracy/Preference rating for each time period,
        • Where XXXX is a unique identifier based on the method selected
        • Info to store: location, datasource, time-period (hour or start/end)
        • Create file CSV: $MODEL_EXPORT_DIR/met/[datasource]/out/[hydrocode]-[datasource]-[method].csv
      • 03_met_summary: develop summaries of our coverage meteorology data and add to db via REST REST / RomDataSource, metrics and analysis HARParchive#1354
      • 04_plot_xxxx to 07_xxxx open slots for extra visualizations if needed.
      • 08_create_rating
        • generates a CSV with time periods and ratings, must have columns: start_date, end_date, rating
        • $MODEL_EXPORT_DIR/met/[datasource]/out/[hydrocode]-[datasource]-[method]-ratings.csv
        • rating column has a number between 0.0-1.0 which shows accuracy.
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

4 participants