For this assignment, you will be working with data from NASA’s Open Data Portal about all known
Due Wednesday by 11:59pm Points 10 Submitting a file upload File Types py
For this assignment, you will be working with data from NASA’s Open Data Portal about all known meteoritelandings. (Source: Meteorite Landings | NASA Open Data Portal.
The csv (comma-separated values) file of data you’ll be using is Meteorite_Landings.csv . It contains data of all known meteorite landings. I’ve slimmed down the data sothere are only a few pieces of data for each meteorite: its name, its mass (rounded to the nearest gram), and its location in (latitude, longitude).
The focus of the programming assignment is to practice reading from and writing to files, processing data,and working with data structures (lists and dictionaries). You will use Python to help process information in alarge pool of data, and use string methods to process data stored from files.
You have two weeks to complete this assignment. Please do not wait to start the assignment – you have more time to complete this assignment because it will take more time than most programming assignments.
Below is an example of what the shell should look like when you run your program. Note that the text in black is what the user typed in on their keyboard.
Welcome to the Meteorite Landings Database!
Enter 1 to look up information on a meteorite by name.
Enter 2 to create a new csv file that contains all meteorites greater than a specified mass.
Enter 0 to exit.
What would you like to do? 1
Please enter the name of the meteorite you’d like to look up: Aachen
The meteorite named Aachen weighed 21 grams and was found at latitude 50.775 and longitude 6.08333
Enter 1 to look up information on a meteorite by name.
Enter 2 to create a new csv file that contains all meteorites greater than a specified mass.
Enter 0 to exit.
What would you like to do? 1
Please enter the name of the meteorite you’d like to look up: Northwest 470
ERROR: no meteorite data found
Please enter the name of the meteorite you’d like to look up: Northwest Africa 470
The meteorite named Northwest Africa 470 weighed 63 grams and was found at latitude 31.98333 and longitude -4.186
67Enter 1 to look up information on a meteorite by name.
Enter 2 to create a new csv file that contains all meteorites greater than a specified mass.
Enter 0 to exit.
What would you like to do? 1
Please enter the name of the meteorite you’d like to look up: Osterplana
The meteorite named Osterplana weighed -1 grams and was found at latitude 58.58333 and longitude 13.43333
Enter 1 to look up information on a meteorite by name.
Enter 2 to create a new csv file that contains all meteorites greater than a specified mass.
What would you like to do? 2
Please enter a mass: 15000000
File 15000000.csv has been created.
Enter 1 to look up information on a meteorite by name.
Enter 2 to create a new csv file that contains all meteorites greater than a specified mass.
Enter 0 to exit.
What would you like to do? 2
Please enter a mass: 25000000
File 25000000.csv has been created.
Enter 1 to look up information on a meteorite by name.
Enter 2 to create a new csv file that contains all meteorites greater than a specified mass.
Enter 0 to exit.Meteorite Data Processing代写
What would you like to do? 0
Armanty
Bacubirito
Campo del Cielo
Canyon Diablo
Cape York
Chupaderos
Gibeon
Hoba
Mbosi
Mundrabilla
Sikhote-Alin
Willamette
And the 25000000.csv file should look like this:
Armanty
Campo del Cielo
Canyon Diablo
Cape York
Gibeon
Hoba
I recommend you run your code with other various inputs to check to make sure your code is working correctly. Confirm that your program gives expected results.
All data needed for the assignment is in the Meteorite_Landings.csv file. Please download this file and save itinto the same folder where you will save your .py file containing your Python code. You do not need to turn inthe .csv file. When I test your code, I will have the same exact csv file on my computer. Please make sureyour code works with a file named exactly Meteorite_Landings.csv. If your code tries to open a file named Meteorite_Landings(2).csv, for example, it will fail the test cases.
The file has over thirty thousand lines, so it will take a while to open. (You should open the file forviewing by using a simple text editor like Notepad instead of a spreadsheet program like Excel.)
name,mass (g),GeoLocation
Aachen,21,”(50.775000, 6.083330)”
Aarhus,720,”(56.183330, 10.233330)”
Abee,107000,”(54.216670, -113.000000)”
Acapulco,1914,”(16.883330, -99.900000)”
Achiras,780,”(-33.166670, -64.950000)”
Adhi Kot,4239,”(32.100000, 71.800000)”
Adzhi-Bogdo (stone),910,”(44.833330, 95.166670)”