USGS-R / drb-inland-salinity-ml

Code repo for Delaware River Basin machine learning models that predict inland salinity.
Creative Commons Zero v1.0 Universal
3 stars 4 forks source link

Discussion (#17): Processing meteorological data to stream segments #210

Closed lekoenig closed 2 years ago

lekoenig commented 2 years ago

@jds485 (11/19/2021)

Based on conversations with Hayley Corson-Dosch @hcorson-dosch and Jake Zwart @jzwart

Met data for the PGDL streamflow and temperature models were processed to stream segments using 2 steps:

getting data from gridMET or other data source and matching to PRMS HRUs using Rich McDonald's code (edited by Hayley), and then running PRMS-SNTemp using the HRU met data to generate segment-specific met data as outputs This makes sense if the PRMS outputs are used for pretraining or as inputs to an ML model, but otherwise requires an extra model run to get the met data for stream segments. PRMS also adjusts the met data according to elevation and other factors, which may not be desirable for the ML model inputs. Jake suggests moving away from relying on step 2 and having a more general workflow that can go from gridded dataset to stream segments.

Some next steps:

Check if HyTEST has tools available to match gridded data to any polygon, polyline, or point Check in with Hayley for scripts that process the step 1 HRU gridMET data to PRMS segments (currently in jupyter notebooks on Hayley's computer). These scripts take gridMET parameters for each HRU and get area-weighted gridMET timeseries for PRMS segments, since many segments are associated with >1 HRU. Check if using the Geo Data Portal packages to gather and process gridMET data to HRUs is simpler/cleaner than the step 1 method above.

lekoenig commented 2 years ago

@jzwart (11/19/2021)

@wdwatkins also put together some code for going from NOAA GEFS gridded drivers (netCDF) to stream segment points - see targets here and functions here . Might be able to reuse some of that code if HyTEST doesn't have something or don't want to reuse Rich's code w/ Hayley's edits