def get_dimension_names(aCursor):
    """
    Get the dimension table in indexable form.
    
    Parameters
    ----------
    aCursor: sqlite3 cursor
        Open cursor in the device database.

    Returns
    -------
    str[]: Names of the unit of measure dimensions.
    """
    aCursor.execute("SELECT * FROM Matlab_Dimensions;")
    dimensions = { 0: "none" }
    maxIndex = 0
    for row in aCursor.fetchall():
        id = int(row["Id"])
        name = str(row["Name"])
        dimensions[id] = name
        if (id > maxIndex):
            maxIndex = id;

    result = []
    result.extend(["unknown"] * (maxIndex + 1))
    for (key, value) in iter(dimensions.items()):
        result[key] = value

    return result