#! /usr/bin/env python

# this wrapper runs the velocity scripts for you to take a folder of images and output velocity maps with a stack of images including the mean, min, max of all the images

all_vmap.py *.tif > all_vmap_pairs.txt

parallel -j 4 < all_vmap_pairs.txt

mkdir velocity_output/
#mv . velocity_output
#find . -maxdepth 1 -type d -exec mv . velocity_output

mv *spm1 velocity_output/

fnlist=$(ls velocity_output/*/*vm.tif)

make_stack.py $fnlist -outdir vel_stack_out/ -stack_fn STACK_FN
mkdir velocity_output/stacked
mv STACK_FN* velocity_output/stacked
fcf50a02f4f4a8da839b686b479df07dc1124194
#! /usr/bin/env python

# this wrapper runs the velocity scripts for you to take a folder of images and output velocity maps with a stack of images including the mean, min, max of all the images

all_vmap.py *.tif > all_vmap_pairs.txt

parallel -j 4 < all_vmap_pairs.txt

mkdir velocity_output/
#mv . velocity_output
#find . -maxdepth 1 -type d -exec mv . velocity_output

mv *spm1 velocity_output/

fnlist=$(ls velocity_output/*/*vm.tif)

make_stack.py $fnlist -outdir vel_stack_out/ -stack_fn STACK_FN
mkdir velocity_output/stacked
mv STACK_FN* velocity_output/stacked