You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by hu...@apache.org on 2015/08/01 00:37:34 UTC
[3/5] climate git commit: get_temporal_overlap related to CLIMATE-646
has been removed
get_temporal_overlap related to CLIMATE-646 has been removed
Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/28fc6713
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/28fc6713
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/28fc6713
Branch: refs/heads/master
Commit: 28fc6713dd461e1db5bff52aeacc884f913e76cf
Parents: d41cb79
Author: huikyole <hu...@argo.jpl.nasa.gov>
Authored: Tue Jul 28 17:12:26 2015 -0700
Committer: huikyole <hu...@argo.jpl.nasa.gov>
Committed: Tue Jul 28 17:12:26 2015 -0700
----------------------------------------------------------------------
ocw/dataset_processor.py | 14 --------------
1 file changed, 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/climate/blob/28fc6713/ocw/dataset_processor.py
----------------------------------------------------------------------
diff --git a/ocw/dataset_processor.py b/ocw/dataset_processor.py
index a0169a7..bf0c08d 100755
--- a/ocw/dataset_processor.py
+++ b/ocw/dataset_processor.py
@@ -141,20 +141,6 @@ def temporal_rebin(target_dataset, temporal_resolution):
return new_dataset
-def get_temporal_overlap(dataset_array):
- ''' Find the maximum temporal overlap across the observation and model datasets
-
- :param dataset_array: an array of OCW datasets
- '''
- start_time =[]
- end_time =[]
- for dataset in dataset_array:
- start_time.append(dataset.time_range()[0])
- end_time.append(dataset.time_range()[1])
-
- return np.max(start_time), np.min(end_time)
-
-
def spatial_regrid(target_dataset, new_latitudes, new_longitudes):
""" Regrid a Dataset using the new latitudes and longitudes