Skip to content

Commit

Permalink
cicd: test to catch quarto render error 🤖
Browse files Browse the repository at this point in the history
  • Loading branch information
loreabad6 committed Sep 9, 2024
1 parent 5c8d624 commit b71f089
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 174 deletions.
174 changes: 0 additions & 174 deletions vignettes/post01_post.qmd

This file was deleted.

70 changes: 70 additions & 0 deletions vignettes/test.qmd
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)
```

0 comments on commit b71f089

Please sign in to comment.