fixing indices for new configs

Former-commit-id: 822cb4de6e5182203b8af6c483992e75f33e0f56
This commit is contained in:
AF1111
2020-02-28 10:23:03 -05:00
parent 9fb4bab657
commit b09d0e21dc

View File

@@ -20,14 +20,14 @@ def temp_inc(init_data, year):
# convert to format that plays nice with mongodb; only get U.S squares
single_year_US[i] = {}
for j in json1_data[i]:
mean_glob_temps.append(json1_data[i][j][year][3])
mean_glob_temps.append(json1_data[i][j][year][2])
# contiguous United States boundaries
if 49 >= float(i) >= 23 and -68 >= float(j) >= -128:
single_year_US[i][j] = (
json1_data[i][j][year][0],
json1_data[i][j][year][1],
json1_data[i][j][year][3] - 273.15,
json1_data[i][j][year][2] - 273.15,
)
# apply weights to get global average temperature