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)
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.
In a distant universe, 500 milliseconds ago, you embarked on a mission of temporal exploration and spatial pattern analysis. Your task is to map and visualize the occurrences of emergencies in the City of Seattle within your selected timeframe from the year 2020. You will learn to use Time Manager, a plugin for QGIS, so you may conduct spatial analysis at any point in time. Your analyses will be an option of the following: weekly, bi-weekly, or monthly emergency calls. The analyses you will conduct are
 
   
   
Line 7: Line 7:
   
 
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.
 
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.
 
===Introduction to Earth Quakes in the US from 1973 to 1997===
 
 
   
   
Line 28: Line 25:
 
* 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]]
  +
* You should End up with an Attribute Table that looks like this.
*
 
  +
[[File: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===
===Importing a Single Dataset to Time Manager===
 
   
 
* Follow the following steps look at the image for reference
 
* Follow the following steps look at the image for reference
  +
* 1: Enter the Earthquake Layer Properties
* 1: Press Plugin and ensure that visibility is enabled for the Time Manager plugin
 
* 2: The Manager should now be visible at the bottom of the page, press on the settings button
+
* 2: Proceed to the Temporal tab on the left had side
* 3: Press on add layer on the popup menu
+
* 3: Check the box beside the Dynamic Temporal Control
  +
[[File:Temporal Properties.jpg]]
* 4: Make sure the layer is "2020 Emergency Calls Seattle" and the start time is set to "date_datet" and press "Ok" to finish
 
  +
* 4: For the purpose of this exercise we will be using the Configuration: Single Field with Date/Time.
*[[File:How to get time Manager.png]]
 
  +
* 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:UX.png|center]]
 
  +
[[File:TempProp_Fixed.png]]
  +
[[File:TempProp_TwoFields.png]]
  +
[[File:TempProp_TwoFields_for_end.png]]
  +
[[File:TempProp_Expression.png]]
  +
[[File:TempProp_Redraw.png]]
  +
  +
* 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
  +
  +
   
  +
==Using the Temporal Controller to Animate Time Series==
::[[File:TM3.png|center]]
 
  +
* 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]]
  +
* 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==
==Visualizing the Distribution of the Type of Emergency==
 
  +
* In the Temporal Controller tab there is a save icon, press this to open the Export Map Animation
* Right click on seattle.shp, click "properties" from the drop down menu.
 
  +
* Enter an appropriate title and select a folder location of your choosing
* Browse to the "Style" tab.
 
  +
* 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
* Change symbology from "Single Symbol" to "Categorized"
 
  +
* Do not change any Temporal Settings, they carry over from what you currently have
* Choose "Type" as the column.
 
  +
* Press the Save button at the bottom to export the images for each Step
* Pick a gradient color ramp.
 
  +
[[File:Temporal_Export.png]]
* Click on the "Classify" button.
 
  +
* 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]]
  +
* 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]]
  +
* Simply press the Make a GIF! button and it will automatically download your GIF on your computer
   
 
==Conclusion==
 
==Conclusion==
   
At this point in time, you have learned to utilize the following to conduct :
+
At this point in time, you have learned to:
 
* Visualize data with Time Manager
 
* Visualize data with Time Manager
 
* Animate/Simulate with Time Manager
 
* Animate/Simulate with Time Manager

Revision as of 23:57, 28 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 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.


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

  • Proceed to [1] 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 download and save the zip file in an appropriate location


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

File:TempProp Fixed.png File:TempProp TwoFields.png File:TempProp TwoFields for end.png File:TempProp Expression.png File:TempProp Redraw.png

  • 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


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

File:Temporal Controller.png

  • 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

File:Temporal Export.png

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

File:GIF editor.png

  • 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

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

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

[3] [4]