def xCorr_AWAPrainfall_indices():
    """
    Generate cross-correlation plots for AWAP rainfall-ENSO and rainfall-IPO.
    """
    #ENSO
    plotXCorrel(
        data_flat1, cropHad, 'months',
        'AWAP-Nino 3.4 cross correlation, June 1900-May 2005',
        "my_coding_routines/images/xcorr_indices_rainfall/awap/All_ENSO")
    plotXCorrel(
        awap_Annual1, enso_Annual_Had, 'years',
        'AWAP-Nino 3.4 cross correlation, annual',
        "my_coding_routines/images/xcorr_indices_rainfall/awap/Annual_ENSO")
    plotXCorrel(
        runningSeasons(data_flat1, 3, 0, 1), runningSeasons(cropHad, 3, 0, 1),
        'seasons', 'AWAP-ENSO cross correlation, JJA 1900-MAM 2005',
        "my_coding_routines/images/xcorr_indices_rainfall/awap/Seasons_ENSO")
    plotXCorrel(
        awap_JJA1, enso_JJA_Had, 'years',
        'AWAP-Nino 3.4 cross correlation, JJA',
        "my_coding_routines/images/xcorr_indices_rainfall/awap/JJA_ENSO")
    plotXCorrel(
        awap_SON1, enso_SON_Had, 'years',
        'AWAP-Nino 3.4 cross correlation, SON',
        "my_coding_routines/images/xcorr_indices_rainfall/awap/SON_ENSO")
    plotXCorrel(
        awap_DJF1, enso_DJF_Had, 'years',
        'AWAP-Nino 3.4 cross correlation, DJF',
        "my_coding_routines/images/xcorr_indices_rainfall/awap/DJF_ENSO")
    plotXCorrel(
        awap_MAM1, enso_MAM_Had, 'years',
        'AWAP-Nino 3.4 cross correlation, MAM',
        "my_coding_routines/images/xcorr_indices_rainfall/awap/MAM_ENSO")
    #IPO
    plotXCorrel(
        data_flat1, Had_monthsTPI, 'months',
        'AWAP-TPI cross correlation, June 1900-May 2005',
        "my_coding_routines/images/xcorr_indices_rainfall/awap/All_IPO")
    plotXCorrel(
        awap_Annual1, IPO_had_Annual, 'years',
        'AWAP-TPI cross correlation, annual',
        "my_coding_routines/images/xcorr_indices_rainfall/awap/Annual_IPO")
    plotXCorrel(
        runningSeasons(data_flat1, 3, 0, 1),
        runningSeasons(Had_monthsTPI, 3, 0, 1), 'seasons',
        'AWAP-IPO cross correlation, JJA 1900-MAM 2005',
        "my_coding_routines/images/xcorr_indices_rainfall/awap/Seasons_IPO")
    plotXCorrel(
        awap_JJA1, IPO_had_JJA, 'years', 'AWAP-TPI cross correlation, JJA',
        "my_coding_routines/images/xcorr_indices_rainfall/awap/JJA_IPO")
    plotXCorrel(
        awap_SON1, IPO_had_SON, 'years', 'AWAP-TPI cross correlation, SON',
        "my_coding_routines/images/xcorr_indices_rainfall/awap/SON_IPO")
    plotXCorrel(
        awap_DJF1, IPO_had_DJF, 'years', 'AWAP-TPI cross correlation, DJF',
        "my_coding_routines/images/xcorr_indices_rainfall/awap/DJF_IPO")
    plotXCorrel(
        awap_MAM1, IPO_had_MAM, 'years', 'AWAP-TPI cross correlation, MAM',
        "my_coding_routines/images/xcorr_indices_rainfall/awap/MAM_IPO")
    return
