forked from ubc-geomatics-textbook/geomatics-textbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path15-LiDAR-acquisition-and-analysis.Rmd
278 lines (157 loc) · 10.8 KB
/
15-LiDAR-acquisition-and-analysis.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
# LiDAR Acquisition and Analysis {#LiDAR-acquisition-and-analysis}
**Bold Text**, *Italicized Text* Regular Text.
::: {.box-content .learning-objectives-content}
::: {.box-title .learning-objectives-top}
#### Learning Objectives {.unnumbered}
:::
1. Understand *how* LiDAR works
2. Understand *what* we can do with LiDAR data
3. Understand the basic processing steps required to use LiDAR data in a forestry context
:::
### Key Terms {.unnumbered}
LiDAR, ALS, Surface Models, LiDAR Metrics, Area-Based Approach, Individual Tree Detection
## What is LiDAR?
LiDAR is an active remote sensing technology that uses a laser scanner and time of flight principles to collect 3 dimensional data. A LiDAR system is made up of three components; a laser-scanning device, and accurate global navigation satellite system (GNSS), and an inertial measurement unit (IMU). The GNSS receiver allows the position of the laser to be determined in space, while the IMU records the orientation of the laser (i.e. roll, pitch, and yaw). When discussing LiDAR in an airborne context, we can also call it airborne laser scanning (ALS).
### How does it Work?
Typical LiDAR systems use the time of flight method to produce 3D data. A laser ranging instrument produces a short, intense pulse of light from the instrument to a target being measured. Some of this energy is then reflected back to the instrument, where it is recorded. Since the speed of light, and the location of the laser ranging instrument is known, we can calculate the position of the target by timing how long it takes between the the pulse being emitted and received.
{.center}
A LiDAR dataset includes several pieces of information for each 3D point. X,Y,Z location data is included, as well as information about how the data was collected. In many cases, this includes
The most common file format for LiDAR files is called the LAS file format (.las). This file format was originally designed for 3-dimensional point cloud data, and is a free alternative to proprietary systems or a generic ASCII file interchange system. The main benefits of this file format are that it is relatively quick, can be used by any system, and stores information specific to the nature of LiDAR data wihtout being overly complex (:<https://www.asprs.org/divisions-committees/lidar-division/laser-las-file-format-exchange-activities>).
LiDAR HISTORY
- Early LiDAR point densities were low, which
- Brief history in forestry / what can we do with LiDAR
{.center}
## Components of LiDAR Systems
### Lasers
- 4:10 - video 1
- Typical wavelengths (eye safe, NIR vs green for bathymetric)
- Power
- Beam divergence - important to take into account. Think about a dinner plate compared to a bicycle wheel. A beam that has low divergence (dinner plate) will be able to distinguish more objects than a high divergence beam (bicycle wheel).
- Target interaction - 7:45 in video 1
- Scanning types - zig-zag, rotating mirror line, push broom (call back to RS chapter?) - video 2, 2:08
- Pulse frequency, scan rate, scan angle
{.center}
### Position and Orientation
- **Global Navigation Satellite Systems**
- Require us to know our position exactly!
- Callback to GNSS?
- On board GPS and GPS reference stations on the ground are used to post process the data in order to be as accurate as possible
{.center}
- **Inertial Measurement Unit (IMU)**
- An inertial measurement unit (IMU) consists of gyroscopes and accelerometers measures the attitude and acceleration of the aircraft along the X, Y, Z axis. This data is combined with the GNSS data to provide a precise location of the scanner in space.
- Mentioned elswhere? What is it - focus on image that discusses pitch/roll/yaw
- **Clocks**
- The LiDAR point data needs to be synched with the positioning data in order to know where the point is in space. To do this, a very accurate GPS clock is used to time stamp the laser scanning data (7:30 video 2).
- Accurate clocks are imperative for producing accurate point clouds. One nanosecond corresponds to a 30 cm travel distance A - (video 1)
### Platform
LiDAR units can be attached to a variety of platforms. Traditionally, LiDAR units for forestry research were mounted on airplanes and helicopters, as units were large and cumbersome [Figure X for actual scanner], however ground based units such as terrestrial laser scanning (TLS), and mobile laser scanning (MLS) have also been developed. These units tend to have a very high point density, and TLS is often used in modeling tree architecture.
- Plane vs helicopter - what is normal
- Drone: As technology has improved and laser units have gotten smaller, we can mount LiDAR units to drones (also known as...)
{.center}
- MLS/backpack
- Satellite based:
- ICESat
- GEDI
{.center}
- Cars: Don't need figure..
{.center}
- TLS
**IDEA**: combine different types into one collage
## Types of LiDAR
### Discrete Return
Discrete return LiDAR = more common. Include figure of a cross-section!
### Full Waveform
### Multispectral
- New
### Single Photon Lidar
- New
{.center}
[This is how we link to something. {target="\_blank"} ensures that this link opens in a new window rather than navigating away from the textbook.](https://google.com){target="_blank"}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut in dolor nibh. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
::: {.box-content .call-out-content}
::: {.box-title .call-out-top}
#### Call out {.unnumbered}
:::
<p id="box-text">
This is a call out. Put some important concept or fact in here.
</p>
:::
## LiDAR Derivatives and Analysis
- What can we do with LiDAR derivatives, why are they important
- What is the use for LiDAR in forestry and ecology - examples from NCC LiDAR Lecture
- How do we go from raw cloud to these derivatives
{.center}
### Bare Earth Elevation
- What is a DEM
{.center}
### Canopy Height Model
- What is a CHM
{.center}
### Canopy Surface Model
- CHM vs DSM?
### Grid Metrics
- What are these used for
{.center}
{.center}
### Tree Segmentation
-How and why would we want too do this
{.center}
{.center}
### Software
We use lidR for this section.. Can use XYZ
::: {.box-content .case-study-content}
::: {.box-title .case-study-top}
#### Case Study {.unnumbered}
:::
#### Creating LiDAR Metrics from a Raw Point Cloud {#box-text .unnumbered}
<p id="box-text">
For this case study, we will be using a clipped .las file from the 2018 open LiDAR dataset of City of Vancouver and UBC Endowment Lands in British Columbia (we randomly selected a 200 x 200 meter portion of the '4840E_54550N' tile, see below for the link where you can download the data), and the `lidR` package in R. The script to process this data is included HERE [where to include script?], and you can use the `lidR` book [link] to get a more in depth understanding of the functions we apply below.
</p>
<p id="box-text">
The first step when looking at LiDAR data is to inspect it; we recommend using the free software CloudCompare (link below), or the `plot()` function in the `lidR` package. Once we have a sense of our data, we can clean and filter the data, using `classify_noise()` and the '-drop' switch to get rid of the noise in our dataset [include image showing noisy vs. clean data?]. Our cleaned dataset can then be used to create a DEM; first we can `classify_ground()`, followed by using the `grid_terrain()` function [call back to previous chapter] -- this is an essential step that could require quite a bit of tweaking depending on what you want to use the DEM for! In our case, the DEM is used to *normalize* the point cloud. Normalization removes the effect of terrain on above ground measurements, allowing comparisons of vegetation heights. [insert image of DEM and CHM]. The normalized point cloud is used to create our CHM (created using `grid_canopy()`). It is at this point that we can analyze the point cloud in a variety of ways. We can use an area-based approach (ABA) to create metrics at the grid level (`grid_metrics()`), or we can derive metrics at the individual tree scale. In order to do this we need to first segment the trees (`segment_trees()`) before creating metrics (`tree_metrics()`). Below we can see an example of a segmented point cloud.
</p>
<p id="box-text">
Case studies should have at least one image or map (no more than 2 total) and the written length should be around 300 words (shown above). Any references to external literature should by hyperlinked with the Digitial Object Identifier (DOI) permanent URL and [entered into the bibliography](https://bookdown.org/yihui/bookdown/citations.html){target="_blank"}. Avoid linking to external resources without a DOI and permanent URL. Contact Paul or try using the Leaflet package in R if you want to add an interactive web map.
</p>
:::
::: {.box-content .your-turn-content}
::: {.box-title .your-turn-top}
#### Your turn! {.unnumbered}
:::
<p id="box-text">
Explore some of the LiDAR derivatives that we produced in the case study above
</p>
<p id="box-text">
Interactive map of rasters:
- DEM
- CHM
- and some grid metrics - e.g. mean and p99?
</p>
<p id="box-text">
Screenshot vs. interactive point cloud - data size concerns
</p>
<p id="box-text">
Necessity of being able to rotate point cloud? Relatively little gain for trouble of small area.
</p>
Your browser does not support iframes
</p>
</iframe>
:::
## Summary
LiDAR! Requires 3 components. Important for vertical characterization of the forest. Can produce useful rasters
### Reflection Questions {.unnumbered}
1. Explain ipsum lorem.
2. Define ipsum lorem.
3. What is the role of ispum lorem?
4. How does ipsum lorem work?
### Practice Questions {.unnumbered}
2. Given ipsum, solve for lorem.
3. Draw ipsum lorem.
`r if (knitr::is_html_output()) ' ## Recommended Readings {-} '`
Ensure all inline citations are properly referenced here.
```{r include=FALSE}
knitr::write_bib(c(
.packages(), 'bookdown', 'knitr', 'rmarkdown', 'htmlwidgets', 'webshot', 'DT',
'miniUI', 'tufte', 'servr', 'citr', 'rticles'
), 'packages.bib')
```