Repository: climate Updated Branches: refs/heads/master f24ed17ad -> 67189a7d6
CLIMATE-719 - Subsetting model data on curvillinear grids in the configuration file runner - run_RCMES.py is using ocw.dataset_processor.temporal_slice to slice temporal boundaries in model datasets on curvillinear grids Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/a1c36275 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/a1c36275 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/a1c36275 Branch: refs/heads/master Commit: a1c36275a9e4de8fe4e6dea03643afaffb985321 Parents: bb415ad Author: huikyole <[email protected]> Authored: Fri Jan 15 17:15:11 2016 -0800 Committer: huikyole <[email protected]> Committed: Fri Jan 15 17:15:11 2016 -0800 ---------------------------------------------------------------------- examples/configuration_file_examples/run_RCMES.py | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/a1c36275/examples/configuration_file_examples/run_RCMES.py ---------------------------------------------------------------------- diff --git a/examples/configuration_file_examples/run_RCMES.py b/examples/configuration_file_examples/run_RCMES.py index fdf179b..1054446 100644 --- a/examples/configuration_file_examples/run_RCMES.py +++ b/examples/configuration_file_examples/run_RCMES.py @@ -108,9 +108,13 @@ bounds = Bounds(min_lat, max_lat, min_lon, max_lon, start_time, end_time) if ref_dataset.lats.ndim !=2 and ref_dataset.lons.ndim !=2: ref_dataset = dsp.subset(bounds,ref_dataset) +else: + ref_dataset = dsp.temporal_slice(bounds.start, bounds.end, ref_dataset) for idata,dataset in enumerate(model_datasets): if dataset.lats.ndim !=2 and dataset.lons.ndim !=2: model_datasets[idata] = dsp.subset(bounds,dataset) + else: + model_datasets[idata] = dsp.temporal_slice(bounds.start, bounds.end, dataset) # Temporaly subset both observation and model datasets for the user specified season month_start = time_info['month_start']
