def check_raw(raw):
    """ Check if raw data can be converted into an unstructured grid """
    try:
        raw['elem'][0, 0]
        raw['enum'][0]
    except Exception:
        raise Exception('Invalid file or missing key data.  ' +
            'Cannot parse into unstructured grid')
