Difference between revisions of "Visualizing Multi-Temporal Data with Time Manager"

From CUOSGwiki
Jump to navigationJump to search
Line 1: Line 1:
 
==Introduction==
 
==Introduction==
   
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:
+
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
::1. "points in polygon" to probe the amount of incidents in a given neighbourhood
 
::2. "near neighbourhood analysis" to gauge the average of the distance between incidents
 
::3. "basic statistics" such as the mean, median, min, max and the range of incidents in a given time.
 
   
   
===Introduction to Time Manager===
+
===Introduction to Temporal Controller===
   
Time Manager is a plugin of QGIS that allows for surfing through temporal geospatial data. It allows for visualization and spatial analysis simultaneously.
+
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 there is a plugin that you must Install and Enable that has similar capabilities.
  +
  +
===Introduction to Earth Quakes in the US from 1973 to 1997===
   
===Introduction to City of Seattle Real-Time 911 Emergency Calls===
 
As per the title, the data you will be using are close to real time, as they are updated every 10 minutes; they comprise all the emergency calls made to the city's various emergency departments and were taken from the 01-01-2020 to 06-10-2020.
 
   
===Estimated Time to Complete===
 
20 minutes at minimum and 40 to 60 minutes at maximum (dependent on your hardware, software, internet connection/speed and distractions).
 
   
 
==Requirements==
 
==Requirements==
 
Windows/Macintosh/Linux Compatible
 
Windows/Macintosh/Linux Compatible
 
<br/>
 
<br/>
*[https://qgis.org/en/site/forusers/download.html QGIS (3.10 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)]
 
==Installing Time Manager==
 
===Installing Plugin===
 
* Click "Plugins" a drop down menu should show up
 
* Click "Manage and Install Plugins..." a menu should pop up
 
* Click "Install from zip"
 
* Download zip plugin from [https://plugins.qgis.org/plugins/timemanager/ here]
 
* Click "Install Plugin" and wait for confirmation of install.
 
* Click "Close" to exit.
 
 
===Enabling Plugin===
 
* Click "Plugins" on the toolbar. A drop down menu will appear.
 
* Click "Manage and Install Plugins..."
 
* Search "TimeManager"
 
* Enable "TimeManager"
 
* Click "OK" to exit.
 
   
 
==Getting the data==
 
==Getting the data==
===Getting emergency calls data===
+
===Getting Earthquake and Landmass data===
* Proceed to [https://github.com/YussufY/SeattleCalls/blob/main/2020%20Emergency%20Calls.zip this Github link] which includes a zip containing all 911 calls for the first 10 months of 2020 in Seattle
+
* 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 download and save the zip file in an appropriate location
 
* Press download and save the zip file in an appropriate location
   
===Getting Seattle neighbourhood data===
 
* Proceed to [https://data-seattlecitygis.opendata.arcgis.com/datasets/city-clerk-neighborhoods?geometry=-122.588%2C47.477%2C-121.994%2C47.558 the Seattle geoData website] and download the City Clerk neighbourhood Shapefile
 
* Save the file in the same location as the emergency calls file
 
   
==Importing Data==
+
==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 refference column within it's attribute table.
===Importing a Vector Polyline/Polygon to QGIS===
 
  +
*
 
  +
*
* Start QGIS and click "Layer" on the toolbar A dropdown menu will appear.
 
  +
*
* Click "Add Vector Layer".
 
* Browse to the location of the files that you downloaded and select the "2020 Emergency Calls Seattle.shp" and press add
 
* Repeat the same step for the "City_Clerk_Neighborhoods.shp" to add it
 
* Ensure that they are in your Layers subsection on the main page of QGIS
 
 
==Time Manager==
 
=== Enabling User Interface===
 
* Time Manager should appear under "Plugins" drop down menu.
 
* If not, right click on the toolbar, drop down menu will appear; scroll down to Time Manager and check.
 
* Time Manger should now be at the bottom of your screen.
 
   
 
===Importing a Single Dataset to Time Manager===
 
===Importing a Single Dataset to Time Manager===
Line 82: Line 49:
 
* Pick a gradient color ramp.
 
* Pick a gradient color ramp.
 
* Click on the "Classify" button.
 
* Click on the "Classify" button.
 
===Result: Categorized Symbology===
 
 
==Points in Polygon Spatial Analysis==
 
 
* Click "Vector" on the toolbar. A drop down menu will appear.
 
* Click "Analysis" from the drop down menu. Another drop down menu will appear.
 
* Click "Points in Polygon"
 
* Choose "Neighbourhoods.shp" as the input polygon vector layer.
 
* Choose "Seattle.shp" as the input point vector layer.
 
* Choose a output shapefile name, for this tutorial I chose "area.shp".
 
* Click "OK" to process.
 
* Click "Close" afterwards to exit.
 
 
===Results:Bi-Weekly===
 
*[[File:OCT1&22.PNG]]
 
*[[File:OCT3&445.PNG]]
 
*[[File:NOV1&22.PNG]]
 
*[[File:NOV3&44.PNG]]
 
 
===Results:Monthly===
 
:[[File:OCT20122.PNG]]
 
:[[File:NOV20122.PNG]]
 
 
==Visualization==
 
* [https://gfycat.com/inexperienceduniformambushbug Here is an example of the location of day to day 911 Emergency Calls]
 
   
 
==Conclusion==
 
==Conclusion==
   
At this point in time, you have learned to utilize the following to conduct spatial pattern analysis:
+
At this point in time, you have learned to utilize the following to conduct :
* Time Manager plugin for QGIS
 
 
* Visualize data with Time Manager
 
* Visualize data with Time Manager
 
* Animate/Simulate with Time Manager
 
* Animate/Simulate with Time Manager
  +
* Export Images from the Animation
* Point in Polygon Analysis
 
  +
* Create GIF's from the exported images
* Nearest Neighbour Analysis
 
* Basic Statistics such as min, max, median and range.
 
 
<br/>
 
<br/>
 
Feel free to share your results in this wiki and/or make this tutorial more effective.
 
Feel free to share your results in this wiki and/or make this tutorial more effective.
   
==User Guides==
 
[http://manual.linfiniti.com/en/foreword/index.html QGIS]
 
   
 
==References==
 
==References==
  +
[https://freegistutorial.com/download-u-s-earthquake-point-shapefiles/#google_vignette]
[http://planet.qgis.org/planet/user/4/tag/time%20manager/ Time Manager How-to]
 
  +
[https://www.qgistutorials.com/en/docs/3/animating_time_series.html]

Revision as of 10:43, 20 September 2023

Introduction

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


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 there is a plugin that you must Install and Enable that has similar capabilities.

Introduction to Earth Quakes in the US from 1973 to 1997

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 refference column within it's attribute table.

Importing a Single Dataset to Time Manager

  • Follow the following steps look at the image for reference
  • 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
  • 3: Press on add layer on the popup menu
  • 4: Make sure the layer is "2020 Emergency Calls Seattle" and the start time is set to "date_datet" and press "Ok" to finish
  • How to get time Manager.png
UX.png
TM3.png

Visualizing the Distribution of the Type of Emergency

  • Right click on seattle.shp, click "properties" from the drop down menu.
  • Browse to the "Style" tab.
  • Change symbology from "Single Symbol" to "Categorized"
  • Choose "Type" as the column.
  • Pick a gradient color ramp.
  • Click on the "Classify" button.

Conclusion

At this point in time, you have learned to utilize the following to conduct :

  • 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

[2] [3]