Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write code to dynamically fetch NOAA GHCNd raw data (using 'rnoaa' R package, 'ghcnd' function) #5

Open
caitlintwhite opened this issue Sep 25, 2023 · 1 comment
Labels
optional (would be helpful) If time, next step to build in (recommend in hindsight)

Comments

@caitlintwhite
Copy link
Contributor

As is, need to manually query and download data for many ghcnd stations, unzip it to data/raw folder. There are functions to prep raw data once they are in that folder, and data for a good number of stations only need to be downloaded once because their record stopped in the 80s-00s (no longer useful for infilling current data). However I didn't know the rnoaa package exists and had I, I definitely would have written code to dynamically fetch precip and temp data. It can be a little time consuming to manually download + unzip data, and which stations to download can be confusing (I'm looking at you, Nederland [many stations over the years and some short lived]).

If code is developed to dynamically fetch NOAA data, I would change the climate data prep workflow to entirely using R packages to fetch data (i.e., do away with manual data request and download). Needing to manually download GHCNd was always my biggest reason for not making everything dynamic.

@caitlintwhite caitlintwhite added the optional (would be helpful) If time, next step to build in (recommend in hindsight) label Sep 25, 2023
@milesalanmoore
Copy link
Collaborator

Working on this now.

milesalanmoore added a commit to milesalanmoore/NWT_climate_infilling that referenced this issue May 15, 2024
milesalanmoore added a commit that referenced this issue May 15, 2024
Added function to automate acquisition of GHCNd data. Addresses #5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optional (would be helpful) If time, next step to build in (recommend in hindsight)
Projects
None yet
Development

No branches or pull requests

2 participants