def xCorrIndices_Obs():
    """
    Generate cross-correlation plots for ENSO and the IPO for
    observational data.
    """
    #ENSO-IPO
    plotXCorrel(cropHad, Had_monthsTPI, 'months',
                'Nino 3.4-TPI cross correlation, June 1900-May 2005',
                'my_coding_routines/images/xcorr_nino_tpi/awap/All_ENSO')
    plotXCorrel(enso_Annual_Had, IPO_had_Annual, 'years',
                'Nino 3.4-TPI cross correlation, annual',
                'my_coding_routines/images/xcorr_nino_tpi/awap/Annual_ENSO')
    plotXCorrel(runningSeasons(cropHad, 3, 0, 1),
                runningSeasons(Had_monthsTPI, 3, 0, 1), 'seasons',
                'AWAP: Nino 3.4-TPI cross correlation, JJA 1900-MAM 2005',
                'my_coding_routines/images/xcorr_nino_tpi/awap/Seasons_ENSO')
    plotXCorrel(enso_JJA_Had, IPO_had_JJA, 'years',
                'Nino 3.4-TPI cross correlation, JJA',
                'my_coding_routines/images/xcorr_nino_tpi/awap/JJA_ENSO')
    plotXCorrel(enso_SON_Had, IPO_had_SON, 'years',
                'Nino 3.4-TPI cross correlation, SON',
                'my_coding_routines/images/xcorr_nino_tpi/awap/SON_ENSO')
    plotXCorrel(enso_DJF_Had, IPO_had_DJF, 'years',
                'Nino 3.4-TPI cross correlation, DJF',
                'my_coding_routines/images/xcorr_nino_tpi/awap/DJF_ENSO')
    plotXCorrel(enso_MAM_Had, IPO_had_MAM, 'years',
                'Nino 3.4-TPI cross correlation, MAM',
                'my_coding_routines/images/xcorr_nino_tpi/awap/MAM_ENSO')
    return
def xCorrIndices_Obs():
    """
    Generate cross-correlation plots for ENSO and the IPO for
    observational data.
    """
    # ENSO-IPO
    plotXCorrel(
        cropHad,
        Had_monthsTPI,
        "months",
        "Nino 3.4-TPI cross correlation, June 1900-May 2005",
        "my_coding_routines/images/xcorr_nino_tpi/awap/All_ENSO",
    )
    plotXCorrel(
        enso_Annual_Had,
        IPO_had_Annual,
        "years",
        "Nino 3.4-TPI cross correlation, annual",
        "my_coding_routines/images/xcorr_nino_tpi/awap/Annual_ENSO",
    )
    plotXCorrel(
        runningSeasons(cropHad, 3, 0, 1),
        runningSeasons(Had_monthsTPI, 3, 0, 1),
        "seasons",
        "AWAP: Nino 3.4-TPI cross correlation, JJA 1900-MAM 2005",
        "my_coding_routines/images/xcorr_nino_tpi/awap/Seasons_ENSO",
    )
    plotXCorrel(
        enso_JJA_Had,
        IPO_had_JJA,
        "years",
        "Nino 3.4-TPI cross correlation, JJA",
        "my_coding_routines/images/xcorr_nino_tpi/awap/JJA_ENSO",
    )
    plotXCorrel(
        enso_SON_Had,
        IPO_had_SON,
        "years",
        "Nino 3.4-TPI cross correlation, SON",
        "my_coding_routines/images/xcorr_nino_tpi/awap/SON_ENSO",
    )
    plotXCorrel(
        enso_DJF_Had,
        IPO_had_DJF,
        "years",
        "Nino 3.4-TPI cross correlation, DJF",
        "my_coding_routines/images/xcorr_nino_tpi/awap/DJF_ENSO",
    )
    plotXCorrel(
        enso_MAM_Had,
        IPO_had_MAM,
        "years",
        "Nino 3.4-TPI cross correlation, MAM",
        "my_coding_routines/images/xcorr_nino_tpi/awap/MAM_ENSO",
    )
    return
