-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cicd: test to catch quarto render error 🤖
- Loading branch information
Showing
2 changed files
with
70 additions
and
174 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
--- | ||
title: "test" | ||
vignette: > | ||
%\VignetteIndexEntry{test} | ||
%\VignetteEngine{quarto::html} | ||
%\VignetteEncoding{UTF-8} | ||
format: | ||
html: | ||
toc: true | ||
fig-width: 8.5 | ||
fig-height: 4 | ||
knitr: | ||
opts_chunk: | ||
collapse: true | ||
comment: '#>' | ||
dev.args: | ||
bg: transparent | ||
--- | ||
|
||
```{r} | ||
library(post) | ||
``` | ||
|
||
## head1 | ||
|
||
### head2 | ||
|
||
![](figs/raster-data-cube.png) | ||
|
||
In R, vector data cube structures are supported in the form of array objects by the `{stars}` package and as tabular objects[^1] with the `{cubble}` package. | ||
`{sf}` is used both by cubble and stars to handle the spatial dimensions. | ||
Finally, both stars and cubble support certain `{tidyverse}` functions. | ||
|
||
[^1]: Other packages also support spatio-temporal objects such as `{sftime}`, and further support will be implemented while `post` gets developed. | ||
|
||
::: {.grid} | ||
|
||
::: {.g-col-9} | ||
Data cubes are multi-dimensional data structures. | ||
The most commonly known data cubes, particularly in Earth observation (EO), are **raster data cubes**. | ||
Raster data cubes are structures frequently used to organise time series of satellite imagery, gridded climate data, etc. | ||
They have minimum two spatial dimensions: *longitude* or *x* and *latitude* or *y*. | ||
The remainder dimensions can either be *time*, or other dimension such as *bands* for EO data. | ||
::: | ||
|
||
::: {.g-col-3} | ||
![](figs/raster-data-cube.png) | ||
::: | ||
|
||
::: | ||
|
||
```{r} | ||
#| label: libraries | ||
#| warning: false | ||
#| message: false | ||
library(post) | ||
library(cubble) | ||
library(stars) | ||
library(sf) | ||
library(tidyverse) | ||
``` | ||
|
||
```{r} | ||
polygons | ||
``` | ||
|
||
```{r} | ||
(arr = as_post_array(polygons)) | ||
class(arr) | ||
``` |