Seems like this should be a file that is added to an .svn ignore (for Apache) and we manage CORDEX configs in the JPL repo. That is unless we had some sample config that worked with sample data checked in or this was part of some tutorial.
That said I may have missed the larger context here. --Paul On 10/30/13 12:36 PM, "Michael Joyce" <[email protected]> wrote: >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.cf >>g >> >> >>incubator/climate/trunk/rcmet/src/main/python/rcmes/services/decode_model >>_times.py >> >> >>incubator/climate/trunk/rcmet/src/main/python/rcmes/toolkit/metrics_kyo.p >>y >> >> Modified: >> >>incubator/climate/trunk/rcmet/src/main/python/rcmes/resources/cordexAF.cf >>g >> URL: >> >>http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/pytho >>n/rcmes/resources/cordexAF.cfg?rev=1537149&r1=1537148&r2=1537149&view=dif >>f >> >> >>========================================================================= >>===== >> --- >> >>incubator/climate/trunk/rcmet/src/main/python/rcmes/resources/cordexAF.cf >>g >> (original) >> +++ >> >>incubator/climate/trunk/rcmet/src/main/python/rcmes/resources/cordexAF.cf >>g >> 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/pytho >>n/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.p >>y >> URL: >> >>http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/pytho >>n/rcmes/toolkit/metrics_kyo.py?rev=1537149&r1=1537148&r2=1537149&view=dif >>f >> >> >>========================================================================= >>===== >> --- >> >>incubator/climate/trunk/rcmet/src/main/python/rcmes/toolkit/metrics_kyo.p >>y >> (original) >> +++ >> >>incubator/climate/trunk/rcmet/src/main/python/rcmes/toolkit/metrics_kyo.p >>y >> 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') >> >> >>
