diff --git a/RCMES/run_RCMES.py b/RCMES/run_RCMES.py index f9ec2c37..3c7291e4 100644 --- a/RCMES/run_RCMES.py +++ b/RCMES/run_RCMES.py @@ -90,11 +90,12 @@ def load_datasets_from_config(extra_opts, *loader_opts): 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,