From b09d0e21dc30058526aa96fbb8699b3af82fd916 Mon Sep 17 00:00:00 2001 From: AF1111 Date: Fri, 28 Feb 2020 10:23:03 -0500 Subject: [PATCH] fixing indices for new configs Former-commit-id: 822cb4de6e5182203b8af6c483992e75f33e0f56 --- models/examples/gfdl_cm3/src/climate_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/examples/gfdl_cm3/src/climate_model.py b/models/examples/gfdl_cm3/src/climate_model.py index 8d32274..8cacc78 100644 --- a/models/examples/gfdl_cm3/src/climate_model.py +++ b/models/examples/gfdl_cm3/src/climate_model.py @@ -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