Kyo, Please fix the paths that are specific to your computer in the config file. Specifically:
workDir=/Users/huikyole/work/RCMES/cases/cordex-af cacheDir=/Users/huikyole/work/RCMES/cache filenamePattern=/Users/huikyole/data/cordex-af/*pr.nc need to be changed. In the future, using svn commit -m "your message" /path/to/file1 path/to/file2 instead of svn commit -m "your message" will help you avoid committing changes on accident. Thanks! -- Joyce On Wed, Oct 30, 2013 at 9:03 AM, <[email protected]> wrote: > Author: huikyole > Date: Wed Oct 30 16:03:27 2013 > New Revision: 1537149 > > URL: http://svn.apache.org/r1537149 > Log: > minor fixes to handle CMIP5 model outputs.Committing this without Review > process due to the upcoming CORDEX 2013 meeting > > Modified: > > incubator/climate/trunk/rcmet/src/main/python/rcmes/resources/cordexAF.cfg > > incubator/climate/trunk/rcmet/src/main/python/rcmes/services/decode_model_times.py > > incubator/climate/trunk/rcmet/src/main/python/rcmes/toolkit/metrics_kyo.py > > Modified: > incubator/climate/trunk/rcmet/src/main/python/rcmes/resources/cordexAF.cfg > URL: > http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/python/rcmes/resources/cordexAF.cfg?rev=1537149&r1=1537148&r2=1537149&view=diff > > ============================================================================== > --- > incubator/climate/trunk/rcmet/src/main/python/rcmes/resources/cordexAF.cfg > (original) > +++ > incubator/climate/trunk/rcmet/src/main/python/rcmes/resources/cordexAF.cfg > Wed Oct 30 16:03:27 2013 > @@ -1,5 +1,5 @@ > [SETTINGS] > -workDir=/Users/huikyole/work/RCMES/cases/cordex-af > +workDir=/Users/huikyole/work/RCMES/work > cacheDir=/Users/huikyole/work/RCMES/cache > # Choices: full, annual, monthly, daily > temporalGrid=monthly > > Modified: > incubator/climate/trunk/rcmet/src/main/python/rcmes/services/decode_model_times.py > URL: > http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/python/rcmes/services/decode_model_times.py?rev=1537149&r1=1537148&r2=1537149&view=diff > > ============================================================================== > --- > incubator/climate/trunk/rcmet/src/main/python/rcmes/services/decode_model_times.py > (original) > +++ > incubator/climate/trunk/rcmet/src/main/python/rcmes/services/decode_model_times.py > Wed Oct 30 16:03:27 2013 > @@ -33,6 +33,14 @@ def decodeTimeFromString(time_string): > time_string = time_string.split('.')[0] + '0' if "." in time_string > else time_string > > try: > + mytime = time.strptime(time_string, '%Y-%m-%d') > + mytime = datetime.datetime(*mytime[0:6]) > + return mytime > + > + except ValueError: > + pass > + > + try: > mytime = time.strptime(time_string, '%Y-%m-%d %H:%M:%S') > mytime = datetime.datetime(*mytime[0:6]) > return mytime > > Modified: > incubator/climate/trunk/rcmet/src/main/python/rcmes/toolkit/metrics_kyo.py > URL: > http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/python/rcmes/toolkit/metrics_kyo.py?rev=1537149&r1=1537148&r2=1537149&view=diff > > ============================================================================== > --- > incubator/climate/trunk/rcmet/src/main/python/rcmes/toolkit/metrics_kyo.py > (original) > +++ > incubator/climate/trunk/rcmet/src/main/python/rcmes/toolkit/metrics_kyo.py > Wed Oct 30 16:03:27 2013 > @@ -635,11 +635,11 @@ def calculate_metrics_and_make_plots(var > obsData[0, :, :, :] = obsData[0, :, :, :] - 273.15 > if subRegions: > obsRgn[0, :, :] = obsRgn[0, :, :] - 273.15 > - if varName == 'prec': > - obsData[0, :, :, :] = obsData[0, :, :, :]*86400. > + if varName == 'prec' and obsData.max() > mdlData.max()*1000.: > + mdlData[:, :, :, :] = mdlData[:, :, :, :]*86400. > if subRegions: > - obsRgn[0, :, :] = obsRgn[0, :, :]*86400. > - ### > + mdlRgn[:, :, :] = mdlRgn[:, :, :]*86400. > + > oTser, oClim = calcClimYear( obsData[0, :, :, :]) > bias_of_overall_average = ma.zeros([nmodel, ny, nx]) > spatial_stdev_ratio = np.zeros([nmodel]) > @@ -662,7 +662,7 @@ def calculate_metrics_and_make_plots(var > # X X > # X > # > - fig_return = plotter.draw_contour_map(bias_of_overall_average, lats, > lons, workdir+'/bias_of_climatology_'+varName, fmt='png', gridshape=(4, 2), > + fig_return = plotter.draw_contour_map(bias_of_overall_average, lats, > lons, workdir+'/bias_of_climatology_'+varName, fmt='png', gridshape=(6, 2), > clabel='', ptitle='', subtitles=mdlList, cmap=None, > clevs=None, nlevs=10, parallels=None, meridians=None, > extend='neither') > > >
