You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by bo...@apache.org on 2013/08/09 17:53:45 UTC
svn commit: r1512356 -
/incubator/climate/branches/RefactorInput/ocw/data_source/local.py
Author: boustani
Date: Fri Aug 9 15:53:45 2013
New Revision: 1512356
URL: http://svn.apache.org/r1512356
Log:
no need for time_step variable for get_time_base function
Modified:
incubator/climate/branches/RefactorInput/ocw/data_source/local.py
Modified: incubator/climate/branches/RefactorInput/ocw/data_source/local.py
URL: http://svn.apache.org/viewvc/incubator/climate/branches/RefactorInput/ocw/data_source/local.py?rev=1512356&r1=1512355&r2=1512356&view=diff
==============================================================================
--- incubator/climate/branches/RefactorInput/ocw/data_source/local.py (original)
+++ incubator/climate/branches/RefactorInput/ocw/data_source/local.py Fri Aug 9 15:53:45 2013
@@ -25,11 +25,9 @@ import calendar
import string
-def get_time_base(time_step, time_format, since_index):
+def get_time_base(time_format, since_index):
'''Calculate time base from time data.
- :param time_step: NetCDF time base
- :type netcdf: String
:param time_format: Unit of time in netCDF
:type time_format: String
:param since_index: Index of word since in time unit
@@ -106,7 +104,7 @@ def calculate_time(netcdf, time_raw_valu
time_values = []
time_step, time_format, since_index = get_time_step(netcdf, time_variable_name)
- time_base = get_time_base(time_step, time_format, since_index)
+ time_base = get_time_base(time_format, since_index)
time_step = time_step.lower()
if 'min' in time_step: