climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From huiky...@apache.org
Subject [3/4] climate git commit: CLIMATE-733 - Update run_RCMES.py
Date Sat, 30 Jan 2016 19:48:18 GMT
CLIMATE-733 - Update run_RCMES.py

- customized names for latitudes and longitudes are allowed.
- daily or hourly data stored on user's local machine can be used for model evaluation.


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

Branch: refs/heads/master
Commit: 0b1b93907157a5cb81ebb283015e021a8f2e1fe9
Parents: 5dc1c32
Author: huikyole <huikyole@argo.jpl.nasa.gov>
Authored: Sat Jan 30 11:38:33 2016 -0800
Committer: huikyole <huikyole@argo.jpl.nasa.gov>
Committed: Sat Jan 30 11:38:33 2016 -0800

----------------------------------------------------------------------
 RCMES/run_RCMES.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/0b1b9390/RCMES/run_RCMES.py
----------------------------------------------------------------------
diff --git a/RCMES/run_RCMES.py b/RCMES/run_RCMES.py
index 27a3e4b..c8affc3 100644
--- a/RCMES/run_RCMES.py
+++ b/RCMES/run_RCMES.py
@@ -61,9 +61,9 @@ max_lon = space_info['max_lon']
 ref_data_info = config['datasets']['reference']
 ref_lat_name = None
 ref_lon_name = None
-if ref_data_info['latitude_name'] in ref_data_info.keys():
+if 'latitude_name' in ref_data_info.keys():
     ref_lat_name = ref_data_info['latitude_name']
-if ref_data_info['longitude_name'] in ref_data_info.keys():
+if 'longitude_name' in ref_data_info.keys():
     ref_lon_name = ref_data_info['longitude_name']
 print 'Loading observation dataset:\n',ref_data_info
 ref_name = ref_data_info['data_name']
@@ -88,9 +88,9 @@ if 'multiplying_factor' in ref_data_info.keys():
 model_data_info = config['datasets']['targets']
 model_lat_name = None
 model_lon_name = None
-if model_data_info['latitude_name'] in model_data_info.keys():
+if 'latitude_name' in model_data_info.keys():
     model_lat_name = model_data_info['latitude_name']
-if model_data_info['longitude_name'] in model_data_info.keys():
+if 'longitude_name' in model_data_info.keys():
     model_lon_name = model_data_info['longitude_name']
 print 'Loading model datasets:\n',model_data_info
 if model_data_info['data_source'] == 'local':


Mime
View raw message