Hi all, I’m using the excellent
meteo_tidy_ghcnd function to pull daily data from the local airport. I notice that today (May 4, 2017) that all the data after April 12, 2017 are
NA despite my observation that the raw data list values for TMIN, TMAX, and PRCP through the end of the month. I can’t see anything in the raw data (e.g., flags) that would preclude data being pulled but that might well be a misunderstanding on my part.
So, how do
meteo_tidy_ghcnd truncate data? Advice appreciated. -Andy
airport <- data.frame(meteo_tidy_ghcnd(stationid="USW00024217", keep_flags = FALSE, var = c("TMIN","TMAX","PRCP"))) tail(airport,20) # why only to 12-apr? # or dat <- ghcnd(stationid = "USW00024217") alldat <- ghcnd_splitvars(dat) prcp <- data.frame(alldat$prcp) prcp <- prcp[order(prcp$date),] tail(prcp,20)
raw data link: ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/all/USW00024217.dly (wasn’t showing up in embedded link above)