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

GHCN Daily Precip Data #13

Open
jdossgollin opened this issue Mar 24, 2023 · 4 comments
Open

GHCN Daily Precip Data #13

jdossgollin opened this issue Mar 24, 2023 · 4 comments
Assignees
Labels
new dataset Add a new dataset

Comments

@jdossgollin
Copy link
Collaborator

  • Add the GHCN data to the Snakefile
  • Should download all stations and the index file
  • Individual users should write their own scripts to extract what they need
  • There is no way to incrementally re-run this so will need to think about how to update as needed (every year?)
@jdossgollin jdossgollin added the new dataset Add a new dataset label Mar 24, 2023
@jdossgollin
Copy link
Collaborator Author

Steps:

  1. Download https://www.ncei.noaa.gov/data/global-historical-climatology-network-daily/archive/
  2. Unzip and move to correct location

@jdossgollin
Copy link
Collaborator Author

jdossgollin commented Mar 24, 2023

If we were ambitious, we could turn into a netcdf file (indexed by station, time) -- perhaps 1 netcdf4 file per station?

for each station, have the following data variables:

  • precip_in (indexed by time)
  • quality_flag (indexed by time)
  • station ID (not indexed)
  • lon (not indexed)
  • lat (not indexed)

@jdossgollin
Copy link
Collaborator Author

Then provide an example of how to use xarray and dask (xr.open_mfdataset) to read in precip data from multiple stations at once

@jdossgollin
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new dataset Add a new dataset
Projects
None yet
Development

No branches or pull requests

2 participants