Some linting and refactoring 1 Updated doc strings, removed print statements and updated documentation 2 Refactored checkCriteriaB to be generic function checkCriteria 3 Also fixed findPrecipRate
Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/93fbf756 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/93fbf756 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/93fbf756 Branch: refs/heads/master Commit: 93fbf7565a858526ea526bcc0579ed6cb9a72589 Parents: 96aad4b Author: kwhitehall <[email protected]> Authored: Sun Apr 13 08:55:11 2014 -0400 Committer: Lewis John McGibbney <[email protected]> Committed: Wed Oct 15 15:18:04 2014 -0700 ---------------------------------------------------------------------- mccsearch/README.docx | Bin 0 -> 195234 bytes mccsearch/code/mainProg.py | 19 +- mccsearch/code/mccSearch.py | 1833 +++++++++++--------------------------- 3 files changed, 531 insertions(+), 1321 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/93fbf756/mccsearch/README.docx ---------------------------------------------------------------------- diff --git a/mccsearch/README.docx b/mccsearch/README.docx new file mode 100644 index 0000000..a0a7d1e Binary files /dev/null and b/mccsearch/README.docx differ http://git-wip-us.apache.org/repos/asf/climate/blob/93fbf756/mccsearch/code/mainProg.py ---------------------------------------------------------------------- diff --git a/mccsearch/code/mainProg.py b/mccsearch/code/mainProg.py index 37e1cc8..90fb76d 100644 --- a/mccsearch/code/mainProg.py +++ b/mccsearch/code/mainProg.py @@ -26,7 +26,7 @@ def main(): allCETRMMList =[] subprocess.call('export DISPLAY=:0.0', shell=True) - mainDirStr= "/Users/kimwhitehall/Documents/HU/research/thesis/presentation/caseStudies/BFStudy" + mainDirStr= "/Users/kimwhitehall/Documents/HU/research/thesis/presentation/caseStudies/BFStudy1" #mainDirStr= "/home/whitehal/mccsearch/caseStudy2" #directories for the original data #TRMMdirName ="/home/whitehal/summer2006TRMM" @@ -55,15 +55,12 @@ def main(): mergImgs, timeList = mccSearch.readMergData(CEoriDirName) print ("-"*80) - print 'in main', len(mergImgs) - print 'timeList', timeList - print 'TRMMdirName ', TRMMdirName print "\n -------------- TESTING findCloudElements ----------" CEGraph = mccSearch.findCloudElements(mergImgs,timeList,TRMMdirName) #if the TRMMdirName isnt entered for what ever reason # CEGraph = mccSearch.findCloudElements(mergImgs,timeList) - # allCETRMMList=mccSearch.findPrecipRate(TRMMdirName) - # sys.exit() + # allCETRMMList=mccSearch.findPrecipRate(TRMMdirName,timeList) + #sys.exit() print ("-"*80) print "number of nodes in CEGraph is: ", CEGraph.number_of_nodes() print ("-"*80) @@ -95,11 +92,11 @@ def main(): print ("-"*80) #print "MCCTimes is: ", MCCTimes #mccSearch.plotAccTRMM(MCCList) - mccSearch.displayPrecip(MCCList) - mccSearch.plotAccuInTimeRange('2009-09-01_00:00:00', '2009-09-01_23:00:00') - mccSearch.displaySize(MCCList) - mccSearch.displayPrecip(MCCList) - mccSearch.plotHistograms(MCCList) + # mccSearch.displayPrecip(MCCList) + # mccSearch.plotAccuInTimeRange('2009-09-01_00:00:00', '2009-09-01_23:00:00') + # mccSearch.displaySize(MCCList) + # mccSearch.displayPrecip(MCCList) + # mccSearch.plotHistogram(MCCList) print "creating the MCC userfile ", mccSearch.createTextFile(MCCList,1) print "creating the MCS userfile ", mccSearch.createTextFile(MCSList,2)
