Recently I went out on site and collected two reasonably large data sets which could not be easily handled by proprietary software. This rather fundamental need to be able to actually use my survey data inspired me to have a go at the first ArchaeoPy challenge and to start to get to grips with the Python language. Having completed and uploaded some script, I was encouraged by Popefinn and Chrys Harris to share it with you in this post.
It has been a few weeks since we have posted our first geophysical challenge. We thought to create a tutorial post for the challenge to help you along! First things first, you will need to download the data for this challenge. Save this data to the same folder you will be saving your python challenge 1 script to. Now open Spyder. We have provided a step-by-step tutorial with information about each step, to help you along.
Following on from yesterday's Geolunch, here's the first Applied Geophysical ArchaeoPy challenge:
Load XYZ .CSV file and plot the data within python
You can do this in any way you want but some hints and tips are given below:
- Download the data from http://www.archaeopy.org/wp-content/uploads/2014/04/xyz.csv
- Numpy.loadtxt to load in a CSV file
- Matplotlib.mlab.griddata to grid the XYZ data
- Matplotlib.pyplot to plot the data
- If you get stuck, google is your friend!