hypertidy / ncmeta

Tidy NetCDF metadata
https://hypertidy.github.io/ncmeta/
11 stars 5 forks source link

hyper_tibble #47

Open lisaholsinger opened 1 year ago

lisaholsinger commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

lisaholsinger commented 1 year ago

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

mdsumner commented 1 year ago

no all good I'm on it

mdsumner commented 1 year ago

one level up for that file is

http://thredds.northwestknowledge.net:8080/thredds/reacch_climate_MET_aggregated_catalog.html

it is METDATA (GRIDMET) Maximum Air Temperature - Daily

http://thredds.northwestknowledge.net:8080/thredds/reacch_climate_MET_aggregated_catalog.html?dataset=agg_met_tmmx_1979_CurrentYear_CONUS

lisaholsinger commented 1 year ago

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

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

lisaholsinger commented 1 year ago

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

mdsumner commented 1 year ago

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

lisaholsinger commented 1 year ago

I get it! Thanks very much!