Changeset 77 for trunk/src/refdataget.sh
- Timestamp:
- 04/13/10 15:11:52 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/refdataget.sh
r75 r77 87 87 system=$(uname) 88 88 case "${system}" in 89 AIX|IRIX64)90 echo " www : no specific posix checking"91 ;;92 *)93 set -o posix94 ;;89 AIX|IRIX64) 90 echo " www : no specific posix checking" 91 ;; 92 *) 93 set -o posix 94 ;; 95 95 esac 96 96 unset system … … 110 110 if [ "${IRCAAM_LOG}" = "" ] 111 111 then 112 echo " eee : \${IRCAAM_LOG} not defined"113 exit 1112 echo " eee : \${IRCAAM_LOG} not defined" 113 exit 1 114 114 fi 115 115 # … … 117 117 if [ ! -d ${IRCAAM_LOG} ] 118 118 then 119 echo " eee : ${IRCAAM_LOG} not found"120 exit 1119 echo " eee : ${IRCAAM_LOG} not found" 120 exit 1 121 121 fi 122 122 # … … 124 124 if [ ! -x ${IRCAAM_LOG} ] 125 125 then 126 echo " eee : ${IRCAAM_LOG} not reachable"127 exit 1126 echo " eee : ${IRCAAM_LOG} not reachable" 127 exit 1 128 128 fi 129 129 # … … 131 131 if [ ! -w ${IRCAAM_LOG} ] 132 132 then 133 echo " eee : ${IRCAAM_LOG} not writable"134 exit 1133 echo " eee : ${IRCAAM_LOG} not writable" 134 exit 1 135 135 fi 136 136 # … … 144 144 if [ ! -w ${IRCAAM_ID} ] 145 145 then 146 echo " eee : ${IRCAAM_ID} not writable"147 exit 1146 echo " eee : ${IRCAAM_ID} not writable" 147 exit 1 148 148 fi 149 149 … … 159 159 for simu in ${list_simu} 160 160 do 161 case ${simu} in 162 CtIV|CtCl|AfNQIVIV) 163 dirref="${dirrefb}/Sim/" 164 ;; 165 AsNQIVIV) 166 dirref="${dirrefb}/Sim_As/" 167 ;; 168 TrNQIVIV) 169 dirref="${dirrefb}/Sim_Tr/" 170 ;; 171 *) 172 echo "eee : wrong \${simu}" 173 exit 1 174 esac 175 dirref="${dirref}/${simu}/" 176 for param in ${list_param} 177 do 178 year_i=${year_min} 179 while [ ${year_i} -le ${year_max} ] 180 do 181 year_c=$(printf "%4.4d" ${year_i}') 182 fileref=${param}.${simu}.${year_c}06-09.nc 183 if [ -f ${IRCAAM_ID}/${fileref} ] 184 then 185 echo "iii : ${IRCAAM_ID}/${fileref} exist" ${log} 2>&1 186 echo "iii : nothing done" >> ${log} 2>&1 187 else 188 wget --no-verbose --user=ircaam-dods --password=${dods_passwd} \ 189 -P ${IRCAAM_ID} \ 190 ${dirref}/${fileref} >> ${log} 2>&1 191 # ++ ok ? 192 # ++ si climserv faire ln -s ${dirref}/${fileref} ${VARAMMA_ID}/ 193 fi 194 year_i=$(( ${year_i} + 1 )) 195 done 196 done 161 case ${simu} in 162 CtIV|CtCl|AfNQIVIV) 163 dirref="${dirrefb}/Sim/" 164 ;; 165 AsNQIVIV) 166 dirref="${dirrefb}/Sim_As/" 167 ;; 168 TrNQIVIV) 169 dirref="${dirrefb}/Sim_Tr/" 170 ;; 171 *) 172 echo "eee : wrong \${simu}" 173 exit 1 174 ;; 175 esac 176 dirref="${dirref}/${simu}/" 177 for param in ${list_param} 178 do 179 year_i=${year_min} 180 while [ ${year_i} -le ${year_max} ] 181 do 182 year_c=$(printf "%4.4d" ${year_i}') 183 fileref=${param}.${simu}.${year_c}06-09.nc 184 if [ -f ${IRCAAM_ID}/${fileref} ] 185 then 186 echo "iii : ${IRCAAM_ID}/${fileref} exist" ${log} 2>&1 187 echo "iii : nothing done" >> ${log} 2>&1 188 else 189 wget --no-verbose --user=ircaam-dods --password=${dods_passwd} \ 190 -P ${IRCAAM_ID} \ 191 ${dirref}/${fileref} >> ${log} 2>&1 192 # ++ ok ? 193 # ++ si climserv faire ln -s ${dirref}/${fileref} ${VARAMMA_ID}/ 194 fi 195 year_i=$(( ${year_i} + 1 )) 196 done 197 done 197 198 done 198 199 199 # OLR 200 200 fileref=olr.day.mean.nc … … 202 202 if [ -f ${IRCAAM_ID}/${fileref} ] 203 203 then 204 echo "iii : ${IRCAAM_ID}/${fileref} exist" >> ${log} 2>&1205 echo "iii : nothing done" >> ${log} 2>&1204 echo "iii : ${IRCAAM_ID}/${fileref} exist" >> ${log} 2>&1 205 echo "iii : nothing done" >> ${log} 2>&1 206 206 else 207 wget --no-verbose -P ${IRCAAM_ID} ${dirref}/${fileref} >> ${log}208 # ++ ok ?207 wget --no-verbose -P ${IRCAAM_ID} ${dirref}/${fileref} >> ${log} 208 # ++ ok ? 209 209 fi 210 210 #
Note: See TracChangeset
for help on using the changeset viewer.