def fname_bits(fname):
    """Return the filter and exposure from standard file name of an object.

    'NGC1000_V_1000_0.fits' gives ('V', '1000').
    """
    pieces = fname.split('.fit')[0].split('_')
    return pieces[-3], pieces[-2]
