def split_name_ucsb(name):
    """Function for splitting out sample, spot names from filenames for images
       saved at the UCSB LA-ICP-MS facility.

    Parameters
    ----------
    name : str
        Filename (relative, without full path) for a image or .Align file.

    Returns
    -------
    sample_name : str
        Name of sample.
    spot_name : str
        Name of spot (probably an integer; returned as a string in case not).

    """
    sans_prefix = name[::-1][:name[::-1].index('ScanImage_'[::-1])][::-1]
    sans_suffix = sans_prefix[:sans_prefix.index('_Ablation')]
    spot_name = sans_suffix[::-1][:sans_suffix[::-1].index('-')][::-1]
    sample_name = sans_suffix[::-1][sans_suffix[::-1].index('-')+1:][::-1]
    return sample_name, spot_name