Repository: climate Updated Branches: refs/heads/master 58d6cdf16 -> 14b98e98a
CLIMATE-932 - A whitespace error in running the CORDEX script - RCMES/run_RCMES.py has been fixed Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/e7d99b6c Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/e7d99b6c Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/e7d99b6c Branch: refs/heads/master Commit: e7d99b6ccf00b2f406a3b93217f8512c3dfe2184 Parents: 58d6cdf Author: huikyole <huiky...@argo.jpl.nasa.gov> Authored: Sun Oct 22 19:34:40 2017 -0700 Committer: huikyole <huiky...@argo.jpl.nasa.gov> Committed: Sun Oct 22 19:34:40 2017 -0700 ---------------------------------------------------------------------- RCMES/run_RCMES.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/e7d99b6c/RCMES/run_RCMES.py ---------------------------------------------------------------------- diff --git a/RCMES/run_RCMES.py b/RCMES/run_RCMES.py index f9ec2c3..3c7291e 100644 --- a/RCMES/run_RCMES.py +++ b/RCMES/run_RCMES.py @@ -90,11 +90,12 @@ if not 'boundary_type' in space_info: max_lon = space_info['max_lon'] else: domain = space_info['boundary_type'] - if domain.startswith('CORDEX '): + if 'CORDEX' in domain: domain = domain.replace('CORDEX', '').lower() - domain = domain.replace(' ', '') + domain = domain.strip() min_lat, max_lat, min_lon, max_lon = utils.CORDEX_boundary(domain) + # Additional arguments for the DatasetLoader extra_opts = {'min_lat': min_lat, 'max_lat': max_lat, 'min_lon': min_lon, 'max_lon': max_lon, 'start_time': start_time,