#!/bin/bash

for i in Hb*.tif
do
   echo $i

   motioncor2 -InTiff "$i" -OutMrc aligned_DfCorr/"${i/.tif/.mrc}" -Gain CountRef_Hb_087_Jun02_16.41.29.mrc -FtBin 2 -Patch 5 5 -Bft 300 -kV 300 -PixSize 0.525 -FmDose 0.8 -Throw 1 -Gpu 1 | tee aligned_DfCorr/"${i/.tif/}_DriftCorr.log" 
done
