Skip to content

Commit 763d842

Browse files
committed
Fixed typos found by @drakeasberry
1 parent 5b0e962 commit 763d842

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

episodes/01-raster-structure.Rmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ page](https://datacarpentry.org/geospatial-workshop/data/).
8181

8282
We will be working with a series of GeoTIFF files in this lesson. The
8383
GeoTIFF format contains a set of embedded tags with metadata about the raster
84-
data. We can use the function `GDALinfo()` to get information about our raster
84+
data. We can use the function `describe()` to get information about our raster
8585
data before we read that data into R. It is ideal to do this before importing
8686
your data.
8787

@@ -148,7 +148,7 @@ summary(values(DSM_HARV))
148148
To visualise this data in R using `ggplot2`, we need to convert it to a
149149
dataframe. We learned about dataframes in [an earlier
150150
lesson](https://datacarpentry.org/r-intro-geospatial/04-data-structures-part2/index.html).
151-
The `raster` package has an built-in function for conversion to a plotable dataframe.
151+
The `terra` package has an built-in function for conversion to a plotable dataframe.
152152

153153
```{r}
154154
DSM_HARV_df <- as.data.frame(DSM_HARV, xy = TRUE)
@@ -316,9 +316,9 @@ raster: surface elevation in meters for one time period.
316316

317317
![](fig/dc-spatial-raster/single_multi_raster.png){alt='Multi-band raster image'}
318318

319-
A raster dataset can contain one or more bands. We can use the `raster()`
319+
A raster dataset can contain one or more bands. We can use the `rast()`
320320
function to import one single band from a single or multi-band raster. We can
321-
view the number of bands in a raster using the `nlayers()` function.
321+
view the number of bands in a raster using the `nly()` function.
322322

323323
```{r view-raster-bands}
324324
nlyr(DSM_HARV)
@@ -586,7 +586,7 @@ describe("data/NEON-DS-Airborne-Remote-Sensing/HARV/DSM/HARV\_DSMhill.tif")
586586
587587
## More Resources
588588
589-
- [Read more about the `raster` package in R.](https://cran.r-project.org/package=raster)
589+
- [Read more about the `terra` package in R.](https://cran.r-project.org/package=terra)
590590
591591
592592
::::::::::::::::::::::::::::::::::::::::::::::::::

0 commit comments

Comments
 (0)