68 lines
2 KiB
Bash
Executable file
68 lines
2 KiB
Bash
Executable file
#!/usr/bin/bash
|
|
|
|
# >>> conda initialize >>>
|
|
# !! Contents within this block are managed by 'conda init' !!
|
|
__conda_setup="$('/home/ignis/anaconda2/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
|
|
if [ $? -eq 0 ]; then
|
|
eval "$__conda_setup"
|
|
else
|
|
if [ -f "/home/ignis/anaconda2/etc/profile.d/conda.sh" ]; then
|
|
. "/home/ignis/anaconda2/etc/profile.d/conda.sh"
|
|
else
|
|
export PATH="/home/ignis/anaconda2/bin:$PATH"
|
|
fi
|
|
fi
|
|
unset __conda_setup
|
|
# <<< conda initialize <<<
|
|
|
|
conda activate fkde-jupyter-py3
|
|
|
|
|
|
SCRIPT_ROOT=/home/ignis/dns/CNF2021-Figures
|
|
|
|
|
|
|
|
#=============================================================================#
|
|
# Extract u, c and ddx(c)
|
|
|
|
|
|
echo time python $SCRIPT_ROOT/extract_all.py -c $1
|
|
|
|
|
|
#=============================================================================#
|
|
# Calculate conditional mean of u and ddx(c) given c
|
|
|
|
|
|
echo Batch running - binning_v_given_c.py
|
|
|
|
export BIN_TARGET=u.dat
|
|
sbatch --array=0,1 -J $1-u-c $SCRIPT_ROOT/sbatch-job-binning-ddxc-array
|
|
echo sbatch --array=0-511 -J $1-u-c $SCRIPT_ROOT/sbatch-job-binning-ddxc-array
|
|
|
|
export BIN_TARGET=ddxc.dat
|
|
echo sbatch --wait --array=0-511 -J $1-ddxc-c $SCRIPT_ROOT/sbatch-job-binning-ddxc-array
|
|
|
|
echo time python $SCRIPT_ROOT/concatenate_cmean.py -c $1 -v u
|
|
echo time python $SCRIPT_ROOT/concatenate_cmean.py -c $1 -v ddxc
|
|
|
|
|
|
#=============================================================================#
|
|
# Calculate product of conditional fluctuations of u, and ddx(c)
|
|
|
|
|
|
echo time python $SCRIPT_ROOT/fluctuation_product_u_ddxc.py -c $1
|
|
|
|
|
|
#=============================================================================#
|
|
# Calculate conditional mean of u'' * ddx(c)'' given c
|
|
|
|
|
|
echo Batch Running - binning_v_given_c.py
|
|
export BIN_TARGET=uddxc.dat
|
|
echo sbatch --wait --array=0-511 -J $1-uddxc-c $SCRIPT_ROOT/sbatch-job-binning-ddxc-array
|
|
|
|
echo time python $SCRIPT_ROOT/concatenate_cmean.py -c $1 -v uddxc
|
|
|
|
|
|
#=============================================================================#
|
|
echo Done
|