Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6AFF0200D35 for ; Mon, 23 Oct 2017 18:59:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 698951609DF; Mon, 23 Oct 2017 16:59:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AECDF1609E0 for ; Mon, 23 Oct 2017 18:59:39 +0200 (CEST) Received: (qmail 34795 invoked by uid 500); 23 Oct 2017 16:59:38 -0000 Mailing-List: contact commits-help@climate.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@climate.apache.org Delivered-To: mailing list commits@climate.apache.org Received: (qmail 34775 invoked by uid 99); 23 Oct 2017 16:59:38 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Oct 2017 16:59:38 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8C3BADFBC8; Mon, 23 Oct 2017 16:59:38 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: huikyole@apache.org To: commits@climate.apache.org Date: Mon, 23 Oct 2017 16:59:38 -0000 Message-Id: <1da1b74b1b4a4de1b4c17ea651b2bdf6@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] climate git commit: CLIMATE-932 - A whitespace error in running the CORDEX script archived-at: Mon, 23 Oct 2017 16:59:40 -0000 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 Authored: Sun Oct 22 19:34:40 2017 -0700 Committer: huikyole 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,