def sub_summarylevel(v):
    """Replace summary level names with SL numbers"""
    from geoid.core import names
    try:
        int(v)
        return v
    except ValueError:
        return names[v.lower()]
