Skip to content

Commit

Permalink
misc small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
huizezhang-sherry committed Jun 16, 2023
1 parent 6b3f958 commit fa6c80f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 13 deletions.
14 changes: 8 additions & 6 deletions R/as_cubble.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,17 @@
#' path <- system.file("ncdf/era5-pressure.nc", package = "cubble")
#' raw <- ncdf4::nc_open(path)
#' dt <- as_cubble(raw)
#' # read at every degree
#' # subset degree
#' dt <- as_cubble(raw,vars = c("q", "z"),
#' long_range = seq(113, 153, 1),
#' lat_range = seq(-53, -12, 1))
#' long_range = seq(113, 153, 3),
#' lat_range = seq(-53, -12, 3))
#'
#' # stars
#' tif = system.file("tif/L7_ETMs.tif", package = "stars")
#' x = stars::read_stars(tif)
#'\dontrun{
#'# stars - take a few seconds to run
#' tif <- system.file("tif/L7_ETMs.tif", package = "stars")
#' x <- stars::read_stars(tif)
#' x %>% as_cubble()
#'}
#'
#' # don't have to supply coords if create from a sftime
#' dt <- climate_flat %>%
Expand Down
9 changes: 9 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,12 @@ visualise
visualising
www
yearquarter
GHCND
customise
densify
easting
imageries
northing
spacetime
specialised
unprojected
14 changes: 8 additions & 6 deletions man/as_cubble.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vignettes/cb5match.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ res_tm <- res_sp %>%
(res_tm <- res_tm %>% bind_rows() %>% filter(group %in% c(1, 7, 6, 9)))
```

And then we can visialise them in space or across time:
And then we can visualise them in space or across time:

```{r echo = FALSE}
res_tm_long <- res_tm %>%
Expand Down

0 comments on commit fa6c80f

Please sign in to comment.