// Put your names here!
The file datafile_1.csv
contains a three-dimensional dataset and associated uncertainty in the data. Read the data file into numpy arrays and visualize it using two new types of plots:
Hints:
skiprows
, comments
, and unpack
do?ax.view_init(elev=ANGLE1,azim=ANGLE2)
, where ANGLE1 and ANGLE2 are in degrees.
In [ ]:
# put your code here, and add additional cells as necessary.
Now, we're going to experiment with data exploration. You have two data files to examine:
GLB.Ts.csv
, which contains mean global air temperature from 1880 through the present day (retrieved from the NASA GISS surface temperature website, "Global-mean monthly, seasonal, and annual means, 1880-present"). Each row in the data file contains the year, monthly global average, yearly global average, and seasonal global average. See this file for clues as to what the columns mean.bintanja2008.txt
, which is a reconstruction of the global surface temperature, deep-sea temperature, ice volume, and relative sea level for the last 3 million years. This data comes from the National Oceanic and Atmospheric Administration's National Climatic Data Center website, and can be found here.Some important notes:
GLB.Ts.csv
, the temperature units are in 0.01 degrees Celsius difference from the reference period 1950-1980 - in other words, the number 40 corresponds to a difference of +0.4 degrees C compared to the average temperature between 1950 and 1980. (This means you'll have to renormalize your values by a factor of 100.)bintanja2008.txt
, column 9, "Global sea level relative to present," is in confusing units - more positive values actually correspond to lower sea levels than less positive values. You may want to multiply column 9 by -1 in order to get more sensible values.There are many possible ways to examine this data. First, read both data files into numpy arrays - it's fine to load them into a single combined multi-dimensional array if you want, or split the data into multiple arrays. We'll then try a few things:
GLB.Ts.csv
(say, the average temperature smoothed over 10 years), how might you characterize the yearly variability? Try plotting the smoothed value along with the raw data and show how they differ.bintanja2008.txt
- try plotting multiple variables as a function of time together using the pyplot subplot functionality (and some more complicated subplot examples for further help). Do they seem to be related in some way? (Hint: plot surface temperature, deep sea temperature, ice volume, and sea level, and zoom in from 3 Myr to ~100,000 years)bintanja2008.txt
versus each other (i.e., surface temperature vs. ice volume or sea level) - do you see correlations?
In [ ]:
# put your code here, and add additional cells as necessary.
In the cell below, describe some of the conclusions that you've drawn from the data you have just explored!
// put your thoughts here.
// put your answers here!