Repository: climate
Updated Branches:
  refs/heads/master f21be5f65 -> b0a2158a4


CLIMATE-504, OCW cli cannot get observation spatial resolution

Line 608 and 609 of OCW cli have wrong calling of dictionary to get the 
observation spatial resolution.
The right way is to get values of keys of 'lat_res' and 'lon_res'.


Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/440f39be
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/440f39be
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/440f39be

Branch: refs/heads/master
Commit: 440f39be385aef7882bd107154be9c2c6de6c1c9
Parents: e1a67b7
Author: Maziyar Boustani <[email protected]>
Authored: Thu Aug 7 11:02:21 2014 -0700
Committer: Maziyar Boustani <[email protected]>
Committed: Thu Aug 7 11:02:21 2014 -0700

----------------------------------------------------------------------
 ocw-cli/ocw_cli.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/440f39be/ocw-cli/ocw_cli.py
----------------------------------------------------------------------
diff --git a/ocw-cli/ocw_cli.py b/ocw-cli/ocw_cli.py
index a2de5cd..81d8190 100644
--- a/ocw-cli/ocw_cli.py
+++ b/ocw-cli/ocw_cli.py
@@ -605,8 +605,8 @@ def settings_screen(header):
      obs_temp_res = observations_info[0]['timestep']        #just accepts one 
obs at this time
      model_lat_res = model_datasets[0].spatial_resolution()[0] #just accepts 
one model at this time
      model_lon_res = model_datasets[0].spatial_resolution()[1]  #just accepts 
one model at this time
-     obs_lat_res = observations_info[0].observations_info['lat_res']     #just 
accepts one obs at this time
-     obs_lon_res = observations_info[0].observations_info['lon_res']    #just 
accepts one obs at this time
+     obs_lat_res = observations_info[0]['lat_res']     #just accepts one obs 
at this time
+     obs_lon_res = observations_info[0]['lon_res']    #just accepts one obs at 
this time
 
      temp_grid_option = "Observation"
      temp_grid_setting = obs_temp_res

Reply via email to