Questo pezzo di opa_downloader
cd $PWD > $LOCAL_INPUT
while read -r line ; do # avoiding coriolis floats not present in superfloat
filename=$( echo $line | cut -d "," -f1);
V1=${filename/coriolis\//}
V2=${V1/profiles\//}
superfloat_file=${ONLINE_REPO}/SUPERFLOAT/${V2}
[ -f $superfloat_file ] && echo $line >> $LOCAL_INPUT
done < ${UPDATE_FILE}
NR=$( wc -l $LOCAL_INPUT | awk '{print $1}')
if [[ $NR > 0 ]] ; then
for filename in $( cat ${LOCAL_INPUT} | cut -d "," -f1 ) ; do
V1=${filename/coriolis\//}
V2=${V1/profiles\//}
wmo=$( echo $V2 | cut -d "/" -f1)
opa_mkdir "${ONLINE_REPO}/PPCON/$wmo"
cp -v ${ONLINE_REPO}/SUPERFLOAT/${V2} ${ONLINE_REPO}/PPCON/${V2}
done
andrebbe sostituito da
python reset_ppcon_dataset.py -i DIFF_floats .txt --outfile $LOCAL_INPUT -I SUPERFLOAT/ -o PPCON/
NR=$( wc -l $LOCAL_INPUT | awk '{print $1}')
IF NR > 0
opa_prex "python -u clustering/clustering.py
opa_prex "python -u make_generated_ds/generate_netcdf_netcdf4.py
ENDIF
Questo pezzo di opa_downloader
andrebbe sostituito da