Lab: Converting Files
For this assignee, you'll download a read USGS Earthquake file from the Web and write the Python code to perform a series of conversions on the data. I highly recommend you take the following steps to complete the assignment:
- Make a copy of the Python script that we did in lab and use it for your final assignment.
- Comment out the call to the "ComputerDateToNiceDate()" function.
- Setup your main while loop to read the file and make sure it is working correctly.
- Extract the column data that you want to have in your output file and write it to a new file
- Test the file in ArcMap to make sure it can be displayed.
- I recommend doing this periodically as you make changes.
- Remember to check your file in NotePad if ArcMap will not load it.
- Finish the ComputerDateToNiceDate() function and add the nice date to a column in your output file
- Create a function to convert the DD latitude and longitude to a nice looking DMS format.
- You can use the "hexadecimal" degree symbol "\xB0" to put a degree symbol into your DMS formated coordinate values. These should appear correct in ArcMap as labels and in the attribute table.
- Create a function to reformat the magnitude values and types to a readable format.