Learning Objectives
- Start a new project in QGIS
- Add a raster layer from a file
- Color a raster by its values
- Know best practices for image display and communication
- Export a styled raster image
Project
tab select New
to create a new project (Ctrl + N)Project
tab select Save As...
(Ctrl + Shift + S) to save the project. It is a good idea to regularly save projects while working on them (Ctrl + S).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.
Data Source Manager
by going to Layer
» Add Layer
» Add Raster Layer...
(Ctrl + Shift + R).
Source type
radio button is selected to be File
....
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.Add
to add the image to the project.Data Source Manager
after the image has successfully been added to the project.Check-in
At this point the Solano_2l20l20_index_ndre.tif image should appear on the in both the
Layers Panel
and in the project window. The image will be greyscale by default. See below.
Layers
panel and choose Properties
.
Symbology
tab (should open by default), under Render type
choose Singleband pseudocolor
Interpolation
drop-down to Linear
Mode
is Continuous
since this data is continuous - there are no groups or factors.Apply
to get a preview of your image.OK
when you are done.Check-in
At this point the raster should be colored (as below). Looking at this raster, what things should we improve on before finalizing it?
View
» Preview Mode
Simulate Colorblindness
of multiple types as well as greyscale photocopies.Clip Raster by Extent
tool though Raster
» Extraction
» Clip Raster by Extent...
(you can also navigate to the Clip Raster by Extent
tool through the Processing Toolbox
)...
and choosing Draw on Canvas
Run
Clip Raster by Extent
tool after the algorithm has finished.Min
and Max
to only include values in the area of interest. (Min
= 0.35, Max
= 0.65 for this image)Apply
to preview.Clip out of range values
OK
Check-in
At this point the raster should be colored (as below). Looking at this raster, what things should we improve on before finalizing it?
Project
» Import/Export
» Export Map to Image
Append georeference information
Copy to Clipboard
to simply copy the image.Project
» New Print Layout...
(Ctrl + P)Add Item
» Add Map
Zoom to Layer
. Then in the print compose under item properties press Set Map Extent to Match Main Canvas Extent
Add Item
drop down.Layout
the map can be exported as wither an image Export as Image...
or a PDF Export as PDF...
Now you are ready to move on to Multispectral Data Extraction (Low throughput)!