... | ... | @@ -36,7 +36,7 @@ grid = "/home/marie/LPJmL/lpjmlinput_resolution5/MarocN.grid.5200p_h43.bin" |
|
|
bincowreg = np.zeros((ncell,nband)) #[5200 2]
|
|
|
for i in range (0,ncell,1):
|
|
|
for j in range (0,nband,1): #band 0= country, 1= region
|
|
|
byte = struct.unpack('h',file.read(2))[0]
|
|
|
byte = struct.unpack('h',file.read(2))[0]* scalar
|
|
|
bincowreg[i,j] = byte
|
|
|
file.close()
|
|
|
|
... | ... | |