In the blur esimation block of afni_proc.py generated scripts, the script gets the number of TRs for each run.
example:
set tr_counts = ( 109 109 103 109 109 109 109 109 109 109 )
The tr_counts variable is set after the tcat step. Is there an easy way to do this in my own code? My older code used an odd combination of 3dinfo and AWK that I would like to get away from.