You are on page 1of 4
4:58 ze) < Assignment 12 is due Course ANA-1001 - 70005 - Programming for Analytics - > 202207 - 001 Description Complete this assignment and submit your .py file(s) or zip file- no other file format will be accepted. Your submission must include your name and assignment information. Your submission must be your original and unique work. See the example template from assignment 1. You are free to use this or create your own, but make sure to include your name and the assignment number. For this week, you will answer the following questions and include the answers in .py file(s) Each answer must have a short explanation in the comments (using #) - see grading below. Share your replit link and zip file with your code 1. Pick two places and download temperature data from any weather API and save the timestamp. Create a dictionary using the following format temps = {"time”:[],"place1":[],"place2”:[]} and save this data to a json file called temps.json. In order to match up, you will need to write the time, then the two temps, and repeat. Log enough data that you are able to do an analysis over time (perhaps a few minutes of data should work). Read the JSON file and create a graph with labels showing both sets of temperature data (y axis) and time series (x axis), make sure to include labels for the chart, x and y axis. Report all temps in C. Optionally you may do this question with slightly 4:58 er. < Assignment 12 is due imi ee i ec ie axis. Report all temps in C. Optionally you may do this question with slightly different values: You may opt to do air quality data at two locations, or two stock market prices over the course of a short time period. You may also try other types of data, but please write a short description in your comments on what you are looking at. At the end, you should have a timeseries plot that shows two timeseries for two data sets that can be compared. TIPS: You may find it useful to write a function that gets data from an API at a given time, and returns the timestamp and data for that time. Then you can call this repeatedly in a loop, using something like time.sleep() to delay your API calls accordingly. 2. Generate a visualization using JSON data from an API of your choice (must be different from question 1) 3. Create a map chart using https://earthquake.usgs.gov/earthquakes/feed/v1.0/ geojson.php showing earthquakes in the past seven days for the magnitude level of your choice. See https://python-graph-gallery.com/bubble-map/ and https://python-graph-gallery.com/choropleth- map/ for ideas on how to visualize this type of data. 4. Using TXT file data from https://earthdata.nasa.gov/earth-observation- data/near-real-time/firms/active-fire-data create a map of global fires within the last seven days. See https://firms.modaps.eosdis.nasa.gov/active_fir e/#firms-txt and choose (and note in your file) which dataset you will be using. You can choose from various satellites (MODIS Ikm VIIRS 375m / S-NPP VIIRS 375m / NOAA-205) See https://firms.modaps.eosdis.nasa.gov/active_fir e/#firms-txt and look for World - 24hrs for the data set of your choice. If you have too much data to a er. < Assignment 12 is due from various satellites (MODIS Ikm_ VIIRS 375m / S-NPP_ VIIRS 375m / NOAA-205) See https://firms.modaps.eosdis.nasa.gov/active fir e/#firms-txt and look for World - 24hrs for the data set of your choice. If you have too much data to graph, graph a selection of the data over 1000 rows. Make sure your visualization is on a map. 5, Here are two airplane data programs: Airplane data frame generator: https://replit.com/@arobillard/YouthfulMicroClicks. Gets all the data from OpenSky and stores it in a pandas data frame for further use. Sidney's Airplane Finder from last term: https://repl.it/@SidneyShapiro/AcidicBuzzingMultipr ocessing. Locates flights above a given airport using the OpenSky API. Edit the program to save data of your choice. Using these programs as examples, make a program that creates one or more charts concerning data of your choice, and perform some analysis on the data. For example, you may want to see if there is a relation between the altitude of a plane and its velocity. You may opt to carry out additional analysis, such as a linear regression. Be sure to carefully label and document your code so that it is easy to understand what analysis you are doing and why. (Don't forget to nicely format your plots!) Reminders Default (1 hour before) 4:58 , Fe) < Inbox ANA1001-7000520... “~. V“ by Alexander Robillard - Tuesday, 11 October 2022, 3:47 PM Please note | have adjusted the content for assignment 12. If you completed the assignment already, your submissions will still be valid, as they still meet the criteria for the updated assignment. | have modified the first and last questions to make them more flexible for you. You now have more options for API calls for the first question, and you can also see a second example code that | have tested for the last question. Use the examples provided to make your life easier. | have extended the due date to next Monday, Oct 17th. See this post in context Change your forum digest preferences GB 5 a 4 > Re: EXL1002-70021202207: Quiz #2

You might also like