Allow acronyms for CORDEX domains
Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/eacee1f5 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/eacee1f5 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/eacee1f5 Branch: refs/heads/master Commit: eacee1f5a2569a191d4961621d37281ccdf06017 Parents: 3e66d94 Author: Alex <ago...@users.noreply.github.com> Authored: Tue Sep 26 16:19:39 2017 -0700 Committer: Alex <ago...@users.noreply.github.com> Committed: Tue Sep 26 16:19:39 2017 -0700 ---------------------------------------------------------------------- RCMES/run_RCMES.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/eacee1f5/RCMES/run_RCMES.py ---------------------------------------------------------------------- diff --git a/RCMES/run_RCMES.py b/RCMES/run_RCMES.py index ba8ef2a..f729f98 100644 --- a/RCMES/run_RCMES.py +++ b/RCMES/run_RCMES.py @@ -79,7 +79,10 @@ if not 'boundary_type' in space_info: min_lon = space_info['min_lon'] max_lon = space_info['max_lon'] else: - min_lat, max_lat, min_lon, max_lon = utils.CORDEX_boundary(space_info['boundary_type'][6:].replace(" ","").lower()) + domain = space_info['boundary_type'] + if domain.startswith('CORDEX '): + domain = domain.replace('CORDEX ', '').lower() + 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,