Skip to content

Instantly share code, notes, and snippets.

@robinkraft
Created February 10, 2012 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robinkraft/1791165 to your computer and use it in GitHub Desktop.
Save robinkraft/1791165 to your computer and use it in GitHub Desktop.
Load PRECL data, print min, max, sample vals
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