correcting time files when removing xTRs

You could use 3dcalc or 1deval to adjust the timing of a dataset, but it’s easiest with timing_tool.py. Here’s example 2 from the help:

Example 2. Subtract 12 seconds from each stimulus time (to offset TRs
dropped prior to the magnetization steady state).

     timing_tool.py -timing stimesB_01_houses.1D         \
                    -add_offset -12.0                    \
                    -write_timing stimesB1_offset12.1D