def xCorr_AWAPrainfall_indices():
    """
    Generate cross-correlation plots for AWAP rainfall-ENSO and rainfall-IPO.
    """
    # ENSO
    plotXCorrel(
        data_flat1,
        cropHad,
        "months",
        "AWAP-Nino 3.4 cross correlation, June 1900-May 2005",
        "my_coding_routines/images/xcorr_indices_rainfall/awap/All_ENSO",
    )
    plotXCorrel(
        awap_Annual1,
        enso_Annual_Had,
        "years",
        "AWAP-Nino 3.4 cross correlation, annual",
        "my_coding_routines/images/xcorr_indices_rainfall/awap/Annual_ENSO",
    )
    plotXCorrel(
        runningSeasons(data_flat1, 3, 0, 1),
        runningSeasons(cropHad, 3, 0, 1),
        "seasons",
        "AWAP-ENSO cross correlation, JJA 1900-MAM 2005",
        "my_coding_routines/images/xcorr_indices_rainfall/awap/Seasons_ENSO",
    )
    plotXCorrel(
        awap_JJA1,
        enso_JJA_Had,
        "years",
        "AWAP-Nino 3.4 cross correlation, JJA",
        "my_coding_routines/images/xcorr_indices_rainfall/awap/JJA_ENSO",
    )
    plotXCorrel(
        awap_SON1,
        enso_SON_Had,
        "years",
        "AWAP-Nino 3.4 cross correlation, SON",
        "my_coding_routines/images/xcorr_indices_rainfall/awap/SON_ENSO",
    )
    plotXCorrel(
        awap_DJF1,
        enso_DJF_Had,
        "years",
        "AWAP-Nino 3.4 cross correlation, DJF",
        "my_coding_routines/images/xcorr_indices_rainfall/awap/DJF_ENSO",
    )
    plotXCorrel(
        awap_MAM1,
        enso_MAM_Had,
        "years",
        "AWAP-Nino 3.4 cross correlation, MAM",
        "my_coding_routines/images/xcorr_indices_rainfall/awap/MAM_ENSO",
    )
    # IPO
    plotXCorrel(
        data_flat1,
        Had_monthsTPI,
        "months",
        "AWAP-TPI cross correlation, June 1900-May 2005",
        "my_coding_routines/images/xcorr_indices_rainfall/awap/All_IPO",
    )
    plotXCorrel(
        awap_Annual1,
        IPO_had_Annual,
        "years",
        "AWAP-TPI cross correlation, annual",
        "my_coding_routines/images/xcorr_indices_rainfall/awap/Annual_IPO",
    )
    plotXCorrel(
        runningSeasons(data_flat1, 3, 0, 1),
        runningSeasons(Had_monthsTPI, 3, 0, 1),
        "seasons",
        "AWAP-IPO cross correlation, JJA 1900-MAM 2005",
        "my_coding_routines/images/xcorr_indices_rainfall/awap/Seasons_IPO",
    )
    plotXCorrel(
        awap_JJA1,
        IPO_had_JJA,
        "years",
        "AWAP-TPI cross correlation, JJA",
        "my_coding_routines/images/xcorr_indices_rainfall/awap/JJA_IPO",
    )
    plotXCorrel(
        awap_SON1,
        IPO_had_SON,
        "years",
        "AWAP-TPI cross correlation, SON",
        "my_coding_routines/images/xcorr_indices_rainfall/awap/SON_IPO",
    )
    plotXCorrel(
        awap_DJF1,
        IPO_had_DJF,
        "years",
        "AWAP-TPI cross correlation, DJF",
        "my_coding_routines/images/xcorr_indices_rainfall/awap/DJF_IPO",
    )
    plotXCorrel(
        awap_MAM1,
        IPO_had_MAM,
        "years",
        "AWAP-TPI cross correlation, MAM",
        "my_coding_routines/images/xcorr_indices_rainfall/awap/MAM_IPO",
    )
    return
