rileyhales / saber-hbc

The python implementation of the SABER bias correction method for hydrologic models
BSD 3-Clause Clear License
3 stars 3 forks source link

rbc.prep.gen_assignments_table not including downstream_model_id column after merge #11

Closed JonahBD closed 3 years ago

JonahBD commented 3 years ago

The rbc.prep.gen_assignments_table function merges the drain-table.csv and the gauge_table.csv files by their model_id_col into a new file called assign_table. For some reason after the merge, the downstream_model_id column is not included in the new assign_table file. I tried merging the drain-table.csv and gauge_table.csv files for the Dominican Republic and I ran into this problem. Josh said he received a similar error. I realized the column was missing when I ran the rbc.assign.propagation(assign-table) function and it gave me an error saying the downstream_model_id column didn't exist. Attached are the two files I tried to merge. drain_table.csv gauge_table.csv

rileyhales commented 3 years ago

Any progress on this issue @JonahBD ?