There are some design decisions to make on this one before we start implementing anything. Here are some options:
Add a source argument to cstdata, which can be either "maca" or "gridmet". There are some existing parameters to cstdata that don't make sense with gridmet, like scenario, and models.
Refactor cstdata to make dataset-specific cstdata functions, e.g., make two functions:
get_maca
get_gridmet
Both of these will return a data frame of files (like we do already for cstdata), that can be passed to cst_df. This interface seems cleaner than option (1) above to me.
What approach would you prefer @WilliamsTravis? Feel free to add suggestions.
There are some design decisions to make on this one before we start implementing anything. Here are some options:
Add a
source
argument tocstdata
, which can be either"maca"
or"gridmet"
. There are some existing parameters tocstdata
that don't make sense withgridmet
, likescenario
, andmodels
.Refactor
cstdata
to make dataset-specificcstdata
functions, e.g., make two functions:get_maca
get_gridmet
Both of these will return a data frame of files (like we do already for
cstdata
), that can be passed tocst_df
. This interface seems cleaner than option (1) above to me.What approach would you prefer @WilliamsTravis? Feel free to add suggestions.