ropensci / rnoaa

R interface to many NOAA data APIs
https://docs.ropensci.org/rnoaa
Other
330 stars 84 forks source link

cpc_prcp: bug in some years (dates < 2008-12-31) #248

Closed sckott closed 6 years ago

sckott commented 6 years ago

related to #242

thought I had fixed this, but user reported problem back in November 2017 - finally gettting to this

Results are not turning out correctly, not sure why yet.

e.g.

foo <- function(x) {
  tmp <- cpc_prcp(date = x, us=FALSE)
  p <- ggplot(tmp, aes(x=lon, y=lat, fill=precip)) + theme_bw()
  p + 
    geom_tile() +
    ggtitle(sprintf("cpc_prcp(date = '%s', us=FALSE)", x))
}
foo("2008-12-31")
screen shot 2018-01-20 at 9 27 04 am
foo("2009-01-01")
screen shot 2018-01-20 at 9 26 36 am