def check_dim_name(dimension_name):
    """
    Map common dimension names for spectral and time to fieladnames used in eodatareaders.
    """
    
    if dimension_name in ('spectral', 'spectral_bands', 'bands'):
        dimension_out_name = 'band'
    elif dimension_name in ('temporal', 'time', 't'):
        dimension_out_name = 'time'
    else:
        dimension_out_name = dimension_name
        
    return dimension_out_name