- Timestamp:
- 04/20/12 10:43:38 (12 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/extract_amsua.pro
r531 r534 158 158 ; 159 159 ; $URL$ 160 ; 161 ; - fplod 20120420 162 ; 163 ; * remove extra openr to avoid 164 ; ``% GET_LUN: All available logical units are currently in use`` 165 ; openr is included in :ref:`read_amsua1c.pro` 160 166 ; 161 167 ; - fplod 20120417 … … 326 332 ; boucle sur les elements de la liste 327 333 328 msg = report(['iii : ' + routine + ' : traitement du jour' + string(yyyy, format='(1x,I4.4)') + string(mm, format='(I2.2)') + string(dd, format='(I2.2)')]) 334 msg = report(['iii : ' + routine + ' : traitement du jour' $ 335 + string(yyyy, format='(1x,I4.4)') $ 336 + string(mm, format='(I2.2)') $ 337 + string(dd, format='(I2.2)')]) 329 338 a = STRARR(nb_file) 339 330 340 IF key_performance EQ 1 THEN BEGIN 331 341 msg = report(['ppp : ' + routine + ' : durï¿œe intermediaire demarrage boucle sur fichier ' $ … … 341 351 + string(SYSTIME(1)-time1,format='(F12.6)')]) 342 352 ENDIF 343 openr,lu1,filea,Error=error,/get_lun344 IF (error NE 0) then begin345 ras = report(['eee : can not open for reading'$346 + '!C' $347 + 'code : ' + !ERROR_STATE.MSG $348 + filea])349 STOP350 ENDIF351 352 353 read_amsua1c,filea, flag1 353 close,lu1354 free_lun,lu1355 354 if (flag1 eq 0) then goto, labfile 356 355 na=SIZE(reform(ama_scan.btemps[0,*,*])) … … 385 384 msg = report(['iii : ' + routine + ' : nb de points du fichier dans le domaine geographique +15deg ' + string(nzon,format='(I8.8)')]) 386 385 IF key_performance EQ 1 THEN BEGIN 387 msg = report(['ppp : ' + routine + ' : durï¿œe intermediaire avant openr filea' $386 msg = report(['ppp : ' + routine + ' : durï¿œe intermediaire avant test nzon' $ 388 387 + string(SYSTIME(1)-time1,format='(F12.6)')]) 389 388 ENDIF 390 openr,lu1,filea,Error=error,/get_lun391 389 if nzon gt 1 then begin 392 390 amalat=amalati[*,jnd] -
trunk/src/read_amsua1c.pro
r528 r534 34 34 ; $Id: read_amsua1c.pro 235 2011-05-16 15:52:50Z pinsard $ 35 35 ; 36 ; - fplod 20120420 37 ; 38 ; * use get_lun instead of hard coded unit 39 ; 36 40 ; - fplod 20120417 37 41 ; … … 63 67 ; 64 68 ; Open input file 65 OPENR, 1,filename, ERROR = error69 OPENR, lu,filename, ERROR = error,/GET_LUN 66 70 IF (error NE 0) then begin 67 71 ras = report(['eee : can not open for reading'$ … … 74 78 ; Define and read in header structure 75 79 define_amsua_header_struct 76 READU, 1, ama_head80 READU, lu, ama_head 77 81 ; byteorder,ama_head,/Lswap 78 82 ; … … 83 87 ; read each scanline sperately 84 88 FOR i = 0L,ama_head.h_scnlin-1 DO BEGIN 85 ; if (eof( 1) eq 0) then goto, pb_file86 READU, 1,one_scana89 ; if (eof(lu) eq 0) then goto, pb_file 90 READU, lu, one_scana 87 91 ;byteorder,one_scana,/Lswap 88 92 ama_scan[i] = one_scana … … 91 95 ; Close input file 92 96 pb_file: 93 CLOSE,1 97 CLOSE, lu 98 FREE_LUN, lu 94 99 95 100 IF key_performance EQ 1 THEN BEGIN
Note: See TracChangeset
for help on using the changeset viewer.