def generateTimeSeriesAWAP(): awap_Annual1 = flatten(awap_Annual) awap_June1 = flatten(awap_June) awap_July1 = flatten(awap_July) awap_August1 = flatten(awap_August) awap_September1 = flatten(awap_September) awap_October1 = flatten(awap_October) awap_November1 = flatten(awap_November) awap_December1 = flatten(awap_December) awap_January1 = flatten(awap_January) awap_February1 = flatten(awap_February) awap_March1 = flatten(awap_March) awap_April1 = flatten(awap_April) awap_May1 = flatten(awap_May) awap_JJA1 = flatten(awap_JJA) awap_SON1 = flatten(awap_SON) awap_DJF1 = flatten(awap_DJF) awap_MAM1 = flatten(awap_MAM) #AWAP linePlot(hadISST_ENSO[16],hadISST_IPO[16],awap_Annual1,"Observed annual time series","my_coding_routines/images/time_series/Annual/Had.png") plt.close() linePlot(hadISST_ENSO[0],hadISST_IPO[0],awap_June1,"Observed June time series","my_coding_routines/images/time_series/Jun/Had.png") plt.close() linePlot(hadISST_ENSO[1],hadISST_IPO[1],awap_July1,"Observed July time series","my_coding_routines/images/time_series/Jul/Had.png") plt.close() linePlot(hadISST_ENSO[2],hadISST_IPO[2],awap_August1,"Observed August time series","my_coding_routines/images/time_series/Aug/Had.png") plt.close() linePlot(hadISST_ENSO[3],hadISST_IPO[3],awap_September1,"Observed September time series","my_coding_routines/images/time_series/Sep/Had.png") plt.close() linePlot(hadISST_ENSO[4],hadISST_IPO[4],awap_October1,"Observed October time series","my_coding_routines/images/time_series/Oct/Had.png") plt.close() linePlot(hadISST_ENSO[5],hadISST_IPO[5],awap_November1,"Observed November time series","my_coding_routines/images/time_series/Nov/Had.png") plt.close() linePlot(hadISST_ENSO[6],hadISST_IPO[6],awap_December1,"Observed December time series","my_coding_routines/images/time_series/Dec/Had.png") plt.close() linePlot(hadISST_ENSO[7],hadISST_IPO[7],awap_January1,"Observed January time series","my_coding_routines/images/time_series/Jan/Had.png") plt.close() linePlot(hadISST_ENSO[8],hadISST_IPO[8],awap_February1,"Observed February time series","my_coding_routines/images/time_series/Feb/Had.png") plt.close() linePlot(hadISST_ENSO[9],hadISST_IPO[9],awap_March1,"Observed March time series","my_coding_routines/images/time_series/Mar/Had.png") plt.close() linePlot(hadISST_ENSO[10],hadISST_IPO[10],awap_April1,"Observed April time series","my_coding_routines/images/time_series/Apr/Had.png") plt.close() linePlot(hadISST_ENSO[11],hadISST_IPO[11],awap_May1,"Observed May time series","my_coding_routines/images/time_series/May/Had.png") plt.close() linePlot(hadISST_ENSO[12],hadISST_IPO[12],awap_JJA1,"Observed JJA time series","my_coding_routines/images/time_series/JJA/Had.png") plt.close() linePlot(hadISST_ENSO[13],hadISST_IPO[13],awap_SON1,"Observed SON time series","my_coding_routines/images/time_series/SON/Had.png") plt.close() linePlot(hadISST_ENSO[14],hadISST_IPO[14],awap_DJF1,"Observed DJF time series","my_coding_routines/images/time_series/DJF/Had.png") plt.close() linePlot(hadISST_ENSO[15],hadISST_IPO[15],awap_MAM1,"Observed MAM time series","my_coding_routines/images/time_series/MAM/Had.png") plt.close() return
def generateTimeSeriesAWAP(): awap_Annual1 = flatten(awap_Annual) awap_June1 = flatten(awap_June) awap_July1 = flatten(awap_July) awap_August1 = flatten(awap_August) awap_September1 = flatten(awap_September) awap_October1 = flatten(awap_October) awap_November1 = flatten(awap_November) awap_December1 = flatten(awap_December) awap_January1 = flatten(awap_January) awap_February1 = flatten(awap_February) awap_March1 = flatten(awap_March) awap_April1 = flatten(awap_April) awap_May1 = flatten(awap_May) awap_JJA1 = flatten(awap_JJA) awap_SON1 = flatten(awap_SON) awap_DJF1 = flatten(awap_DJF) awap_MAM1 = flatten(awap_MAM) #AWAP linePlot(hadISST_ENSO[16], hadISST_IPO[16], awap_Annual1, "Observed annual time series", "my_coding_routines/images/time_series/Annual/Had.png") plt.close() linePlot(hadISST_ENSO[0], hadISST_IPO[0], awap_June1, "Observed June time series", "my_coding_routines/images/time_series/Jun/Had.png") plt.close() linePlot(hadISST_ENSO[1], hadISST_IPO[1], awap_July1, "Observed July time series", "my_coding_routines/images/time_series/Jul/Had.png") plt.close() linePlot(hadISST_ENSO[2], hadISST_IPO[2], awap_August1, "Observed August time series", "my_coding_routines/images/time_series/Aug/Had.png") plt.close() linePlot(hadISST_ENSO[3], hadISST_IPO[3], awap_September1, "Observed September time series", "my_coding_routines/images/time_series/Sep/Had.png") plt.close() linePlot(hadISST_ENSO[4], hadISST_IPO[4], awap_October1, "Observed October time series", "my_coding_routines/images/time_series/Oct/Had.png") plt.close() linePlot(hadISST_ENSO[5], hadISST_IPO[5], awap_November1, "Observed November time series", "my_coding_routines/images/time_series/Nov/Had.png") plt.close() linePlot(hadISST_ENSO[6], hadISST_IPO[6], awap_December1, "Observed December time series", "my_coding_routines/images/time_series/Dec/Had.png") plt.close() linePlot(hadISST_ENSO[7], hadISST_IPO[7], awap_January1, "Observed January time series", "my_coding_routines/images/time_series/Jan/Had.png") plt.close() linePlot(hadISST_ENSO[8], hadISST_IPO[8], awap_February1, "Observed February time series", "my_coding_routines/images/time_series/Feb/Had.png") plt.close() linePlot(hadISST_ENSO[9], hadISST_IPO[9], awap_March1, "Observed March time series", "my_coding_routines/images/time_series/Mar/Had.png") plt.close() linePlot(hadISST_ENSO[10], hadISST_IPO[10], awap_April1, "Observed April time series", "my_coding_routines/images/time_series/Apr/Had.png") plt.close() linePlot(hadISST_ENSO[11], hadISST_IPO[11], awap_May1, "Observed May time series", "my_coding_routines/images/time_series/May/Had.png") plt.close() linePlot(hadISST_ENSO[12], hadISST_IPO[12], awap_JJA1, "Observed JJA time series", "my_coding_routines/images/time_series/JJA/Had.png") plt.close() linePlot(hadISST_ENSO[13], hadISST_IPO[13], awap_SON1, "Observed SON time series", "my_coding_routines/images/time_series/SON/Had.png") plt.close() linePlot(hadISST_ENSO[14], hadISST_IPO[14], awap_DJF1, "Observed DJF time series", "my_coding_routines/images/time_series/DJF/Had.png") plt.close() linePlot(hadISST_ENSO[15], hadISST_IPO[15], awap_MAM1, "Observed MAM time series", "my_coding_routines/images/time_series/MAM/Had.png") plt.close() return
def generateTimeSeriesACCESS(ENSO,IPO,roundNum): trim_Annual1 = flatten(trim_Annual) trim_June1 = flatten(trim_June) trim_July1 = flatten(trim_July) trim_August1 = flatten(trim_August) trim_September1 = flatten(trim_September) trim_October1 = flatten(trim_October) trim_November1 = flatten(trim_November) trim_December1 = flatten(trim_December) trim_January1 = flatten(trim_January) trim_February1 = flatten(trim_February) trim_March1 = flatten(trim_March) trim_April1 = flatten(trim_April) trim_May1 = flatten(trim_May) trim_JJA1 = flatten(trim_JJA) trim_SON1 = flatten(trim_SON) trim_DJF1 = flatten(trim_DJF) trim_MAM1 = flatten(trim_MAM) #ACCESS linePlot(ENSO[16],IPO[16],trim_Annual1,"ACCESS "+roundNum+" annual time series","my_coding_routines/images/time_series/Annual/"+roundNum+".png") plt.close() linePlot(ENSO[0],IPO[0],trim_June1,"ACCESS "+roundNum+" June time series","my_coding_routines/images/time_series/Jun/"+roundNum+".png") plt.close() linePlot(ENSO[1],IPO[1],trim_July1,"ACCESS "+roundNum+" July time series","my_coding_routines/images/time_series/Jul/"+roundNum+".png") plt.close() linePlot(ENSO[2],IPO[2],trim_August1,"ACCESS "+roundNum+" August time series","my_coding_routines/images/time_series/Aug/"+roundNum+".png") plt.close() linePlot(ENSO[3],IPO[3],trim_September1,"ACCESS "+roundNum+" September time series","my_coding_routines/images/time_series/Sep/"+roundNum+".png") plt.close() linePlot(ENSO[4],IPO[4],trim_October1,"ACCESS "+roundNum+" October time series","my_coding_routines/images/time_series/Oct/"+roundNum+".png") plt.close() linePlot(ENSO[5],IPO[5],trim_November1,"ACCESS "+roundNum+" November time series","my_coding_routines/images/time_series/Nov/"+roundNum+".png") plt.close() linePlot(ENSO[6],IPO[6],trim_December1,"ACCESS "+roundNum+" December time series","my_coding_routines/images/time_series/Dec/"+roundNum+".png") plt.close() linePlot(ENSO[7],IPO[7],trim_January1,"ACCESS "+roundNum+" January time series","my_coding_routines/images/time_series/Jan/"+roundNum+".png") plt.close() linePlot(ENSO[8],IPO[8],trim_February1,"ACCESS "+roundNum+" February time series","my_coding_routines/images/time_series/Feb/"+roundNum+".png") plt.close() linePlot(ENSO[9],IPO[9],trim_March1,"ACCESS "+roundNum+" March time series","my_coding_routines/images/time_series/Mar/"+roundNum+".png") plt.close() linePlot(ENSO[10],IPO[10],trim_April1,"ACCESS "+roundNum+" April time series","my_coding_routines/images/time_series/Apr/"+roundNum+".png") plt.close() linePlot(ENSO[11],IPO[11],trim_May1,"ACCESS "+roundNum+" May time series","my_coding_routines/images/time_series/May/"+roundNum+".png") plt.close() linePlot(ENSO[12],IPO[12],trim_JJA1,"ACCESS "+roundNum+" JJA time series","my_coding_routines/images/time_series/JJA/"+roundNum+".png") plt.close() linePlot(ENSO[13],IPO[13],trim_SON1,"ACCESS "+roundNum+" SON time series","my_coding_routines/images/time_series/SON/"+roundNum+".png") plt.close() linePlot(ENSO[14],IPO[14],trim_DJF1,"ACCESS "+roundNum+" DJF time series","my_coding_routines/images/time_series/DJF/"+roundNum+".png") plt.close() linePlot(ENSO[15],IPO[15],trim_MAM1,"ACCESS "+roundNum+" MAM time series","my_coding_routines/images/time_series/MAM/"+roundNum+".png") plt.close() return
def generateTimeSeriesACCESS(ENSO, IPO, roundNum): trim_Annual1 = flatten(trim_Annual) trim_June1 = flatten(trim_June) trim_July1 = flatten(trim_July) trim_August1 = flatten(trim_August) trim_September1 = flatten(trim_September) trim_October1 = flatten(trim_October) trim_November1 = flatten(trim_November) trim_December1 = flatten(trim_December) trim_January1 = flatten(trim_January) trim_February1 = flatten(trim_February) trim_March1 = flatten(trim_March) trim_April1 = flatten(trim_April) trim_May1 = flatten(trim_May) trim_JJA1 = flatten(trim_JJA) trim_SON1 = flatten(trim_SON) trim_DJF1 = flatten(trim_DJF) trim_MAM1 = flatten(trim_MAM) #ACCESS linePlot( ENSO[16], IPO[16], trim_Annual1, "ACCESS " + roundNum + " annual time series", "my_coding_routines/images/time_series/Annual/" + roundNum + ".png") plt.close() linePlot(ENSO[0], IPO[0], trim_June1, "ACCESS " + roundNum + " June time series", "my_coding_routines/images/time_series/Jun/" + roundNum + ".png") plt.close() linePlot(ENSO[1], IPO[1], trim_July1, "ACCESS " + roundNum + " July time series", "my_coding_routines/images/time_series/Jul/" + roundNum + ".png") plt.close() linePlot(ENSO[2], IPO[2], trim_August1, "ACCESS " + roundNum + " August time series", "my_coding_routines/images/time_series/Aug/" + roundNum + ".png") plt.close() linePlot(ENSO[3], IPO[3], trim_September1, "ACCESS " + roundNum + " September time series", "my_coding_routines/images/time_series/Sep/" + roundNum + ".png") plt.close() linePlot(ENSO[4], IPO[4], trim_October1, "ACCESS " + roundNum + " October time series", "my_coding_routines/images/time_series/Oct/" + roundNum + ".png") plt.close() linePlot(ENSO[5], IPO[5], trim_November1, "ACCESS " + roundNum + " November time series", "my_coding_routines/images/time_series/Nov/" + roundNum + ".png") plt.close() linePlot(ENSO[6], IPO[6], trim_December1, "ACCESS " + roundNum + " December time series", "my_coding_routines/images/time_series/Dec/" + roundNum + ".png") plt.close() linePlot(ENSO[7], IPO[7], trim_January1, "ACCESS " + roundNum + " January time series", "my_coding_routines/images/time_series/Jan/" + roundNum + ".png") plt.close() linePlot(ENSO[8], IPO[8], trim_February1, "ACCESS " + roundNum + " February time series", "my_coding_routines/images/time_series/Feb/" + roundNum + ".png") plt.close() linePlot(ENSO[9], IPO[9], trim_March1, "ACCESS " + roundNum + " March time series", "my_coding_routines/images/time_series/Mar/" + roundNum + ".png") plt.close() linePlot(ENSO[10], IPO[10], trim_April1, "ACCESS " + roundNum + " April time series", "my_coding_routines/images/time_series/Apr/" + roundNum + ".png") plt.close() linePlot(ENSO[11], IPO[11], trim_May1, "ACCESS " + roundNum + " May time series", "my_coding_routines/images/time_series/May/" + roundNum + ".png") plt.close() linePlot(ENSO[12], IPO[12], trim_JJA1, "ACCESS " + roundNum + " JJA time series", "my_coding_routines/images/time_series/JJA/" + roundNum + ".png") plt.close() linePlot(ENSO[13], IPO[13], trim_SON1, "ACCESS " + roundNum + " SON time series", "my_coding_routines/images/time_series/SON/" + roundNum + ".png") plt.close() linePlot(ENSO[14], IPO[14], trim_DJF1, "ACCESS " + roundNum + " DJF time series", "my_coding_routines/images/time_series/DJF/" + roundNum + ".png") plt.close() linePlot(ENSO[15], IPO[15], trim_MAM1, "ACCESS " + roundNum + " MAM time series", "my_coding_routines/images/time_series/MAM/" + roundNum + ".png") plt.close() return