+ set -o nounset + set -o errexit + yearb=1983 + yeare=1983 + grid=eORCA1 + nbsmooth=2 + sosiedir=/gpfs/home/acad/ucl-elic/adelhass/tools/sosie-master/bin + mask=/gpfs/home/acad/ucl-elic/adelhass/git/EnKF/conversion_uf/mask-eORCA1.nc + sourcedir=/gpfs/home/acad/ucl-elic/adelhass/git/EnKF/conversion_uf/OSI-SAF-450 + ioutdir=/gpfs/home/acad/ucl-elic/adelhass/git/EnKF/conversion_uf/OSI-SAF-450-on-nemo + scratchdir=/gpfs/home/acad/ucl-elic/adelhass/scratch_limhr/sosie + weightdir= + tmpdir=/gpfs/home/acad/ucl-elic/adelhass/scratch_limhr/sosie/TMP_25843 + echo 'TMPDIR IS >>>>>> /gpfs/home/acad/ucl-elic/adelhass/scratch_limhr/sosie/TMP_25843 <<<<<<<' + mkdir -p /gpfs/home/acad/ucl-elic/adelhass/scratch_limhr/sosie/TMP_25843 + cp namelist_OSISAF-conc namelist_OSISAF-error namelist_OSISAF-mask /gpfs/home/acad/ucl-elic/adelhass/scratch_limhr/sosie/TMP_25843 + [[ -f /sosie_mapping_OSISAF-nh-eORCA1.nc ]] + [[ -f /sosie_mapping_OSISAF-sh-eORCA1.nc ]] + cd /gpfs/home/acad/ucl-elic/adelhass/scratch_limhr/sosie/TMP_25843 + '[' '!' -f /gpfs/home/acad/ucl-elic/adelhass/git/EnKF/conversion_uf/mask-eORCA1.nc ']' + ln -sf /gpfs/home/acad/ucl-elic/adelhass/git/EnKF/conversion_uf/mask-eORCA1.nc mask_out.nc + ln -sf /gpfs/home/acad/ucl-elic/adelhass/tools/sosie-master/bin/sosie3.x . ++ seq 1983 1983 + for year in `seq ${yearb} ${yeare}` + echo 1983 + rm -f listfiles.txt + ls /gpfs/home/acad/ucl-elic/adelhass/git/EnKF/conversion_uf/OSI-SAF-450/ice_conc_nh_ease2-250_cdr-v2p0_198312311200.nc ++ cat list_files.txt + for file in `cat list_files.txt` ++ sed -e s/ice_conc_nh_ease2-250_cdr-v2p0_// -e s/1200.nc// ++ basename /gpfs/home/acad/ucl-elic/adelhass/git/EnKF/conversion_uf/OSI-SAF-450/ice_conc_nh_ease2-250_cdr-v2p0_198312311200.nc + tag=19831231 + echo 19831231 ++ wc -l ++ ls /gpfs/home/acad/ucl-elic/adelhass/git/EnKF/conversion_uf/OSI-SAF-450/ice_conc_nh_ease2-250_cdr-v2p0_198312311200.nc /gpfs/home/acad/ucl-elic/adelhass/git/EnKF/conversion_uf/OSI-SAF-450/ice_conc_sh_ease2-250_cdr-v2p0_198312311200.nc + nfile=2 + [[ 2 == 2 ]] + echo 'Two files were found for the time stamp 19831231!' + for hemi in nh sh + filein=/gpfs/home/acad/ucl-elic/adelhass/git/EnKF/conversion_uf/OSI-SAF-450/ice_conc_nh_ease2-250_cdr-v2p0_198312311200.nc + cp -f /gpfs/home/acad/ucl-elic/adelhass/git/EnKF/conversion_uf/OSI-SAF-450/ice_conc_nh_ease2-250_cdr-v2p0_198312311200.nc data_in_nh-19831231.nc + cdo chname,status_flag,mask -eqc,0 -selvar,status_flag data_in_nh-19831231.nc mask_in_nh-19831231.nc + [[ 2 == 0 ]] + mv data_in_nh-19831231.nc data_in_smooth0_nh-19831231.nc ++ seq 1 2 + for jsmooth in `seq 1 $nbsmooth` + cdo smooth9 data_in_smooth0_nh-19831231.nc data_in_smooth1_nh-19831231.nc + for jsmooth in `seq 1 $nbsmooth` + cdo smooth9 data_in_smooth1_nh-19831231.nc data_in_smooth2_nh-19831231.nc + mv data_in_smooth2_nh-19831231.nc data_in_smooth_nh-19831231.nc + sed -e s/TTAARRGGEETT/eORCA1/ -e s/HHEEMMII/nh/ -e s/TTAAGG/19831231/ namelist_OSISAF-mask + sed -e s/TTAARRGGEETT/eORCA1/ -e s/HHEEMMII/nh/ -e s/TTAAGG/19831231/ namelist_OSISAF-conc + ./sosie3.x + cdo setmisstoc,0 -mul -selvar,at_i at_i_OSISAF-nh-eORCA1_19831231.nc -selvar,tmask OSISAF-nh_mask_on_eORCA1_19831231.nc at_i_OSISAF-nh-eORCA1_19831231_masked.nc cdo(3) selname: Open failed on >OSISAF-nh_mask_on_eORCA1_19831231.nc< No such file or directory