Commit cb60724e authored by mickael's avatar mickael

adding ALL to month To process to process all the months

parent 795e30ef
......@@ -1604,16 +1604,34 @@ if __name__ == "__main__":
if args.satellite == 'b':
picklerPath = picklerPathB
print picklerPath
listMonthToprocess=[]
if args.monthToprocess='ALL':
endDate = datetime.datetime.now()
month = endDate.month
year = endDate.year
while year >2014:
listMonthToprocess.append(str(year)+str(month).zfill(2))
month-=1
if month<1:
month=12
year-=1
else:
listMonthToprocess.append(args.monthToProcess)
if args.function == 'overview':
createHTMLOverview(picklerPath, args.satellite)
elif args.function == 'monthlygraph':
createHTMLOutputGraph(args.monthToProcess, picklerPath, args.satellite)
elif args.function == 'monthlyhtml':
createHTMLOutput(args.monthToProcess, picklerPath, args.satellite)
elif args.function == 'writealldata':
writeAllData(args.monthToProcess, picklerPath, args.satellite)
else:
locals()[args.function](args.monthToProcess, picklerPath, args.satellite)
for currentMonth in listMonthToprocess:
print picklerPath
if args.function == 'monthlygraph':
createHTMLOutputGraph(currentMonth, picklerPath, args.satellite)
elif args.function == 'monthlyhtml':
createHTMLOutput(currentMonth, picklerPath, args.satellite)
elif args.function == 'writealldata':
writeAllData(currentMonth, picklerPath, args.satellite)
else:
locals()[args.function](currentMonth, picklerPath, args.satellite)
sys.exit(0)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment