ropensci / rnoaa

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

New coverage plots that include gaps for missing data. #343

Closed philipshirk closed 4 years ago

philipshirk commented 4 years ago

Description

meteo_utils

meteo-autoplot

Related Issue

This is to "fix" issue #314

Example

library(rnoaa)

# Sites
id1 <-  'USC00367732'
id2  <- 'USC00084289'
id3  <- 'USW00014895'

# get data
dat <- meteo_pull_monitors(monitors =  c(id1, id2, id3), 
                           keep_flags = T, 
                           var = c("PRCP", "TMIN", "TMAX", 'TAVG'))

obs_covr <- meteo_coverage(meteo_df = dat, verbose = TRUE)

autoplot(obs_covr, old_style = TRUE)
autoplot(obs_covr, old_style = FALSE)
philipshirk commented 4 years ago

The travis-ci check keeps failing, but it appears to be related to test-ncdc_datacats.r. When I run devtools::test(pkg = '.', filter = 'meteo') on my machine it passes. I don't think I've changed anything relevant to the test-ncdc_datacats.r check.

sckott commented 4 years ago

Don't worry about the ncdc* test errors as those require an API key, and the API key stored with Travis is not availiable on pull requests.

There's a number of issues in the check related to your changes https://travis-ci.org/github/ropensci/rnoaa/jobs/660316966#L1693-L1720

philipshirk commented 4 years ago

I fixed the things that you mentioned, @sckott, and I think it's working now. I searched the travis logs for "meteo_coverage" and "autoplot" and don't see any more problems. Let me know if you find any.

sckott commented 4 years ago

looks good, thanks @philipshirk !