def xCorrIndices_Model(key_ENSO, key_IPO, roundNum):
    """
    Generate cross-correlation plots for ENSO and the IPO for
    modelled data.

    Parameters:
    -----------
    key_ENSO : string.  The key corresponding with the ENSO values to be accessed.
    key_IPO : string.  The key corresponding with the ENSO values to be accessed. 
    roundNum : string.  'R1', 'R2' or 'R3'
    """
    Dict = {
        "R1_ENSO": [cropR1, enso_Annual_R1, enso_JJA_R1, enso_SON_R1, enso_DJF_R1, enso_MAM_R1],
        "R2_ENSO": [cropR2, enso_Annual_R2, enso_JJA_R2, enso_SON_R2, enso_DJF_R2, enso_MAM_R2],
        "R3_ENSO": [cropR3, enso_Annual_R3, enso_JJA_R3, enso_SON_R3, enso_DJF_R3, enso_MAM_R3],
        "R1_IPO": [Acc_monthsTPI_r1, IPO_R1_Annual, IPO_R1_JJA, IPO_R1_SON, IPO_R1_DJF, IPO_R1_MAM],
        "R2_IPO": [Acc_monthsTPI_r2, IPO_R2_Annual, IPO_R2_JJA, IPO_R2_SON, IPO_R2_DJF, IPO_R2_MAM],
        "R3_IPO": [Acc_monthsTPI_r3, IPO_R3_Annual, IPO_R3_JJA, IPO_R3_SON, IPO_R3_DJF, IPO_R3_MAM],
    }

    # ENSO-IPO
    plotXCorrel(
        Dict[key_ENSO][0],
        Dict[key_IPO][0],
        "months",
        "ACCESS " + roundNum + ": Nino 3.4-TPI cross correlation, June 1900-May 2005",
        "my_coding_routines/images/xcorr_nino_tpi/" + roundNum + "/All",
    )
    plotXCorrel(
        Dict[key_ENSO][1],
        Dict[key_IPO][1],
        "years",
        "ACCESS " + roundNum + ": Nino 3.4-TPI cross correlation, annual",
        "my_coding_routines/images/xcorr_nino_tpi/" + roundNum + "/Annual",
    )
    plotXCorrel(
        runningSeasons(Dict[key_ENSO][0], 3, 0, 1),
        runningSeasons(Dict[key_IPO][0], 3, 0, 1),
        "seasons",
        "ACCESS " + roundNum + ": Nino 3.4-TPI cross correlation, JJA 1900-MAM 2005",
        "my_coding_routines/images/xcorr_nino_tpi/" + roundNum + "/Seasons",
    )
    plotXCorrel(
        Dict[key_ENSO][2],
        Dict[key_IPO][2],
        "years",
        "ACCESS " + roundNum + ": Nino 3.4-TPI cross correlation, JJA",
        "my_coding_routines/images/xcorr_nino_tpi/" + roundNum + "/JJA",
    )
    plotXCorrel(
        Dict[key_ENSO][3],
        Dict[key_IPO][3],
        "years",
        "ACCESS " + roundNum + ": Nino 3.4-TPI cross correlation, SON",
        "my_coding_routines/images/xcorr_nino_tpi/" + roundNum + "/SON",
    )
    plotXCorrel(
        Dict[key_ENSO][4],
        Dict[key_IPO][4],
        "years",
        "ACCESS " + roundNum + ": Nino 3.4-TPI cross correlation, DJF",
        "my_coding_routines/images/xcorr_nino_tpi/" + roundNum + "/DJF",
    )
    plotXCorrel(
        Dict[key_ENSO][5],
        Dict[key_IPO][5],
        "years",
        "ACCESS " + roundNum + ": Nino 3.4-TPI cross correlation, MAM",
        "my_coding_routines/images/xcorr_nino_tpi/" + roundNum + "/MAM",
    )
    return
