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

Fetch data directly from ScienceBase #29

Closed lekoenig closed 2 years ago

lekoenig commented 2 years ago

This PR includes changes to 1_fetch.R to automate the download of certain files from ScienceBase now that the data release is public. Manual downloads have been replaced with code to automatically download the relevant files for the following targets:

I'm currently getting errors for two of these targets, p1_drb_temp_sites_zip and p1_sntemp_input_output_zip (comments above each target indicate "TODO" followed by the error message). @msleckman, I could use your help with the download_sb_file() function. Does this code work for you? Do you know why the downloaded zips appear to be invalid?

Closes #8

lekoenig commented 2 years ago

@msleckman I was able to resolve the error when unzipping p1_sntemp_input_output_zip because I didn't have the file name quite right. I'm still having trouble with p1_drb_temp_sites_zip and the modified download_sb_file() function though, and am wondering if the query is working as expected.