USGS-R / drb-estuary-salinity-ml

Creative Commons Zero v1.0 Universal
0 stars 4 forks source link

pull full USGS timeseries #37

Closed amsnyder closed 2 years ago

amsnyder commented 2 years ago

I added a function into the fetch step that gets some info about each site (fetch_site_info). This information includes the start and end dates of all parameters available at that site. I process this into a shorter table per site with each parameter code and the start and end dates for its observations (process_site_info_to_csv). The earliest of these start dates is used for the API call to pull all the data for that site. Today's date (on whichever day you run the script) is used as the end date. I have removed start and end dates from the config file since these are created in the code now.

A few other changes to note in this pull request:

Happy to talk about this in our meeting next week, but feel free to reach out with questions before then too!

amsnyder commented 2 years ago

@galengorski and @ted80810 - would it be possible to review this? I was to create another pull request for the gap analysis, but it would be easiest if this was merged first!