def xCorr_ACCESSrainfall_indices(key_ENSO, key_IPO, roundNum):
    """
    Generate cross-correlation plots for ACCESS rainfall-ENSO and rainfall-IPO.

    Parameters:
    -----------
    key_ENSO : string.  The key corresponding with the ENSO values to be accessed.
    key_IPO : string.  The key corresponding with the ENSO values to be accessed. 
    roundNum : string.  'R1', 'R2' or 'R3'
    """
    Dict = {
        "R1_ENSO": [cropR1, enso_Annual_R1, enso_JJA_R1, enso_SON_R1, enso_DJF_R1, enso_MAM_R1],
        "R2_ENSO": [cropR2, enso_Annual_R2, enso_JJA_R2, enso_SON_R2, enso_DJF_R2, enso_MAM_R2],
        "R3_ENSO": [cropR3, enso_Annual_R3, enso_JJA_R3, enso_SON_R3, enso_DJF_R3, enso_MAM_R3],
        "R1_IPO": [Acc_monthsTPI_r1, IPO_R1_Annual, IPO_R1_JJA, IPO_R1_SON, IPO_R1_DJF, IPO_R1_MAM],
        "R2_IPO": [Acc_monthsTPI_r2, IPO_R2_Annual, IPO_R2_JJA, IPO_R2_SON, IPO_R2_DJF, IPO_R2_MAM],
        "R3_IPO": [Acc_monthsTPI_r3, IPO_R3_Annual, IPO_R3_JJA, IPO_R3_SON, IPO_R3_DJF, IPO_R3_MAM],
    }

    # ENSO
    plotXCorrel(
        data_flat1,
        Dict[key_ENSO][0],
        "months",
        "ACCESS " + roundNum + "-Nino 3.4 cross correlation, June 1900-May 2005",
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum + "/All_ENSO",
    )
    plotXCorrel(
        awap_Annual1,
        Dict[key_ENSO][1],
        "years",
        "ACCESS " + roundNum + "-Nino 3.4 cross correlation, annual",
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum + "/Annual_ENSO",
    )
    plotXCorrel(
        runningSeasons(data_flat1, 3, 0, 1),
        runningSeasons(Dict[key_ENSO][0], 3, 0, 1),
        "seasons",
        "ACCESS " + roundNum + "-Nino 3.4 cross correlation, JJA 1900-MAM 2005",
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum + "/Seasons_ENSO",
    )
    plotXCorrel(
        awap_JJA1,
        Dict[key_ENSO][2],
        "years",
        "ACCESS " + roundNum + "-Nino 3.4 cross correlation, JJA",
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum + "/JJA_ENSO",
    )
    plotXCorrel(
        awap_SON1,
        Dict[key_ENSO][3],
        "years",
        "ACCESS " + roundNum + "-Nino 3.4 cross correlation, SON",
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum + "/SON_ENSO",
    )
    plotXCorrel(
        awap_DJF1,
        Dict[key_ENSO][4],
        "years",
        "ACCESS " + roundNum + "-Nino 3.4 cross correlation, DJF",
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum + "/DJF_ENSO",
    )
    plotXCorrel(
        awap_MAM1,
        Dict[key_ENSO][5],
        "years",
        "ACCESS " + roundNum + "-Nino 3.4 cross correlation, MAM",
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum + "/MAM_ENSO",
    )
    # IPO
    plotXCorrel(
        data_flat1,
        Dict[key_IPO][0],
        "months",
        "ACCESS " + roundNum + "-TPI cross correlation, June 1900-May 2005",
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum + "/All_IPO",
    )
    plotXCorrel(
        awap_Annual1,
        Dict[key_IPO][1],
        "years",
        "ACCESS " + roundNum + "-TPI cross correlation, annual",
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum + "/Annual_IPO",
    )
    plotXCorrel(
        runningSeasons(data_flat1, 3, 0, 1),
        runningSeasons(Dict[key_IPO][0], 3, 0, 1),
        "seasons",
        "ACCESS " + roundNum + "-TPI cross correlation, JJA 1900-MAM 2005",
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum + "/Seasons_IPO",
    )
    plotXCorrel(
        awap_JJA1,
        Dict[key_IPO][2],
        "years",
        "ACCESS " + roundNum + "-TPI cross correlation, JJA",
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum + "/JJA_IPO",
    )
    plotXCorrel(
        awap_SON1,
        Dict[key_IPO][3],
        "years",
        "ACCESS " + roundNum + "-TPI cross correlation, SON",
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum + "/SON_IPO",
    )
    plotXCorrel(
        awap_DJF1,
        Dict[key_IPO][4],
        "years",
        "ACCESS " + roundNum + "-TPI cross correlation, DJF",
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum + "/DJF_IPO",
    )
    plotXCorrel(
        awap_MAM1,
        Dict[key_IPO][5],
        "years",
        "ACCESS " + roundNum + "-TPI cross correlation, MAM",
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum + "/MAM_IPO",
    )
    return
