USGS-R / drb-gw-hw-model-prep

Code repo to prepare groundwater and headwater-related datasets for modeling river temperature in the Delaware River Basin
Other
0 stars 3 forks source link

Map temp observations onto NHDPlusv2 COMIDs #27

Closed lekoenig closed 2 years ago

lekoenig commented 2 years ago

The observation sites are snapped to NHDPlusv2 flowlines in p2_drb_temp_sites_w_segs. It would be helpful to also have a target that outputs a data frame with the observational time series but with COMID as an additional column. To match the time series with the COMID we'd need to join p1_drb_temp_obs and p2_drb_temp_sites_w_segs by the site_id.

From Janet:

[we can] export either a csv or a netcdf with the appropriate columns named the same as the aggregated temps in the new data release (except with the addition of of COMID), I could use the snakemake file to reshape it. (or I could get you the specs of what river-dl wants and you could do that in the pipeline and export the zarr)