climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From huiky...@apache.org
Subject [1/3] climate git commit: CLIMATE-918 - Revise LAT_NAMES and LON_NAMES
Date Wed, 21 Jun 2017 18:53:07 GMT
Repository: climate
Updated Branches:
  refs/heads/master cb93fce5b -> ec3fdb4f7


CLIMATE-918 - Revise LAT_NAMES and LON_NAMES

- LAT_NAMES and LON_NAMES in ocw.data_source.local have been revised to prevent loading wrong
variables for longitudes and latitudes when using OCW loaders


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

Branch: refs/heads/master
Commit: 8b2f8160185afb1b70dd57a18aed95a790b1a4fa
Parents: cb93fce
Author: huikyole <huikyole@argo.jpl.nasa.gov>
Authored: Tue Jun 20 21:33:37 2017 -0700
Committer: huikyole <huikyole@argo.jpl.nasa.gov>
Committed: Tue Jun 20 21:33:37 2017 -0700

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


http://git-wip-us.apache.org/repos/asf/climate/blob/8b2f8160/ocw/data_source/local.py
----------------------------------------------------------------------
diff --git a/ocw/data_source/local.py b/ocw/data_source/local.py
index adc89b6..0c5c07e 100644
--- a/ocw/data_source/local.py
+++ b/ocw/data_source/local.py
@@ -31,8 +31,8 @@ import h5py
 import numpy
 import numpy.ma as ma
 
-LAT_NAMES = [b'y', b'rlat', b'rlats', b'lat', b'lats', b'latitude', b'latitudes']
-LON_NAMES = [b'x', b'rlon', b'rlons', b'lon', b'lons', b'longitude', b'longitudes']
+LAT_NAMES = [b'lat', b'lats', b'latitude', b'latitudes']
+LON_NAMES = [b'lon', b'lons', b'longitude', b'longitudes']
 TIME_NAMES = [b'time', b'times', b'date', b'dates', b'julian']
 
 


Mime
View raw message