def xCorrIndices_Model(key_ENSO, key_IPO, roundNum):
    """
    Generate cross-correlation plots for ENSO and the IPO for
    modelled data.

    Parameters:
    -----------
    key_ENSO : string.  The key corresponding with the ENSO values to be accessed.
    key_IPO : string.  The key corresponding with the ENSO values to be accessed. 
    roundNum : string.  'R1', 'R2' or 'R3'
    """
    Dict = {
        'R1_ENSO': [
            cropR1, enso_Annual_R1, enso_JJA_R1, enso_SON_R1, enso_DJF_R1,
            enso_MAM_R1
        ],
        'R2_ENSO': [
            cropR2, enso_Annual_R2, enso_JJA_R2, enso_SON_R2, enso_DJF_R2,
            enso_MAM_R2
        ],
        'R3_ENSO': [
            cropR3, enso_Annual_R3, enso_JJA_R3, enso_SON_R3, enso_DJF_R3,
            enso_MAM_R3
        ],
        'R1_IPO': [
            Acc_monthsTPI_r1, IPO_R1_Annual, IPO_R1_JJA, IPO_R1_SON,
            IPO_R1_DJF, IPO_R1_MAM
        ],
        'R2_IPO': [
            Acc_monthsTPI_r2, IPO_R2_Annual, IPO_R2_JJA, IPO_R2_SON,
            IPO_R2_DJF, IPO_R2_MAM
        ],
        'R3_IPO': [
            Acc_monthsTPI_r3, IPO_R3_Annual, IPO_R3_JJA, IPO_R3_SON,
            IPO_R3_DJF, IPO_R3_MAM
        ]
    }

    #ENSO-IPO
    plotXCorrel(
        Dict[key_ENSO][0], Dict[key_IPO][0], 'months', 'ACCESS ' + roundNum +
        ': Nino 3.4-TPI cross correlation, June 1900-May 2005',
        'my_coding_routines/images/xcorr_nino_tpi/' + roundNum + '/All')
    plotXCorrel(
        Dict[key_ENSO][1], Dict[key_IPO][1], 'years',
        'ACCESS ' + roundNum + ': Nino 3.4-TPI cross correlation, annual',
        'my_coding_routines/images/xcorr_nino_tpi/' + roundNum + '/Annual')
    plotXCorrel(
        runningSeasons(Dict[key_ENSO][0], 3, 0, 1),
        runningSeasons(Dict[key_IPO][0], 3, 0, 1), 'seasons', 'ACCESS ' +
        roundNum + ': Nino 3.4-TPI cross correlation, JJA 1900-MAM 2005',
        'my_coding_routines/images/xcorr_nino_tpi/' + roundNum + '/Seasons')
    plotXCorrel(
        Dict[key_ENSO][2], Dict[key_IPO][2], 'years',
        'ACCESS ' + roundNum + ': Nino 3.4-TPI cross correlation, JJA',
        'my_coding_routines/images/xcorr_nino_tpi/' + roundNum + '/JJA')
    plotXCorrel(
        Dict[key_ENSO][3], Dict[key_IPO][3], 'years',
        'ACCESS ' + roundNum + ': Nino 3.4-TPI cross correlation, SON',
        'my_coding_routines/images/xcorr_nino_tpi/' + roundNum + '/SON')
    plotXCorrel(
        Dict[key_ENSO][4], Dict[key_IPO][4], 'years',
        'ACCESS ' + roundNum + ': Nino 3.4-TPI cross correlation, DJF',
        'my_coding_routines/images/xcorr_nino_tpi/' + roundNum + '/DJF')
    plotXCorrel(
        Dict[key_ENSO][5], Dict[key_IPO][5], 'years',
        'ACCESS ' + roundNum + ': Nino 3.4-TPI cross correlation, MAM',
        'my_coding_routines/images/xcorr_nino_tpi/' + roundNum + '/MAM')
    return
