ATMS 391: Advanced Geophysical Data Analysis
Homework 6: matplotlib
and basemap
Problem 1
(a) From the data in Homework 5 (gistemp1200_ERSSTv4.nc
), use contour
to plot a global map of the the temperature anomalies for the year you were born (make an annual average for the calendar year). Make sure that the contours are labeled and the title indicates the month you are plotting. Use a colorbar that goes from cool colors for lower than average temperature anomalies and warm colors for above average temperature anomalies.
(b) Repeat (a) using pcolormesh
. Include a colorbar.
Problem 2
From the data in Week 6, exercise 2, make a map of the Convective Available Potential Energy from the GFS 24 hour forecast valid at 00 Z on the 27th of September over the Tropics (-20S to 20N, all longitudes). Choose a colormap we haven't used yet and you like. Use contourf
to contour the data from 0 to 2500 J/kg. Specify a contour interval. Make sure the plot is labeled with the forecast hour and the field plotted.