fix variable typo
authorEthan Nelson <ethan-nelson@users.noreply.github.com>
Sun, 9 Oct 2016 19:01:41 +0000 (14:01 -0500)
committerGitHub <noreply@github.com>
Sun, 9 Oct 2016 19:01:41 +0000 (14:01 -0500)
gpcp_tools.py

index 2de9bab..fb0ace7 100644 (file)
@@ -49,7 +49,7 @@ def read_monthly_data(file_dir, years):
             read_data = f.read(read_size)
 
             data_unpack = struct.unpack(structure, read_data)
-            data_unpack = np.reshape(data_unp,[72,144])
+            data_unpack = np.reshape(data_unpack, [72,144])
             data[i,m,:,:] = data_unpack
 
     return data