def xCorr_ACCESSrainfall_indices(key_ENSO, key_IPO, roundNum):
    """
    Generate cross-correlation plots for ACCESS rainfall-ENSO and rainfall-IPO.

    Parameters:
    -----------
    key_ENSO : string.  The key corresponding with the ENSO values to be accessed.
    key_IPO : string.  The key corresponding with the ENSO values to be accessed. 
    roundNum : string.  'R1', 'R2' or 'R3'
    """
    Dict = {
        'R1_ENSO': [
            cropR1, enso_Annual_R1, enso_JJA_R1, enso_SON_R1, enso_DJF_R1,
            enso_MAM_R1
        ],
        'R2_ENSO': [
            cropR2, enso_Annual_R2, enso_JJA_R2, enso_SON_R2, enso_DJF_R2,
            enso_MAM_R2
        ],
        'R3_ENSO': [
            cropR3, enso_Annual_R3, enso_JJA_R3, enso_SON_R3, enso_DJF_R3,
            enso_MAM_R3
        ],
        'R1_IPO': [
            Acc_monthsTPI_r1, IPO_R1_Annual, IPO_R1_JJA, IPO_R1_SON,
            IPO_R1_DJF, IPO_R1_MAM
        ],
        'R2_IPO': [
            Acc_monthsTPI_r2, IPO_R2_Annual, IPO_R2_JJA, IPO_R2_SON,
            IPO_R2_DJF, IPO_R2_MAM
        ],
        'R3_IPO': [
            Acc_monthsTPI_r3, IPO_R3_Annual, IPO_R3_JJA, IPO_R3_SON,
            IPO_R3_DJF, IPO_R3_MAM
        ]
    }

    #ENSO
    plotXCorrel(
        data_flat1, Dict[key_ENSO][0], 'months', 'ACCESS ' + roundNum +
        '-Nino 3.4 cross correlation, June 1900-May 2005',
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum +
        "/All_ENSO")
    plotXCorrel(
        awap_Annual1, Dict[key_ENSO][1], 'years',
        'ACCESS ' + roundNum + '-Nino 3.4 cross correlation, annual',
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum +
        "/Annual_ENSO")
    plotXCorrel(
        runningSeasons(data_flat1, 3, 0, 1),
        runningSeasons(Dict[key_ENSO][0], 3, 0, 1), 'seasons', 'ACCESS ' +
        roundNum + '-Nino 3.4 cross correlation, JJA 1900-MAM 2005',
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum +
        "/Seasons_ENSO")
    plotXCorrel(
        awap_JJA1, Dict[key_ENSO][2], 'years',
        'ACCESS ' + roundNum + '-Nino 3.4 cross correlation, JJA',
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum +
        "/JJA_ENSO")
    plotXCorrel(
        awap_SON1, Dict[key_ENSO][3], 'years',
        'ACCESS ' + roundNum + '-Nino 3.4 cross correlation, SON',
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum +
        "/SON_ENSO")
    plotXCorrel(
        awap_DJF1, Dict[key_ENSO][4], 'years',
        'ACCESS ' + roundNum + '-Nino 3.4 cross correlation, DJF',
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum +
        "/DJF_ENSO")
    plotXCorrel(
        awap_MAM1, Dict[key_ENSO][5], 'years',
        'ACCESS ' + roundNum + '-Nino 3.4 cross correlation, MAM',
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum +
        "/MAM_ENSO")
    #IPO
    plotXCorrel(
        data_flat1, Dict[key_IPO][0], 'months',
        'ACCESS ' + roundNum + '-TPI cross correlation, June 1900-May 2005',
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum +
        "/All_IPO")
    plotXCorrel(
        awap_Annual1, Dict[key_IPO][1], 'years',
        'ACCESS ' + roundNum + '-TPI cross correlation, annual',
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum +
        "/Annual_IPO")
    plotXCorrel(
        runningSeasons(data_flat1, 3, 0, 1),
        runningSeasons(Dict[key_IPO][0], 3, 0, 1), 'seasons',
        'ACCESS ' + roundNum + '-TPI cross correlation, JJA 1900-MAM 2005',
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum +
        "/Seasons_IPO")
    plotXCorrel(
        awap_JJA1, Dict[key_IPO][2], 'years',
        'ACCESS ' + roundNum + '-TPI cross correlation, JJA',
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum +
        "/JJA_IPO")
    plotXCorrel(
        awap_SON1, Dict[key_IPO][3], 'years',
        'ACCESS ' + roundNum + '-TPI cross correlation, SON',
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum +
        "/SON_IPO")
    plotXCorrel(
        awap_DJF1, Dict[key_IPO][4], 'years',
        'ACCESS ' + roundNum + '-TPI cross correlation, DJF',
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum +
        "/DJF_IPO")
    plotXCorrel(
        awap_MAM1, Dict[key_IPO][5], 'years',
        'ACCESS ' + roundNum + '-TPI cross correlation, MAM',
        "my_coding_routines/images/xcorr_indices_rainfall/" + roundNum +
        "/MAM_IPO")
    return