def writeTraj(filename='<STR_LIT>', data=[], ageunit=<NUM_LIT:0>, tunit=<NUM_LIT:0>,<EOL>rhounit=<NUM_LIT:0>, idNum=<NUM_LIT:0>):
if data==[]:<EOL><INDENT>print('<STR_LIT>')<EOL>print('<STR_LIT>')<EOL>return None<EOL><DEDENT>headers=[]<EOL>if ageunit ==<NUM_LIT:1>:<EOL><INDENT>headers.append('<STR_LIT>')<EOL><DEDENT>elif ageunit==<NUM_LIT:0>:<EOL><INDENT>headers.append('<STR_LIT>')<EOL><DEDENT>elif ageunit==<NUM_LIT:2>:<EOL><INDENT>headers.append('<STR_LIT>')<EOL><DEDENT>if tunit ==<NUM_LIT:1>:<EOL><INDENT>headers.append('<STR_LIT>')<EOL><DEDENT>elif tunit==<NUM_LIT:0>:<EOL><INDENT>headers.append('<STR_LIT>')<EOL><DEDENT>if rhounit ==<NUM_LIT:1>:<EOL><INDENT>headers.append('<STR_LIT>')<EOL><DEDENT>elif rhounit==<NUM_LIT:0>:<EOL><INDENT>headers.append('<STR_LIT>')<EOL><DEDENT>headers.append('<STR_LIT>'+str(idNum))<EOL>write(filename,headers,['<STR_LIT:time>','<STR_LIT:T>','<STR_LIT>'],data,['<STR_LIT>',"<STR_LIT>"],trajectory=True)<EOL>
Method for writeing Trajectory type ascii files files.

Parameters
----------
filename : string
    The file where this data will be written.
data : list
    A list of 1D data vectors with time, T and rho.
ageunit : integer, optional
    If 1 ageunit = SEC, If 0 ageunit = YRS. If 2 agunit =
    logtimerev in yrs.  The default is 0.  logtimerev is log of
    time until end
tunit : integer, optional
    If 1 TUNIT  = T9K, if 0 TUNIT = T8K.  The default is 0.
rhounit : integer, optional
    If 1 RHOUNIT = LOG, if 0 RHOUNIT = CGS. The default is 0.
idNum : optional
    An optional id argument