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

Terra climate #29

Open
tpoisot opened this issue Oct 3, 2021 · 2 comments
Open

Terra climate #29

tpoisot opened this issue Oct 3, 2021 · 2 comments

Comments

@tpoisot
Copy link
Member

tpoisot commented Oct 3, 2021

http://www.climatologylab.org/terraclimate.html?s=09

@tpoisot
Copy link
Member Author

tpoisot commented Oct 5, 2021

This is eminently doable:

using Revise
using SimpleSDMLayers
using NetCDF
using Plots

ws = download("http://thredds.northwestknowledge.net:8080/thredds/fileServer/TERRACLIMATE_ALL/summaries/TerraClimate19812010_srad.nc")

ncinfo(ws)

missingval = ncgetatt(ws, "ws", "missing_value")
wsjan = ncread(ws, "ws")[:,:,8] |> rotl90
WS = SimpleSDMResponse(wsjan)
replace!(WS, missingval => nothing)
plot(convert(Float32, WS))

@tpoisot
Copy link
Member Author

tpoisot commented Oct 5, 2021

The dataset also has individual years, so wrapping this one is going to be a broader effort, post v0.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

1 participant