#!/bin/bash

ni=96 # number of images
b=5 # number of blocks [time is used to block the data; t=500 to t=100000 belong to block 0 and so on]
l=`wc ../1-pot/pot.txt | awk '{print $1}'` # number of data points (you can use only a portion of the data)

# using generalized wham algorithm with bootstrapping
 ../../../../codes/npwham.0/npwham -w $ni -l $l -t 310 -b $b -B 100 < ../1-pot/pot.txt > bootstrap.txt 2> bootstrap.err
# use npwham -h for the description of arguments (-b: # of blocks, -B: number of bootstraps)
