Open the directory in PyCharm. You will see a Python file named hurricane_tracker.py. In this file you will fill in the code to use the turtle module to create an animation of a hurricane's path. In the file are 3 functions, graphical_setup, track_storm, and main. You are NOT allowed to modify the graphical_setup function. You may modify the other functions and may create and use your own additional functions (although creating additional functions is NOT required).
In the graphical_setup, the following are done for you:
Creating the screen and turtle
The turtle's shape is changed to that of a hurricane
Loading a background image of the Atlantic
Setting the world coordinates of the screen to match the latitude and longitude on the map
In the starter zip file there is a directory named data that contains CSV files for each storm in the 2017 hurricane season along with the data for Hurricane Ian (2022). This data was scraped from [login to view URL],
last access 9/14/2017. Each file contains data about the storm bearing its name so, for example, [login to view URL] contains the data for Hurricane Irma. Each line contains 6 columns separated by commas (thus the .csv file extension). The file can be opened directly in PyCharm or opened in Excel for a columnar view. The first line of the file describes what each column is. Here are the first 3 lines of the [login to view URL] file, separated into their columns:
Date Time Lat Lon Wind Pressure
30-Aug 15:00 GMT 16.4 -30.3 50 1004
30-Aug 21:00 GMT 16.4 -31.2 60 1001
The only columns relevant to your code are Lat (the latitude), Lon (the longitude), and Wind (the wind speed in miles per hour).
Using the data in the CSV file corresponding with the storm entered by the user, your track_storm function must show the hurricane's path. Your solution must include the following:
Prompt the user for the name of a storm. If the user doesn't enter a storm for which there is a csv data file, then the program must print an error message and exit. Ideally, your program should be doing this by comparing the storm name to the list of files. Some things in Python that may be helpful: glob Links to an external site., and [login to view URL] Links to an external site.. Also note that if you need to get the path separator (on Windows it is \ while Mac and Linux use /) you can import the os module and use [login to view URL] to get the correct path separator based on the platform the program is running.
Correctly show each point in the data file (together with lines between each point)
At each point, you must display what category the storm is, if it has hurricane strength winds, otherwise, draw no text.
Color code the hurricane strength:
Red for Category 5
Orange for Category 4
Yellow for Category 3
Green for Category 2
Blue for Category 1
White if not hurricane strength
The thickness (width) of the line should change in proportion to the hurricane category.
Category 5 - width 15
Category 4 - width 11
Category 3 - width 7
Category 2 - width 3
Category 1 - width 2
if not hurricane strength - width 1
27 freelanceria on tarjonnut keskimäärin $159 tähän työhön
⭐Python Developer ⭐ I have many experience of developing python project including app and web. I am very familiar with turtle. Looking forward to hearing from you. Thank you.
Hi, we have developed more projects using MATLAB and python turtle, Expert in script. if you need any query related to this project , kindly contact through chat, thank you.
Greetings ! I read your project details carefully. Surely, I can do this job perfectly. I can share my recent turtle work in detail via chat. Best Regards