Created
February 10, 2012 17:40
-
-
Save robinkraft/1791165 to your computer and use it in GitHub Desktop.
Load PRECL data, print min, max, sample vals
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
for i in range(2000, 2013): | |
rain = np.fromfile("precl_mon_v1.0.lnx.%i.gri0.5m" % i, dtype="f", count=-1) | |
print "year:", i | |
print "max:", rain.max() | |
print "min:", rain.min() | |
print "first 100:", rain[:100] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment