Skip to content

Commit

Permalink
update 01 text
Browse files Browse the repository at this point in the history
  • Loading branch information
Taylor Nelsen committed Jun 22, 2020
1 parent 3ae3c3c commit c54b10c
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 deletions 01-multispectral-data-visualization.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

A raster is data stored as individual pixels and displayed as an image. Most of the data from drone borne multispectral cameras, satellites, and other image acquisition technologies are stored as rasters. Images can have many extensions. The ones used in this example are .tif files.

1. Add a raster layer by navigating to the `Data Source Manager | Raster` by going to "Layer" >> "Add Layer" >> "Add Raster Layer..." (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>R</kbd>).
1. Add a raster layer by navigating to the `Data Source Manager` by going to `Layer` >> `Add Layer` >> `Add Raster Layer...` (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>R</kbd>).
![](img/qgis_data_source_manager.png)
2. Make sure the `Source type` radio button is selected to be `File`.
3. Click the `...` to navigate to the raster image *Solano_2l20l20_index_ndre.tif* in the downloaded "Drone-Data-in_Agricultural-Research-data" folder and open it.
3. Click the `...` to navigate to the raster image *Solano_2l20l20_index_ndre.tif* in the downloaded *Drone-Data-in_Agricultural-Research-data/example_data* folder and open it.
4. Choose `Add` to add the image to the project.
5. Close the `Data Source Manager` after the image has successfully been added to the project.

Expand Down Expand Up @@ -75,7 +75,7 @@ A raster is data stored as individual pixels and displayed as an image. Most of
+ Try coloring this layer just as the main layer was colored in the layer properties.
+ Another way is to change the range of values and/or"Clip out of range values" in the layer properties.
+ Open the "Solano_2l20l20_index_ndre" layer properties.
+ Change the `Min` and `Max` to only include values in the area of interest. (`Min` = 0.3, `Max` = 0.7 for this image)
+ Change the `Min` and `Max` to only include values in the area of interest. (`Min` = 0.35, `Max` = 0.65 for this image)
+ Press `Apply` to preview.
+ To remove the areas out of the chosen range, scroll and check `Clip out of range values`
+ Press `OK`
Expand Down
44 changes: 22 additions & 22 deletions 02-multispectral-data-extraction.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,32 @@ This lesson builds on the content and setup done in [Multispectral Data Visualiz
> * Edit the features and data of a shapefile layer
> * Use a shapefile layer to extract data from a raster image
## Create a shapefile layer (low throughput method)

## 1. Create a new shapefile layer
A shapefile layer (in this case) will be a set of polygons that define the area of interest.

1. Create a new shapefile layer
+ To create a new shapefile layer navigate to `Layer` >> `Create Layer` >> `New Shapefile Layer...`
+ Name and save the file
+ Select `Polygon` for the geometry type
+ Set the coordinate reference system (CRS) to match the CRS of the multispectral image
+ Click `OK` to save the blank shapefile
![](/img/create-shape-file.png)
1. To create a new shapefile layer navigate to `Layer` >> `Create Layer` >> `New Shapefile Layer...`
2. Name and save the file
3. Select `Polygon` for the geometry type
4. Set the coordinate reference system (CRS) to match the CRS of the multispectral image
5. Click `OK` to save the blank shapefile
![](/img/create-shape-file.png)

> ### Check-in
>
> The coordinate reference system (CRS) of the image and the shapefile must match not only for accuracy but also to be able to perform functions such as extracting data. To check the CRS of the raster layer right click on the raster layer *Solano_2l20l20_index_ndre* and navigate to `Properties...`. In the `Image Properties` window under the `Information` tab look for CRS (it should be 3rd from the top). The EPSG number displayed is a unique number for each CRS. in the case of the *Solano_2l20l20_index_ndre* layer the CRS is EPSG:32610 - WGS 84 / UTM zone 10N - Projected". A UTM projection has a unit of meters. This is also shown in the layer information.
> The coordinate reference system (CRS) of the image and the shapefile must match not only for accuracy but also to be able to perform functions such as extracting data. To check the CRS of the raster layer right click on the raster layer *Solano_2l20l20_index_ndre* and navigate to `Properties...`. In the `Image Properties` window under the `Information` tab look for CRS (it should be 3rd from the top). The EPSG number displayed is a unique number for each CRS. in the case of the *Solano_2l20l20_index_ndre* layer the CRS is *EPSG:32610 - WGS 84 / UTM zone 10N - Projected*. A UTM projection has a unit of meters. This is also shown in the layer information.
>
> ![](/img/crs-check-in.png)
2. Create features in the shapefile
+ Toggle editing on by right clicking the shapefile layer then selecting the yellow pencil
![](/img/toggle-editing.png)
+ Add a feature by clicking "Add Polygon Feature" in the `Digitizing Toolbar` (<kbd>Ctrl</kbd> + <kbd>.</kbd>)
![](/img/add-polygon-feature.png)
+ Using the courser draw the outline of the area of interest. Each left click creates a node of a polygon and a right click closes the polygon.
+ Set the ID of the polygon by entering an integer into the pop-up window when prompted.
+ Repeat for each area of interest.
+ End the edit session by again clicking the `Toggle editing` button (yellow pencil)
+ Save the edits when prompted.
## 2. Create a feature in the shapefile

1. Toggle editing on by right clicking the shapefile layer then selecting the yellow pencil
![](/img/toggle-editing.png)
2. Add a feature by clicking `Add Polygon Feature` in the `Digitizing Toolbar` (<kbd>Ctrl</kbd> + <kbd>.</kbd>)
![](/img/add-polygon-feature.png)
3. Using the courser draw the outline of the area of interest. Each left click creates a node of a polygon and a right click closes the polygon.
4. Set the ID of the polygon by entering an integer into the pop-up window when prompted.
5. End the edit session by again clicking the `Toggle editing` button (yellow pencil)
6. Save the edits when prompted.

> ### Check-in
>
Expand All @@ -47,9 +45,11 @@ A shapefile layer (in this case) will be a set of polygons that define the area
> ![](/img/shapefile_creation-check-in.png)

3. Edit the shapefile
## 3. Edit the shapefile

1.

4. Add metadata to the shapefile
## 4. Add metadata to the shapefile

+ Add plot level metadata into the `Attribute Table`
+ Toggle editing on for the shapefile that was just created.
Expand Down
Binary file modified example_data/low_throughput_shapefile.dbf
Binary file not shown.
Binary file modified example_data/low_throughput_shapefile.shp
Binary file not shown.
Binary file modified example_data/low_throughput_shapefile.shx
Binary file not shown.
Binary file modified img/create-shape-file.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/crs-check-in.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c54b10c

Please sign in to comment.