Changeset 527 for trunk


Ignore:
Timestamp:
04/17/12 12:28:16 (12 years ago)
Author:
pinsard
Message:

usage of key_performance

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/cresamsu.pro

    r525 r527  
    141141@cm_project 
    142142 
     143if keyword_set(key_performance) EQ 1 THEN BEGIN 
     144    time1 = SYSTIME(1) 
     145ENDIF 
     146; 
    143147tbmin=100 
    144148tbmax=350 
     
    346350 
    347351nextday: 
    348     PRINT,'www : passage au fichier suivant ', SYSTIME() 
     352       IF key_performance EQ 1 THEN BEGIN 
     353           PRINT,'ppp : durée intermediaire cresamsu au passage au fichier suivant ', SYSTIME(1)-time1, format='(a, 1x,F12.6)' 
     354       ENDIF 
    349355      endfor 
    350356   endfor 
  • trunk/src/extract_amsua.pro

    r525 r527  
    281281@cm_project 
    282282@common 
    283  
     283; 
     284if keyword_set(key_performance) EQ 1 THEN BEGIN 
     285    time1 = SYSTIME(1) 
     286ENDIF 
     287; 
    284288; test if some files to read 
    285289CASE size(files_list,/DIMENSION) OF 
     
    301305tbmin=100 
    302306tbmax=350 
    303 PRINT, 'www : debut programme extract_amsu',SYSTIME() 
     307; 
    304308jpie = n_elements(xxe) 
    305309jpje = n_elements(yye) 
     
    315319print, 'iii : traitement du jour ',yyyy,mm,dd 
    316320a = STRARR(nb_file) 
    317 ;PRINT,'demarrage boucle sur lichiers', SYSTIME() 
     321IF key_performance EQ 1 THEN BEGIN 
     322    PRINT, 'ppp : durée intermediaire extract_amsua demarrage boucle sur fichier ', SYSTIME(1)-time1 
     323ENDIF 
    318324FOR ifile = 0, nb_file - 1 do begin 
    319325   filea = files_list[ifile] 
     
    321327   COMMON amsua_header,ama_head 
    322328   COMMON amsua_data  ,ama_scan 
    323    print, 'ouverture et lecture du fichier ', filea, SYSTIME() 
     329   IF key_performance EQ 1 THEN BEGIN 
     330       print, 'ppp : durée intermediaire extract_amsua ouverture et lecture du fichier', filea, SYSTIME(1)-time1, format='(a, 1x, a, 1x, F12.6)' 
     331   ENDIF 
    324332   openr,lu1,filea,Error=erra,/get_lun 
    325333   read_amsua1c,filea, flag1 
     
    356364   ttt=REFORM(ama_scan.scnlintime/3600000.) 
    357365   jnd=where(amalong[midpix,*] gt lonmin-15 and amalong[midpix,*] lt lonmax+15 and amalati[midpix,*] gt latmin-15 and amalati[midpix,*] lt latmax+15 ,nzon) 
    358    print,"iii : nb de points du fichier dans le domaine geographique +15deg ",nzon, SYSTIME() 
     366   IF key_performance EQ 1 THEN BEGIN 
     367       print, 'ppp : durée intermediaire extract_amsua nb de points du fichier dans le domaine geographique +15deg', nzon, SYSTIME(1)-time1, format='(a, 1x, I12.12, 1x, F12.6)' 
     368   ENDIF 
     369   openr,lu1,filea,Error=erra,/get_lun 
    359370   if nzon gt 1 then begin 
    360371      amalat=amalati[*,jnd] 
     
    382393         ch_nadir=fltarr(nbpix,nzon) 
    383394         landseamask=intarr(nbpix,nzon)+2 ; valeur hors zone selectionnee 
    384         ; PRINT,'boucle sur les points du fichier, correction nadir', SYSTIME() 
     395         IF key_performance EQ 1 THEN BEGIN 
     396               PRINT, 'ppp : durée intermediaire extract_amsua boucle sur les points du fichier, correction nadir', SYSTIME(1)-time1, format='(a, 1x, F12.6)' 
     397         ENDIF 
    385398 
    386399         for isc=0L,nzon-1L do begin 
     
    418431 
    419432         endfor 
    420         ; PRINT, 'fin boucle ',SYSTIME() 
     433        IF key_performance EQ 1 THEN BEGIN 
     434             PRINT, 'ppp : durée intermediaire extract_amsua fin boucle ', SYSTIME(1)-time1, format='(a, 1x, F12.6)' 
     435        ENDIF 
    421436         moych=fltarr(nbpix) 
    422437 
     
    468483            endif 
    469484         endfor 
    470      ; PRINT,'fin interpolation et selection des points de la zone ', SYSTIME() 
     485         IF key_performance EQ 1 THEN BEGIN 
     486             PRINT, 'ppp : durée intermediaire extract_amsua fin interpolation et selection des points de la zone ', SYSTIME(1)-time1, format='(a, 1x, F12.6)' 
     487         ENDIF 
    471488 
    472489         nn=n_elements(chint) 
     
    499516; fin boucle sur les fichiers lus 
    500517   endif 
    501    PRINT,'www : passage au fichier suivant ', SYSTIME() 
     518   IF key_performance EQ 1 THEN BEGIN 
     519       PRINT, 'ppp : durée intermediaire extract_amsua au passage au fichier suivant  ', SYSTIME(1)-time1, format='(a, 1x, F12.6)' 
     520   ENDIF 
    502521endfor 
    503522labfile: 
     
    532551 
    533552realend: 
    534     PRINT, 'www : fin programme extract_amsua ',SYSTIME() 
     553    IF key_performance EQ 1 THEN BEGIN 
     554       PRINT, 'ppp : durée totale extract_amsua ', SYSTIME(1)-time1, format='(a, 1x, F12.6)' 
     555   ENDIF 
    535556end 
  • trunk/src/file_bathy_to_mem.pro

    r525 r527  
    9797@cm_project 
    9898@common 
    99  
    10099; Return to caller if errors 
    101100ON_ERROR, 2 
    102101; 
    103102result = -1 
    104  
    105 PRINT, 'www : debut programme file_bathy_to_mem',SYSTIME() 
     103; 
     104if keyword_set(key_performance) EQ 1 THEN BEGIN 
     105    time1 = SYSTIME(1) 
     106ENDIF 
     107; 
    106108; lecture fichier land - sea (S. Masson) 
    107109file=project_id_env+'/MASK/ETOPO1_Ice_g_gmt4.nc' 
     
    120122zony=where(yye1 ge latmin-15. and yye1 le latmax+15.) 
    121123yye=yye1[zony] 
    122  
     124; 
     125IF key_performance EQ 1 THEN BEGIN 
     126    PRINT, 'ppp : durée file_bathy_to_mem :', SYSTIME(1)-time1, format='(a, 1x, F12.6)' 
     127ENDIF 
     128; 
    123129result = 0 
    124130return, result 
  • trunk/src/traite_amsuab.sh

    r521 r527  
    424424echo "hostname=${hostname}" 1>> ${log} 
    425425echo "runtime=${log_date}" 1>> ${log} 
     426echo "log=${log}" 1>> ${log} 
    426427echo "IDL_CMD=${IDL_CMD}" 1>> ${log} 
    427428unset log_date 
     
    525526.compile interpol_correc 
    526527.compile extract_amsua 
     528key_performance = 1 
    527529     result = traite_amsu_${$}() 
    528530EOF 
Note: See TracChangeset for help on using the changeset viewer.