🚀 Tasks
Task 1
Follow the instructions in Submission via GitHub Pages to create a new repo in the existing organization. As you did in the previous weeks, solve the next task in a file named index.qmd.
- Redo Raster Basics. However, this time use
gdalfrom the command line to to the processing. Note that you can usebashcommands in quarto, you just have to- set the language to
{bash}in the code chunk and - the
enginetoknitrin the YAML header
- set the language to
- Again, use the R package
tictocto measure the execute time of each step in the process. To measure the execution time of bash commands, you can use the approach shown below. - Compare the execution times of with the
terraapproach. Which is faster?
```{r}
tictoc::tic(msg = "Step 1: Transform the data")
```
```{bash}
gdal_translate input.tif output.tif
```
```{r}
tictoc::toc(log = TRUE)
```
```{r}
# Finally (to get a full log:)
tictoc::tic.log()
```