Skip to content

Commit

Permalink
03 small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Taylor Nelsen committed Jun 23, 2020
1 parent 7046012 commit a519ec7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion 02-multispectral-data-extraction.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Zonal statics is like using the shapefile just created as a cookie cutter for th
![](img/zonal-statistic-data.png)
10. The attribute table should contain values for each of the polygons created and each statistic that was checked in the `Zonal Statistics` tool.

## 6. Export the extracted data as a csv file
## 6. Export as a csv file

1. Right click the shapefile use to extract the data in the `Zonal Statistics` tool
2. Navigate to `Export` >> `Save Feature As…`
Expand Down
13 changes: 8 additions & 5 deletions 03-high-throughput-data-extraction.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Often in a research setting there are many uniform experimental units that are b
## 0. R packages

For this section to work, make sure you have the geosphere, rgdal, raster, and rgeos packages installed in R.
+ For ease of access, open the *package_install.R* file in the "Drone-Data-in_Agricultural-Research-data" folder
+ For ease of access, open the *package_install.R* file in the *Drone-Data-in_Agricultural-Research-data/R-scripts* folder
+ Run the entire script by pressing the run button at the top (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Enter</kbd>)

*Note that if you have run R in QGIS before you will have to update the packages in QGIS as well as R when there are new versions of the packages.*
Expand All @@ -23,7 +23,9 @@ For this section to work, make sure you have the geosphere, rgdal, raster, and r
For a refresher see [Adding Raster Layers in Multispectral Data Visualization](01-multispectral-data-visualization.md#2-adding-raster-layers)
2. Zoom to the newly added layer.

## 2. Create a shapefile to set the origin points of your trial. This is used to calculate the angle the field is at the distance the plots are from each other.
## 2. Create a shapefile to set the origin points of your trial.

This is used to calculate the angle the field is at the distance the plots are from each other.

1. Create a new layer by choosing: `Layer` >> `Create Layer` >> `New Shapefile Layer…`
2. lick `...` to name and save the file to a folder
Expand Down Expand Up @@ -68,13 +70,14 @@ For a refresher see [Adding Raster Layers in Multispectral Data Visualization](0
+ A row is defined as where the planter drives down while a range is perpendicular to the row.
5. Set the width and length of the plots in feet. If no width and/or length is entered the default is 60% of the distance between plots.
6. The default is for rectangular plots but if you want circular plots uncheck the check-box next to rectangular
7.Click `Run`
7. Click `Run`
![](img/small-plot-extraction.png)
8. Close the window when the algorithm is finished processing.

> ### Check-in
>
> The shapefile output should look something like the image below.
> ![](img/small-plot-extraction.png)
> ![](img/small-plot-output.png)
## 8. Save the shapefile

Expand All @@ -94,7 +97,7 @@ For step-by-step instructions on the `Zonal Statistics` tool see [Zonal Statisti

## 11. Export the data as a CSV.

For detailed instructions on how to export a shapefile with data to a csv file see [Export the extracted data as a csv file in Multispectral Data Extraction](02-multispectral-data-extraction.md#6-export-the-extracted-data-as-csv-file)
For detailed instructions on how to export a shapefile with data to a csv file see [Export as a csv file in Multispectral Data Extraction](02-multispectral-data-extraction.md#6-export-as-csv-file)

This is the end of the lessons so far! Please reach out if you have questions, comments or suggestions.

Expand Down
Binary file added img/small-plot-output.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 a519ec7

Please sign in to comment.