parse_cm.read_dot#
- parse_cm.read_dot(content)#
Read commands from dot file or dot-formatted string.
Returns an astropy Table object which has a row for each dot command. Any DOT comments are stored in the Table
meta['comments']location.Example:
>>> from parse_cm import read_dot >>> lines = [ ... "ATS,MANVR,Q1=-0.462147874359,Q2=-0.632450473022,Q3=0.228874621726, EP06040002", ... "MANSTART=000:00:00:00.000,CHANGE_RATE='FALSE',HW='RWA',FSS='OUT', EP06040002", ... "TIME=2017:007:23:45:36.709 EP06040002"] >>> dot = read_dot(lines) >>> dot.colnames ['type', 'name', 'dot_id', 'params'] >>> dot['params'][0].keys() dict_keys(['Q1', 'Q2', 'Q3', 'MANSTART', 'CHANGE_RATE', 'HW', 'FSS', 'TIME'])
- Content:
Dot file name or a list of dot lines
- Returns:
Table