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

hyper_tibble #47

Open
lisaholsinger opened this issue Dec 5, 2022 · 9 comments
Open

hyper_tibble #47

lisaholsinger opened this issue Dec 5, 2022 · 9 comments
Assignees

Comments

@lisaholsinger
Copy link

My apologies for double posting. I am having issues with hyper_tibble() similar to #42.

I am using R 4.2.1, ncmeta 0.3.5, RNetCDF 2.6.1, ncdf4 1.19, tidync 0.3.0 in Windows 10

Here is the code below, which previously worked in a R 3.6.2 but now hangs up on the hyper_tibble command.
I sure would appreciate any advice! Thank you in advance.

library(RNetCDF)
library(ncdf4)
library(tidync)
library(raster)
library(tidyverse)
library(ncmeta)

nc.grid <- tidync('http://thredds.northwestknowledge.net:8080/thredds/dodsC/agg_met_tmmx_1979_CurrentYear_CONUS.nc')

grid.yr <- nc.grid %>% activate("daily_maximum_temperature") %>%
hyper_filter(day = dplyr::between(index, 14784, 14898),
lat = dplyr::between(index, 263,319),
lon = dplyr::between(index, 387,462))

grid.yr <- grid.yr %>% hyper_tibble()

@mdsumner
Copy link
Member

mdsumner commented Dec 5, 2022

ah, I see - quite right - thanks!

I'll see if I can figure it out, you can get the values in the raw with

nc <- RNetCDF::ope.nc(<url>)
a <- RNetCDF::var.get.nc(nc, "daily_maximum_temperature", start = c(387, 263, 14784), count = c(76, 57, 115))

fwiw, this issue belongs on https://github.com/hypertidy/tidync/issues

@lisaholsinger
Copy link
Author

Thank you, and I'm sorry about posting to the wrong place! Will get it right next time.

@lisaholsinger
Copy link
Author

Hello - would it be a good idea to open this issue in https://github.com/hypertidy/tidync/issues?
thanks!

@mdsumner
Copy link
Member

mdsumner commented Dec 8, 2022

no all good I'm on it

@lisaholsinger
Copy link
Author

Yes, that is correct. More info on GridMET can be found here:

https://www.climatologylab.org/gridmet.html

@lisaholsinger
Copy link
Author

Did you get the metadata regarding the GridMET data that you needed, or could you use more info?

@mdsumner
Copy link
Member

yes it's fine I just can't get around to it yet 🙏

@lisaholsinger
Copy link
Author

I get it! Thanks very much!

@mdsumner mdsumner self-assigned this Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants