def get_tablename(stations):
    """ Figure out the table that has the data for these stations """
    states = []
    for sid in stations:
        if sid[:2] not in states:
            states.append(sid[:2])
    if len(states) == 1:
        return "alldata_%s" % (states[0],)
    return "alldata"