esmvaltool/preprocessor/_time_area.py
def extract_month(mycube, month):
    """
    Slice cube to get only the data belonging to a specific month

    Parameters
    ----------
    cube: iris.cube.Cube
        Original data
    month: int
        Month to extract as a number from 1 to 12
    """
    month_cube = mycube.extract(iris.Constraint(month_number=month))
    return month_cube

    Slice cube to get only the data belonging to a specific month

    Parameters
    ----------
    cube: iris.cube.Cube
        Original data
    month: int
        Month to extract as a number from 1 to 12
    
Slice cube to get only the data belonging to a specific month
Parameters

iris.cube.Cube
Original data
month: int
Month to extract as a number from 1 to 12
Slice cube to get only the data belonging to a specific month Parameters iris . cube . Cube Original data month : int Month to extract as a number from 1 to 12
def extract_month(mycube, month):
    month_cube = mycube.extract(iris.Constraint(month_number=month))
    return month_cube
def extract_month ( mycube , month ) : month_cube = mycube . extract ( iris . Constraint ( month_number = month ) ) return month_cube
Slice cube to get only the data belonging to a specific month
Parameters
Slice cube to get only the data belonging to a specific month Parameters
"""
    Slice cube to get only the data belonging to a specific month

    Parameters
    ----------
    cube: iris.cube.Cube
        Original data
    month: int
        Month to extract as a number from 1 to 12
    """
mycube
month