updated subset after CLIMATE-718 is merged
Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/39202dc4 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/39202dc4 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/39202dc4 Branch: refs/heads/master Commit: 39202dc49f434f062d40e7a09c655161405036d1 Parents: cee5b62 Author: huikyole <[email protected]> Authored: Fri Jan 15 16:53:48 2016 -0800 Committer: huikyole <[email protected]> Committed: Fri Jan 15 16:53:48 2016 -0800 ---------------------------------------------------------------------- ocw-cli/cli_app.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/39202dc4/ocw-cli/cli_app.py ---------------------------------------------------------------------- diff --git a/ocw-cli/cli_app.py b/ocw-cli/cli_app.py index 76ca391..60f5219 100644 --- a/ocw-cli/cli_app.py +++ b/ocw-cli/cli_app.py @@ -602,10 +602,7 @@ def run_screen(model_datasets, models_info, observations_info, if each_target_dataset.lats.ndim !=2 and each_target_dataset.lons.ndim !=2: new_model_datasets[member] = dsp.subset(EVAL_BOUNDS, new_model_datasets[member]) else: - timeStart = min(np.nonzero(each_target_dataset.times >= EVAL_BOUNDS.start)[0]) - timeEnd = max(np.nonzero(each_target_dataset.times <= EVAL_BOUNDS.end)[0]) - new_model_datasets[member].times = each_target_dataset.times[timeStart:timeEnd+1] - new_model_datasets[member].values = each_target_dataset.values[timeStart:timeEnd+1,:] + new_model_datasets[member] = dsp.temporal_slice(EVAL_BOUNDS.start, EVAL_BOUNDS.end, each_target_dataset) screen.addstr(5, 4, "--> Temporally regridded.") screen.refresh()
