forked from matthewhoffman/e3sm-cryo-analysis-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
num_ffmpeg_ssh.sh
executable file
·37 lines (36 loc) · 1.52 KB
/
num_ffmpeg_ssh.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
STARTYR=90
ENDYR=99
STARTMO=1
ENDMO=12
loc=( 76S70W-76S0W 77S70W-77S0W 78S48W-78S30W 79S50W-79S30W 82S38W-73S38W 82S32W-73S32W )
loc1=76S70W-76S0W
loc2=77S70W-77S0W
loc3=78S48W-78S30W
loc4=79S50W-79S30W
loc5=82S38W-73S38W
loc6=82S32W-73S32W
var=( T S rho u v )
var1=T
var2=S
var3=rho
var4=u
var5=v
run=( ISMF-noEAIS ) #ISMF-noEAIS )
run1=ISMF
run2=ISMF-noEAIS
PREFIX=/global/homes/c/cbegeman/weddell_output/
SUFFIX=.png
for i in $(seq -f "%04g" ${STARTYR} ${ENDYR} )
do
for j in $( seq -f "%02g" ${STARTMO} ${ENDMO} )
do
k=$(($k + 1))
cp ${PREFIX}ISMF_ssh_frisEAcoast_0m_${i}-${j}_limTrue${SUFFIX} ${PREFIX}ISMF_ssh_frisEAcoast_0m_${k}${SUFFIX}
cp ${PREFIX}ISMF-3dGM_ssh_frisEAcoast_0m_${i}-${j}_limTrue${SUFFIX} ${PREFIX}ISMF-3dGM_ssh_frisEAcoast_0m_${k}${SUFFIX}
#cp ${PREFIX}ISMF_cmp_ISMF-3dGM_ssh_frisEAcoast_0m_${i}-${j}_limTrue${SUFFIX} ${PREFIX}ISMF_cmp_ISMF-3dGM_ssh_frisEAcoast_0m_${k}${SUFFIX}
done
done
ffmpeg -framerate 5 -i ${PREFIX}ISMF_ssh_frisEAcoast_0m_%d${SUFFIX} -pix_fmt yuv420p -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" ${PREFIX}ISMF_ssh_frisEAcoast_0m_${STARTYR}-${ENDYR}_limTrue.mov
ffmpeg -framerate 5 -i ${PREFIX}ISMF-3dGM_ssh_frisEAcoast_0m_%d${SUFFIX} -pix_fmt yuv420p -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" ${PREFIX}ISMF-3dGM_ssh_frisEAcoast_0m_${STARTYR}-${ENDYR}_limTrue.mov
#ffmpeg -framerate 5 -i ${PREFIX}ISMF_cmp_ISMF-3dGM_ssh_frisEAcoast_0m_%d${SUFFIX} -pix_fmt yuv420p -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" ${PREFIX}ISMF_cmp_ISMF-3dGM_ssh_frisEAcoast_0m_${STARTYR}-${ENDYR}_limTrue.mov