climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From good...@apache.org
Subject svn commit: r1506747 - /incubator/climate/branches/RefactorInput/rcmet/src/main/python/rcmes/toolkit/do_data_prep.py
Date Wed, 24 Jul 2013 22:09:27 GMT
Author: goodale
Date: Wed Jul 24 22:09:26 2013
New Revision: 1506747

URL: http://svn.apache.org/r1506747
Log:
Fixed docstring to reflect the code's actual order of operations

Modified:
    incubator/climate/branches/RefactorInput/rcmet/src/main/python/rcmes/toolkit/do_data_prep.py

Modified: incubator/climate/branches/RefactorInput/rcmet/src/main/python/rcmes/toolkit/do_data_prep.py
URL: http://svn.apache.org/viewvc/incubator/climate/branches/RefactorInput/rcmet/src/main/python/rcmes/toolkit/do_data_prep.py?rev=1506747&r1=1506746&r2=1506747&view=diff
==============================================================================
--- incubator/climate/branches/RefactorInput/rcmet/src/main/python/rcmes/toolkit/do_data_prep.py
(original)
+++ incubator/climate/branches/RefactorInput/rcmet/src/main/python/rcmes/toolkit/do_data_prep.py
Wed Jul 24 22:09:26 2013
@@ -76,8 +76,8 @@ def prep_data(settings, obsDatasetList, 
      Processes both single and multiple files of obs and mdl or combinations in a general
way.
            i)    retrieve observations from the database
            ii)   load in model data
-           iii)  temporal regridding
-           iv)   spatial regridding
+           iii)  spatial regridding
+           iv)   temporal regridding
            v)    area-averaging
            Input:
                    cachedir 	- string describing directory path
@@ -205,6 +205,7 @@ def prep_data(settings, obsDatasetList, 
         
         print 'tmpOBS shape = ', tmpOBS.shape
         
+        # OBS SPATIAL REGRIDING 
         for t in np.arange(nstOBSs):
             tmpOBS[t, :, :] = process.do_regrid(oData[t, :, :], oLats, oLons, lats, lons)
             
@@ -214,7 +215,7 @@ def prep_data(settings, obsDatasetList, 
         oLats = 0.0
         oLons = 0.0       # release the memory occupied by the temporary variables oLats
and oLons.
         
-        # temporally regrid the spatially regridded obs data
+        # OBS TEMPORAL REGRIDING
         oData, newObsTimes = process.calc_average_on_new_time_unit_K(tmpOBS, oTimes, unit=timeRegridOption)
 
         tmpOBS = 0.0



Mime
View raw message