Difference between revisions of "Visualizing Multi-Temporal Data with Temporal Controller"

From CUOSGwiki
Jump to navigationJump to search
(Chaging intro and step for new tools)
m (Images Size change)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Introduction==
 
==Introduction==
   
This is a short tutorial on how to operate the Temporal Controller tool in QGIS for the sake of visualizing multi-temporal data. You will learn how to use the Temporal Controller by going through this tutorial on using the tool through a short exercise. In this exercise you will be visualizing the magnitude of Earthquakes in and around the USA to show each year from 1973 to 1997. You will learn of the different types of selections that you can make with the Temporal Controller and how to adjust your time series animation. At the end you will be able to export your time series images and can create a GIF animation for your presentation.
+
This is a short tutorial on how to operate the Temporal Controller tool in QGIS for the sake of visualizing multi-temporal data. You will learn how to use the Temporal Controller by going through this tutorial on using the tool through a short exercise. In this exercise you will be visualizing the magnitude of Earthquakes in and around the USA to show each year from 1973 to 1998. You will learn of the different types of selections that you can make with the Temporal Controller and how to adjust your time series animation. At the end you will be able to export your time series images and can create a GIF animation for your presentation.
   
   
Line 13: Line 13:
 
<br/>
 
<br/>
 
*[https://qgis.org/en/site/forusers/download.html QGIS (3.32 was the latest stable release when this document was last updated)]
 
*[https://qgis.org/en/site/forusers/download.html QGIS (3.32 was the latest stable release when this document was last updated)]
  +
   
 
==Getting the data==
 
==Getting the data==
 
===Getting Earthquake and Landmass data===
 
===Getting Earthquake and Landmass data===
* Proceed to [https://www.qgistutorials.com/downloads/ne_10m_land.zip] which includes a zip containing continental landmass shapefile and [freegistutorial.com/wp-content/uploads/2018/10/quake_mi.zip] that contains the USA Earthquake data.
+
* Press this link [https://www.qgistutorials.com/downloads/ne_10m_land.zip] to download a zip containing continental landmass shapefile and [https://freegistutorial.com/download-u-s-earthquake-point-shapefiles/#google_vignette] that will bring you to a website with the USA Earthquake data.
* Press download and save the zip file in an appropriate location
+
* Once downloaded and save and un-zip the files in an appropriate location on your computer
   
   
Line 24: Line 25:
 
* Once you have imported the two shapefiles into your QGIS project you need to make sure that your shapefile has the proper reference Field within it's attribute table.
 
* Once you have imported the two shapefiles into your QGIS project you need to make sure that your shapefile has the proper reference Field within it's attribute table.
 
* You need a "Date" type field with whatever time unit you are going to be using. For this tutorial you must create a new field called "Dateofocc" and use the "to_date" expression to fill in the Field
 
* You need a "Date" type field with whatever time unit you are going to be using. For this tutorial you must create a new field called "Dateofocc" and use the "to_date" expression to fill in the Field
[[File:Field Calculator.jpg]]
+
[[File:Field Calculator.jpg|1000px]]
  +
<br/>
 
* You should End up with an Attribute Table that looks like this.
 
* You should End up with an Attribute Table that looks like this.
 
[[File:Attribute File.jpg]]
 
[[File:Attribute File.jpg]]
Line 40: Line 42:
 
* 4: For the purpose of this exercise we will be using the Configuration: Single Field with Date/Time.
 
* 4: For the purpose of this exercise we will be using the Configuration: Single Field with Date/Time.
 
* There are 5 other configuration that can be used seen below : Fixed Time Range, Separate Fields for Start and End Date/Time, Separate Fields for Start and Event Duration, Start and End Date/Time from Expressions, Redraw Layer Only
 
* There are 5 other configuration that can be used seen below : Fixed Time Range, Separate Fields for Start and End Date/Time, Separate Fields for Start and Event Duration, Start and End Date/Time from Expressions, Redraw Layer Only
[[File:TempProp_Fixed.png]]
+
[[File:TempProp_Fixed.jpeg|800px]]
[[File:TempProp_TwoFields.png]]
+
[[File:TempProp_TwoFields.jpeg|800px]]
[[File:TempProp_TwoFields_for_end.png]]
+
[[File:TempProp_TwoFields_for_end.jpeg|800px]]
[[File:TempProp_Expression.png]]
+
[[File:TempProp_Expression.jpeg|800px]]
[[File:TempProp_Redraw.png]]
+
[[File:TempProp_Redraw.jpeg|800px]]
   
 
* 5: Make sure your Limit is set to the default Include Start, Exclude End
 
* 5: Make sure your Limit is set to the default Include Start, Exclude End
Line 50: Line 52:
 
* 7: Leave the Event duration at 0 (This can be used if you are looking at similar events with longer or more varied durations)
 
* 7: Leave the Event duration at 0 (This can be used if you are looking at similar events with longer or more varied durations)
 
* 8: Leave the Accumulate Features over Time box empty for this exercise (If you are looking to visualize and accumulation of events then check this box)
 
* 8: Leave the Accumulate Features over Time box empty for this exercise (If you are looking to visualize and accumulation of events then check this box)
* 9: Finally press Apply and close the Properties tab
+
* 9: Finally press Apply and close the Properties tab. There should now be a clock symbol beside the earthquake layer in the Layers manager tab on the left
   
   
Line 56: Line 58:
 
==Using the Temporal Controller to Animate Time Series==
 
==Using the Temporal Controller to Animate Time Series==
 
* In the second menu bar at the top of the screen there should be a Clock image, Press on that image and the Temporal Controller tool will appear
 
* In the second menu bar at the top of the screen there should be a Clock image, Press on that image and the Temporal Controller tool will appear
[[File:Temporal Controller.png]]
+
[[File:Temporal Controller.jpeg]]
 
* For this exercise set the Animation Range from "1973-01-03 00:00:00" to "1998-12-31 23:59:59" (There is a Set to full range button beside if you need the entire date range)
 
* For this exercise set the Animation Range from "1973-01-03 00:00:00" to "1998-12-31 23:59:59" (There is a Set to full range button beside if you need the entire date range)
 
* Set the Step to 1 year (You have the option of setting the step from milliseconds to centuries or timestamps if you have them, as well as the option to loop the animation)
 
* Set the Step to 1 year (You have the option of setting the step from milliseconds to centuries or timestamps if you have them, as well as the option to loop the animation)
 
* Then simply press the play button to run the animation
 
* Then simply press the play button to run the animation
  +
   
 
==Exporting Images and Creating GIF==
 
==Exporting Images and Creating GIF==
Line 67: Line 70:
 
* Do not change any Temporal Settings, they carry over from what you currently have
 
* Do not change any Temporal Settings, they carry over from what you currently have
 
* Press the Save button at the bottom to export the images for each Step
 
* Press the Save button at the bottom to export the images for each Step
[[File:Temporal_Export.png]]
+
[[File:Temporal_Export.jpeg]]
 
* To create a GIF you can use a GIF creating program or you can go to this website [https://ezgif.com/maker] and upload all the images that you have exported
 
* To create a GIF you can use a GIF creating program or you can go to this website [https://ezgif.com/maker] and upload all the images that you have exported
[[File:GIF_editor.png]]
+
[[File:GIF_editor.jpeg]]
 
* You can adjust the setting of the GIF however you want, for this exercise you can just use the default values
 
* You can adjust the setting of the GIF however you want, for this exercise you can just use the default values
[[File:GIF_settings.png]]
+
[[File:GIF_settings.jpeg]]
 
* Simply press the Make a GIF! button and it will automatically download your GIF on your computer
 
* Simply press the Make a GIF! button and it will automatically download your GIF on your computer
  +
[[File:GIF_Earthquakes.gif]]
   
 
==Conclusion==
 
==Conclusion==
Line 86: Line 90:
   
 
==References==
 
==References==
  +
[https://www.qgistutorials.com/downloads/ne_10m_land.zip]
 
[https://freegistutorial.com/download-u-s-earthquake-point-shapefiles/#google_vignette]
 
[https://freegistutorial.com/download-u-s-earthquake-point-shapefiles/#google_vignette]
 
[https://www.qgistutorials.com/en/docs/3/animating_time_series.html]
 
[https://www.qgistutorials.com/en/docs/3/animating_time_series.html]
  +
[https://ezgif.com/maker]

Latest revision as of 18:37, 29 September 2023

Introduction

This is a short tutorial on how to operate the Temporal Controller tool in QGIS for the sake of visualizing multi-temporal data. You will learn how to use the Temporal Controller by going through this tutorial on using the tool through a short exercise. In this exercise you will be visualizing the magnitude of Earthquakes in and around the USA to show each year from 1973 to 1998. You will learn of the different types of selections that you can make with the Temporal Controller and how to adjust your time series animation. At the end you will be able to export your time series images and can create a GIF animation for your presentation.


Introduction to Temporal Controller

Temporal Controller is a built in plugin of QGIS that allows for surfing through temporal geospatial data. It allows for temporal visualization of layers in QGIS. The Temporal Controller was incorporated into QGIS from version 3.14 onward. If you have an older version of QGIS refer to Visualizing Multi-Temporal Data with Time Manager for it's plugin tutorial.


Requirements

Windows/Macintosh/Linux Compatible


Getting the data

Getting Earthquake and Landmass data

  • Press this link [1] to download a zip containing continental landmass shapefile and [2] that will bring you to a website with the USA Earthquake data.
  • Once downloaded and save and un-zip the files in an appropriate location on your computer


Temporal Controller

Data Maintenance

  • Once you have imported the two shapefiles into your QGIS project you need to make sure that your shapefile has the proper reference Field within it's attribute table.
  • You need a "Date" type field with whatever time unit you are going to be using. For this tutorial you must create a new field called "Dateofocc" and use the "to_date" expression to fill in the Field

Field Calculator.jpg

  • You should End up with an Attribute Table that looks like this.

Attribute File.jpg

  • For the purpose of this exercise you can change the symbology to anything you would like as long as you can see a difference in the magnitudes of the earthquakes.


Activating Temporal Controller

  • Follow the following steps look at the image for reference
  • 1: Enter the Earthquake Layer Properties
  • 2: Proceed to the Temporal tab on the left had side
  • 3: Check the box beside the Dynamic Temporal Control

Temporal Properties.jpg

  • 4: For the purpose of this exercise we will be using the Configuration: Single Field with Date/Time.
  • There are 5 other configuration that can be used seen below : Fixed Time Range, Separate Fields for Start and End Date/Time, Separate Fields for Start and Event Duration, Start and End Date/Time from Expressions, Redraw Layer Only

TempProp Fixed.jpeg TempProp TwoFields.jpeg TempProp TwoFields for end.jpeg TempProp Expression.jpeg TempProp Redraw.jpeg

  • 5: Make sure your Limit is set to the default Include Start, Exclude End
  • 6: Set the Field to the proper Dateofocc attribute field
  • 7: Leave the Event duration at 0 (This can be used if you are looking at similar events with longer or more varied durations)
  • 8: Leave the Accumulate Features over Time box empty for this exercise (If you are looking to visualize and accumulation of events then check this box)
  • 9: Finally press Apply and close the Properties tab. There should now be a clock symbol beside the earthquake layer in the Layers manager tab on the left


Using the Temporal Controller to Animate Time Series

  • In the second menu bar at the top of the screen there should be a Clock image, Press on that image and the Temporal Controller tool will appear

Temporal Controller.jpeg

  • For this exercise set the Animation Range from "1973-01-03 00:00:00" to "1998-12-31 23:59:59" (There is a Set to full range button beside if you need the entire date range)
  • Set the Step to 1 year (You have the option of setting the step from milliseconds to centuries or timestamps if you have them, as well as the option to loop the animation)
  • Then simply press the play button to run the animation


Exporting Images and Creating GIF

  • In the Temporal Controller tab there is a save icon, press this to open the Export Map Animation
  • Enter an appropriate title and select a folder location of your choosing
  • Set the proper extent that you want to use. For this exercise choose and extent that shows the whole world to showcase every Earthquake point
  • Do not change any Temporal Settings, they carry over from what you currently have
  • Press the Save button at the bottom to export the images for each Step

Temporal Export.jpeg

  • To create a GIF you can use a GIF creating program or you can go to this website [3] and upload all the images that you have exported

GIF editor.jpeg

  • You can adjust the setting of the GIF however you want, for this exercise you can just use the default values

GIF settings.jpeg

  • Simply press the Make a GIF! button and it will automatically download your GIF on your computer

GIF Earthquakes.gif

Conclusion

At this point in time, you have learned to:

  • Visualize data with Time Manager
  • Animate/Simulate with Time Manager
  • Export Images from the Animation
  • Create GIF's from the exported images


Feel free to share your results in this wiki and/or make this tutorial more effective.


References

[4] [5] [6] [7]