FlowWest / swc-habitat-suitability

0 stars 0 forks source link

data-raw to Google Drive + first draft terrain attributes #1

Closed skylerlewis closed 5 months ago

skylerlewis commented 5 months ago

Doing both of these in the same branch to keep things from getting too complicated.

I'll mark as ready to review once I've tested and confirmed it to be working

Since it's done so many times, I made a quick function to simplify the routine of checking if the file is already downloaded, downloading if needed, and piping the filename to the subsequent import or extract function. See this commit for details. Also, I am using the Google Drive file UID rather than filename since it's less error prone and doesn't depend on the user's drive file structure. The UID can be found in the share URL after /d/ and before ?...