Example #1
0
def plotStratStandardised(data,precip_data,title,filepath):
    """
    A function to produce standardised plots of stratified rainfall data.
    """
    var = ma.masked_invalid(data)
    dict10 = mapDifference(precip_data)
    myplot = plot(var,dict10,labels=False,grid=False,oceans=False,cbar=False)
    reload(maps_sub)
    from maps_sub import saveFig
    saveFig(myplot,title,filepath)
    return
Example #2
0
def plotStratDiff(stratAv,precip_data,title,filepath):
    """
    A function to produce precipitation difference maps (between
    wet and dry phases of the ENSO and IPO).
    """
    var = ma.masked_invalid(stratAv)
    dict9 = mapDifference(precip_data)
    myplot = plot(var,dict9,labels=False,grid=False,oceans=False,cbar=True)
    reload(maps_sub)
    from maps_sub import saveFig
    saveFig(myplot,title,filepath)
    return
Example #3
0
def plotStratStandardised(data, precip_data, title, filepath):
    """
    A function to produce standardised plots of stratified rainfall data.
    """
    var = ma.masked_invalid(data)
    dict10 = mapDifference(precip_data)
    myplot = plot(var,
                  dict10,
                  labels=False,
                  grid=False,
                  oceans=False,
                  cbar=False)
    reload(maps_sub)
    from maps_sub import saveFig
    saveFig(myplot, title, filepath)
    return
Example #4
0
def plotStratDiff(stratAv, precip_data, title, filepath):
    """
    A function to produce precipitation difference maps (between
    wet and dry phases of the ENSO and IPO).
    """
    var = ma.masked_invalid(stratAv)
    dict9 = mapDifference(precip_data)
    myplot = plot(var,
                  dict9,
                  labels=False,
                  grid=False,
                  oceans=False,
                  cbar=True)
    reload(maps_sub)
    from maps_sub import saveFig
    saveFig(myplot, title, filepath)
    return