def __project(uri):
    """
    internal use, do not call directly. Lambda function
    to apply on dataframe to get a column for 'project'

    Parameters
    ----------
    uri : Carbon Portal resource descriptor
    
    Returns 
    -------
    project : str, from predefined dict

    """
    uri = uri.lower().split('/')[-1].split('_')[0]
    project = {
        'as': "ICOS",
        'es': "ICOS",
        'os': "ICOS",
        'neon': 'NEON',
        'ingos': 'INGOS',
        'fluxnet': 'FLUXNET'
    }

    if uri in project:
        return project.get(uri)
    else:
        return 'other'