I usually forget how much Numpy makes life easy :
Say, you have a 101 element array, e.g.:
import numpy as np a = np.linspace(0,100,101)
and you want to take every 4th item in that array, that’s as easy as :
print a[::4]
will output:
array([0., 4., ... , 96., 100.])
I love Numpy !
Also cool:
a[::-1]
Everything backwards! (Sometimes useful for GIS data, basemap transformations.)
I like your basemap tutorials, but can’t find anything earlier than number 4, where are they? 😉