Changeset 617 for trunk/libIGCM/AA_pack_output
- Timestamp:
- 03/29/12 13:59:09 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/AA_pack_output
r616 r617 287 287 # echo pack n°${number_pack} ${date_file} ${date_begin_pack} ${date_end_pack} 288 288 if [ ${date_file} -le ${date_end_pack} ] && [ ${date_file} -ge ${date_begin_pack} ] ; then 289 echo ${file} >> liste_pack_${myType}_${ number_pack}.txt290 ncdump -h ${file} | grep -E 'float|double' | cut -f 1 -d '(' | cut -f 2 -d ' ' >> liste_variables_${myType}_${ number_pack}.txt289 echo ${file} >> liste_pack_${myType}_${date_begin_pack}_${date_end_pack}.txt 290 ncdump -h ${file} | grep -E 'float|double' | cut -f 1 -d '(' | cut -f 2 -d ' ' >> liste_variables_${myType}_${date_begin_pack}_${date_end_pack}.txt 291 291 (( nbfile = nbfile + 1 )) 292 292 fi 293 293 done 294 294 # Select list of variables to work with 295 list_var=$( cat liste_variables_${myType}_${ number_pack}.txt | sort | uniq -c | awk -v nbfile=$nbfile '{if ($1 != nbfile) {print $2}}' | paste -s -d ',' )296 liste_file_tmp=$( for i in $( cat liste_pack_${myType}_${ number_pack}.txt ) ; do basename $i ; done )295 list_var=$( cat liste_variables_${myType}_${date_begin_pack}_${date_end_pack}.txt | sort | uniq -c | awk -v nbfile=$nbfile '{if ($1 != nbfile) {print $2}}' | paste -s -d ',' ) 296 liste_file_tmp=$( for i in $( cat liste_pack_${myType}_${date_begin_pack}_${date_end_pack}.txt ) ; do basename $i ; done ) 297 297 # Create packed files 298 298 IGCM_debug_Print 1 "Ncrcat ongoing for ${dir} and ${myType}" 299 299 output=${JobName}_${date_begin_pack}_${date_end_pack}_${myType} 300 #cat liste_pack_${myType}_${ number_pack}.txt | xargs ncrcat -v ${list_var} -o ${output}300 #cat liste_pack_${myType}_${date_begin_pack}_${date_end_pack}.txt | xargs ncrcat -v ${list_var} -o ${output} 301 301 if [ X${list_var} = X ] ; then 302 302 IGCM_sys_ncrcat -p ${dir} ${liste_file_tmp} --output ${output} … … 317 317 IGCM_sys_Rm ${output} 318 318 # Clean files used by ncrcat 319 cat liste_pack_${myType}_${ number_pack}.txt | xargs rm319 cat liste_pack_${myType}_${date_begin_pack}_${date_end_pack}.txt | xargs rm 320 320 # Save the list of files that has been pack (ncrcat) 321 321 mv liste_pack_${myType}_${date_begin_pack}_${date_end_pack}.txt ${STORE_DEBUG}
Note: See TracChangeset
for help on using the changeset viewer.