def binning2string(binspectral, binspatial):
    """

    Args:
        binspectral (int):
        binspatial (int):

    Returns:
        str: Binning in binspectral, binspatial order, e.g. '2,1'

    """
    return '{:d},{:d}'.format(binspectral, binspatial)