#!/bin/bash

#usage : 
# > ./multi-monitoring_script MultiMonitoring_Name smooth_freq_in_WriteFrequency list_of_local_or_distante-http_simulation_paths

# examples : 
# local multi-monitorings : 
# > ./multi-monitoring_script SptrNF_vs_SptrNFR 1 /login/IGCM_OUT/OL2/SptrNF/SPIN/Output/SptrNFFIN   /login/IGCM_OUT/OL2/SptrNFR/SPIN/Output/SptrNFRFIN 
# > /multi-monitoring_script SPINUP_piControlMR2 12 /dmnfs/cont003/p86cadul/IGCM_OUT/OL2/SPINUP_piControlMR2ORC_*1 /dmnfs/cont003/p86cadul/IGCM_OUT/OL2/SPINUP_piControlMR2ORC_*8
# distant (web) multi-monitorings : 
# > ./multi-monitoring_script LMDZ5OMP6_vs_LMDZ5OMP7 1 http://dods.extra.cea.fr/data/p86manci/LMDZOR/TEST/CLIM/LMDZ5OMP6 http://dods.extra.cea.fr/data/p86manci/LMDZOR/TEST/CLIM/LMDZ5OMP7

#Download the ferret script run :
tmpfname=$1
shift 1
smooth=$1
shift 1

./plot01.bash  ${tmpfname}.jnl ${smooth} SBG_cSoilSlow_lands_ave.nc $@
./script.bash ${tmpfname} $@
./${tmpfname}_prod.bash 
