Changeset 240 for trunk/SRC/ToBeReviewed


Ignore:
Timestamp:
03/28/07 14:17:24 (17 years ago)
Author:
pinsard
Message:

replace some print by some report in some .pro (continuation)

Location:
trunk/SRC/ToBeReviewed
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/CALCULS/grossemoyenne.pro

    r237 r240  
    556556  if dirt EQ 1 AND keyword_set(spatialfirst) then BEGIN 
    557557    IF (reverse(size(res, /dimension)))[0] NE jpt THEN BEGIN 
    558       print, 'the last dimension of res is not equal to jpt: '+strtrim(jpt, 2) 
     558      ras = report('the last dimension of res is not equal to jpt: '+strtrim(jpt, 2)) 
    559559      if keyword_set(savedbox) THEN restoreboxparam, 'boxparam4grmoyenne.dat' 
    560560      return, -1 
  • trunk/SRC/ToBeReviewed/GRILLE/domdef.pro

    r232 r240  
    248248      IF (dom[0] EQ -1) THEN BEGIN 
    249249        IF keyword_set(findalways) THEN BEGIN 
    250           print, 'WARNING, empty T points box... we get the neighnors to define a new box...' 
     250          ras = report('WARNING, empty T points box... we get the neighnors to define a new box...') 
    251251          neig1 = neighbor(lon1, lat1, glamt, gphit, sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
    252252          neig2 = neighbor(lon2, lat2, glamt, gphit, sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
     
    284284            CASE 1 OF 
    285285              (where(gridtype eq 'T'))[0] NE -1 OR (where(gridtype EQ 'W'))[0] NE -1:BEGIN 
    286                 print, 'WARNING, empty U points box... we use the same index as T points...' 
     286                ras = report('WARNING, empty U points box... we use the same index as T points...') 
    287287                firstxu = firstxt & lastxu = lastxt & nxu = nxt 
    288288                firstyu = firstyt & lastyu = lastyt & nyu = nyt 
    289289              END 
    290290              ELSE:BEGIN 
    291                 print, 'WARNING, empty U points box... we get the neighnors to define a new box...' 
     291                ras = report('WARNING, empty U points box... we get the neighnors to define a new box...') 
    292292                neig1 = neighbor(lon1, lat1, glamu, gphiu, sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
    293293                neig2 = neighbor(lon2, lat2, glamu, gphiu, sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
     
    327327            CASE 1 OF 
    328328              (where(gridtype eq 'T'))[0] NE -1 OR (where(gridtype EQ 'W'))[0] NE -1:BEGIN 
    329                 print, 'WARNING, empty V points box... we use the same index as T points...' 
     329                ras = report('WARNING, empty V points box... we use the same index as T points...') 
    330330                firstxv = firstxt & lastxv = lastxt & nxv = nxt 
    331331                firstyv = firstyt & lastyv = lastyt & nyv = nyt 
    332332              END 
    333333              (where(gridtype eq 'U'))[0] NE -1:BEGIN 
    334                 print, 'WARNING, empty V points box... we use the same index as U points...' 
     334                ras = report('WARNING, empty V points box... we use the same index as U points...') 
    335335                firstxv = firstxu & lastxv = lastxu & nxv = nxu 
    336336                firstyv = firstyu & lastyv = lastyu & nyv = nyu 
    337337              END 
    338338              ELSE:BEGIN 
    339                 print, 'WARNING, empty V points box... we get the neighnors to define a new box...' 
     339                ras = report('WARNING, empty V points box... we get the neighnors to define a new box...') 
    340340                neig1 = neighbor(lon1, lat1, glamv, gphiv, sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
    341341                neig2 = neighbor(lon2, lat2, glamv, gphiv, sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
     
    375375            CASE 1 OF 
    376376              (where(gridtype eq 'T'))[0] NE -1 OR (where(gridtype EQ 'W'))[0] NE -1:BEGIN 
    377                 print, 'WARNING, empty F points box... we use the same index as T points...' 
     377                ras = report('WARNING, empty F points box... we use the same index as T points...') 
    378378                firstxf = firstxt & lastxf = lastxt & nxf = nxt 
    379379                firstyf = firstyt & lastyf = lastyt & nyf = nyt 
    380380              END 
    381381              (where(gridtype eq 'U'))[0] NE -1:BEGIN 
    382                 print, 'WARNING, empty F points box... we use the same index as U points...' 
     382                ras = report('WARNING, empty F points box... we use the same index as U points...') 
    383383                firstxf = firstxu & lastxf = lastxu & nxf = nxu 
    384384                firstyf = firstyu & lastyf = lastyu & nyf = nyu 
    385385              END 
    386386              (where(gridtype eq 'V'))[0] NE -1:BEGIN 
    387                 print, 'WARNING, empty F points box... we use the same index as V points...' 
     387                ras = report('WARNING, empty F points box... we use the same index as V points...') 
    388388                firstxf = firstxv & lastxf = lastxv & nxf = nxv 
    389389                firstyf = firstyv & lastyf = lastyv & nyf = nyv 
    390390              END 
    391391              ELSE:BEGIN 
    392                 print, 'WARNING, empty F points box... we get the neighnors to define a new box...' 
     392                ras = report('WARNING, empty F points box... we get the neighnors to define a new box...') 
    393393                neig1 = neighbor(lon1, lat1, glamf, gphif, sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
    394394                neig2 = neighbor(lon2, lat2, glamf, gphif, sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
     
    497497          IF (dom[0] EQ -1) THEN BEGIN 
    498498            IF keyword_set(findalways) THEN BEGIN 
    499               print, 'WARNING, empty T points box... we get the neighnors to define a new box...' 
     499              ras = report('WARNING, empty T points box... we get the neighnors to define a new box...') 
    500500              neig1 = neighbor(lon1, lat1, glamt[fstx:lstx, *], gphit[fstx:lstx, *], sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
    501501              neig2 = neighbor(lon2, lat2, glamt[fstx:lstx, *], gphit[fstx:lstx, *], sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
     
    528528                CASE 1 OF 
    529529                  (where(gridtype eq 'T'))[0] NE -1 OR (where(gridtype EQ 'W'))[0] NE -1:BEGIN 
    530                     print, 'WARNING, empty U points box... we use the same index as T points...' 
     530                    ras = report( 'WARNING, empty U points box... we use the same index as T points...') 
    531531                    firstyu = firstyt & lastyu = lastyt & nyu = nyt 
    532532                  END 
    533533                  ELSE:BEGIN 
    534                     print, 'WARNING, empty U points box... we get the neighnors to define a new box...' 
     534                    ras = report('WARNING, empty U points box... we get the neighnors to define a new box...') 
    535535                    neig1 = neighbor(lon1, lat1, glamu[fstx:lstx, *], gphiu[fstx:lstx, *], sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
    536536                    neig2 = neighbor(lon2, lat2, glamu[fstx:lstx, *], gphiu[fstx:lstx, *], sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
     
    566566                CASE 1 OF 
    567567                  (where(gridtype eq 'T'))[0] NE -1 OR (where(gridtype EQ 'W'))[0] NE -1:BEGIN 
    568                     print, 'WARNING, empty V points box... we use the same index as T points...' 
     568                    ras = report('WARNING, empty V points box... we use the same index as T points...') 
    569569                    firstyv = firstyt & lastyv = lastyt & nyv = nyt 
    570570                  END 
    571571                  (where(gridtype eq 'U'))[0] NE -1:BEGIN 
    572                     print, 'WARNING, empty V points box... we use the same index as U points...' 
     572                    ras = report('WARNING, empty V points box... we use the same index as U points...') 
    573573                    firstyv = firstyu & lastyv = lastyu & nyv = nyu 
    574574                  END 
    575575                  ELSE:BEGIN 
    576                     print, 'WARNING, empty V points box... we get the neighnors to define a new box...' 
     576                    ras = report('WARNING, empty V points box... we get the neighnors to define a new box...') 
    577577                    neig1 = neighbor(lon1, lat1, glamv[fstx:lstx, *], gphiv[fstx:lstx, *], sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
    578578                    neig2 = neighbor(lon2, lat2, glamv[fstx:lstx, *], gphiv[fstx:lstx, *], sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
     
    608608                CASE 1 OF 
    609609                  (where(gridtype eq 'T'))[0] NE -1 OR (where(gridtype EQ 'W'))[0] NE -1:BEGIN 
    610                     print, 'WARNING, empty F points box... we use the same index as T points...' 
     610                    ras = report('WARNING, empty F points box... we use the same index as T points...') 
    611611                    firstyf = firstyt & lastyf = lastyt & nyf = nyt 
    612612                  END 
    613613                  (where(gridtype eq 'U'))[0] NE -1:BEGIN 
    614                     print, 'WARNING, empty F points box... we use the same index as U points...' 
     614                    ras = report('WARNING, empty F points box... we use the same index as U points...') 
    615615                    firstyf = firstyu & lastyf = lastyu & nyf = nyu 
    616616                  END 
    617617                  (where(gridtype eq 'V'))[0] NE -1:BEGIN 
    618                     print, 'WARNING, empty F points box... we use the same index as V points...' 
     618                    ras = report('WARNING, empty F points box... we use the same index as V points...') 
    619619                    firstyf = firstyv & lastyf = lastyv & nyf = nyv 
    620620                  END 
    621621                  ELSE:BEGIN 
    622                     print, 'WARNING, empty F points box... we get the neighnors to define a new box...' 
     622                    ras = report('WARNING, empty F points box... we get the neighnors to define a new box...') 
    623623                    neig1 = neighbor(lon1, lat1, glamf[fstx:lstx, *], gphif[fstx:lstx, *], sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
    624624                    neig2 = neighbor(lon2, lat2, glamf[fstx:lstx, *], gphif[fstx:lstx, *], sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
     
    665665          IF (dom[0] EQ -1) THEN BEGIN 
    666666            IF keyword_set(findalways) THEN BEGIN 
    667               print, 'WARNING, empty T points box... we get the neighnors to define a new box...' 
     667              ras = report('WARNING, empty T points box... we get the neighnors to define a new box...') 
    668668              neig1 = neighbor(lon1, lat1, glamt[*, fsty:lsty], gphit[*, fsty:lsty], sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
    669669              neig2 = neighbor(lon2, lat2, glamt[*, fsty:lsty], gphit[*, fsty:lsty], sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
     
    696696                CASE 1 OF 
    697697                  (where(gridtype eq 'T'))[0] NE -1 OR (where(gridtype EQ 'W'))[0] NE -1:BEGIN 
    698                     print, 'WARNING, empty U points box... we use the same index as T points...' 
     698                    ras = report('WARNING, empty U points box... we use the same index as T points...') 
    699699                    firstxu = firstxt & lastxu = lastxt & nxu = nxt 
    700700                  END 
    701701                  ELSE:BEGIN 
    702                     print, 'WARNING, empty U points box... we get the neighnors to define a new box...' 
     702                    ras = report('WARNING, empty U points box... we get the neighnors to define a new box...') 
    703703                    neig1 = neighbor(lon1, lat1, glamu[*, fsty:lsty], gphiu[*, fsty:lsty], sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
    704704                    neig2 = neighbor(lon2, lat2, glamu[*, fsty:lsty], gphiu[*, fsty:lsty], sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
     
    734734                CASE 1 OF 
    735735                  (where(gridtype eq 'T'))[0] NE -1 OR (where(gridtype EQ 'W'))[0] NE -1:BEGIN 
    736                     print, 'WARNING, empty V points box... we use the same index as T points...' 
     736                    ras = report('WARNING, empty V points box... we use the same index as T points...') 
    737737                    firstxv = firstxt & lastxv = lastxt & nxv = nxt 
    738738                  END 
    739739                  (where(gridtype eq 'U'))[0] NE -1:BEGIN 
    740                     print, 'WARNING, empty V points box... we use the same index as U points...' 
     740                    ras = report('WARNING, empty V points box... we use the same index as U points...') 
    741741                    firstxv = firstxu & lastxv = lastxu & nxv = nxu 
    742742                  END 
    743743                  ELSE:BEGIN 
    744                     print, 'WARNING, empty V points box... we get the neighnors to define a new box...' 
     744                    ras = report('WARNING, empty V points box... we get the neighnors to define a new box...') 
    745745                    neig1 = neighbor(lon1, lat1, glamv[*, fsty:lsty], gphiv[*, fsty:lsty], sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
    746746                    neig2 = neighbor(lon2, lat2, glamv[*, fsty:lsty], gphiv[*, fsty:lsty], sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
     
    776776                CASE 1 OF 
    777777                  (where(gridtype eq 'T'))[0] NE -1 OR (where(gridtype EQ 'W'))[0] NE -1:BEGIN 
    778                     print, 'WARNING, empty F points box... we use the same index as T points...' 
     778                    ras = report('WARNING, empty F points box... we use the same index as T points...') 
    779779                    firstxf = firstxt & lastxf = lastxt & nxf = nxt 
    780780                  END 
    781781                  (where(gridtype eq 'U'))[0] NE -1:BEGIN 
    782                     print, 'WARNING, empty F points box... we use the same index as U points...' 
     782                    ras = report('WARNING, empty F points box... we use the same index as U points...') 
    783783                    firstxf = firstxu & lastxf = lastxu & nxf = nxu 
    784784                  END 
    785785                  (where(gridtype eq 'V'))[0] NE -1:BEGIN 
    786                     print, 'WARNING, empty F points box... we use the same index as V points...' 
     786                    ras = report('WARNING, empty F points box... we use the same index as V points...') 
    787787                    firstxf = firstxv & lastxf = lastxv & nxf = nxv 
    788788                  END 
    789789                  ELSE:BEGIN 
    790                     print, 'WARNING, empty F points box... we get the neighnors to define a new box...' 
     790                    ras = report('WARNING, empty F points box... we get the neighnors to define a new box...') 
    791791                    neig1 = neighbor(lon1, lat1, glamf[*, fsty:lsty], gphif[*, fsty:lsty], sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
    792792                    neig2 = neighbor(lon2, lat2, glamf[*, fsty:lsty], gphif[*, fsty:lsty], sphere = keyword_set(key_onearth) * keyword_set(key_irregular)) 
  • trunk/SRC/ToBeReviewed/HOPE/findlineandpointtype.pro

    r231 r240  
    8585         if (jpi NE 128 and jpi NE 256) $ 
    8686          OR (jpj NE 121 AND jpj NE 121*2 AND jpj NE 195 AND jpj NE 195*2) then begin 
    87             print,  'CASE NOT coded...' 
     87            ras = report('CASE NOT coded...') 
    8888            stop 
    8989         ENDIF 
     
    106106                        END 
    107107                        ELSE:BEGIN 
    108                            print,  'CASE NOT coded...' 
     108                           ras = report('CASE NOT coded...') 
    109109                           stop 
    110110                        END 
     
    134134                        END 
    135135                        ELSE:BEGIN 
    136                            print,  'CASE NOT coded...' 
     136                           ras = report('CASE NOT coded...') 
    137137                           stop 
    138138                        END 
     
    151151                  1.4:vargrid = 'U' 
    152152                  ELSE:BEGIN 
    153                      print,  'CASE NOT coded...' 
     153                     ras = report('CASE NOT coded...') 
    154154                     stop 
    155155                  END 
     
    162162                  2.8:vargrid = 'U' 
    163163                  ELSE:BEGIN 
    164                      print,  'CASE NOT coded...' 
     164                     ras = report('CASE NOT coded...') 
    165165                     stop 
    166166                  END 
     
    168168            END 
    169169            ELSE:BEGIN 
    170                print,  'CASE NOT coded...' 
     170               ras = report('CASE NOT coded...') 
    171171               stop 
    172172            END 
     
    175175      'xz':BEGIN 
    176176         if (jpi NE 128 and jpi NE 256) then begin 
    177             print,  'CASE NOT coded...' 
     177            ras = report('CASE NOT coded...') 
    178178            stop 
    179179         ENDIF 
     
    188188               test = (where(lat EQ yaxis[0]))[0] 
    189189               if test EQ -1 then begin 
    190                   print,  'CASE NOT coded...' 
     190                  ras = report('CASE NOT coded...') 
    191191                  stop 
    192192               endif 
     
    206206                  test = (where(lat EQ yaxis[0]))[0] 
    207207                  if test EQ -1 then begin 
    208                      print,  'CASE NOT coded...' 
     208                     ras = report('CASE NOT coded...') 
    209209                     stop 
    210210                  endif 
     
    230230      'yz':BEGIN 
    231231         if (jpj NE 121 AND jpj NE 195) then begin 
    232             print,  'CASE NOT coded...' 
     232            ras= report('CASE NOT coded...') 
    233233            stop 
    234234         ENDIF 
     
    243243                  (where(lonTodd+xstep EQ xaxis[0]))[0] NE -1:vargrid = 'U' 
    244244                  ELSE:BEGIN 
    245                      print,  'CASE NOT coded...' 
     245                     ras = report('CASE NOT coded...') 
    246246                     stop 
    247247                  END 
     
    256256                  (where(lonTodd-xstep EQ xaxis[0]))[0] NE -1:vargrid = 'T' 
    257257                  ELSE:BEGIN 
    258                      print,  'CASE NOT coded...' 
     258                     ras = report('CASE NOT coded...') 
    259259                     stop 
    260260                  END 
     
    269269                  (where(lonTodd+xstep EQ xaxis[0]))[0] NE -1:vargrid = 'U' 
    270270                  ELSE:BEGIN 
    271                      print,  'CASE NOT coded...' 
     271                     ras = report('CASE NOT coded...') 
    272272                     stop 
    273273                  END 
     
    282282                  (where(lonTodd-xstep EQ xaxis[0]))[0] NE -1:vargrid = 'T' 
    283283                  ELSE:BEGIN 
    284                      print,  'CASE NOT coded...' 
     284                     ras = report('CASE NOT coded...') 
    285285                     stop 
    286286                  END 
     
    288288            END 
    289289            ELSE:BEGIN 
    290                print,  'CASE NOT coded...' 
     290               ras = report('CASE NOT coded...') 
    291291               stop 
    292292            END 
     
    295295      END 
    296296      else:BEGIN 
    297          print, 'case not coded' 
     297         ras = report('CASE NOT coded...') 
    298298         stop 
    299299      END 
  • trunk/SRC/ToBeReviewed/LECTURE/ncdf_lec.pro

    r232 r240  
    6565   cdfid=ncdf_open(iodir+nom) 
    6666;------------------------------------------------------------ 
    67 ; Wht does the file contain?? 
     67; What does the file contain?? 
    6868;------------------------------------------------------------ 
    6969   wathinside=ncdf_inquire(cdfid) 
    7070;   print,'in the file, ',iodir+nom,', there are:' 
    7171   if keyword_set(dim) then begin 
    72       print,'nombre de dimensions: ',strtrim(wathinside.ndims,1) 
    73       print,'numero de la dimension dont la valeur est infini: ',strtrim(wathinside.recdim,1) 
     72      ras = report(['number of dimensions: ' + strtrim(wathinside.ndims,1), $ 
     73      'number of the dimension which value is infinite : ',strtrim(wathinside.recdim,1)]) 
    7474   endif 
    7575   if keyword_set(var) then $ 
    76     if size(var, /type) NE 7 then print,'nombre de variables  :',strtrim(wathinside.nvars,1) 
     76    if size(var, /type) NE 7 then ras = report('number of variables  :'+strtrim(wathinside.nvars,1)) 
    7777   if keyword_set(att) then begin 
    7878      if strlowcase(att) ne 'global' then goto,nonglobal 
    79       print,'nombre de attributs globaux :',strtrim(wathinside.ngatts,1) 
     79      ras = report('number of global attributes :' + strtrim(wathinside.ngatts,1)) 
    8080   endif 
    8181;------------------------------------------------------------ 
     
    8888         name=ncdf_attname(cdfid,attiq,/global) ;attribute's name 
    8989         ncdf_attget,cdfid,name,value,/global ;attribute's value 
    90          print,name,': ',string(value) 
     90         ras = report(name + ': ' + string(value)) 
    9191      endfor 
    9292   endif 
     
    106106      tailledim[dimiq]=value 
    107107      if keyword_set(dim) then begin 
    108          print,'dimension numero ',strtrim(dimiq,1),', nom: ',nomdim[dimiq] $ 
    109           ,', valeur: ' ,strtrim(tailledim[dimiq],1) 
     108         ras = report('dimension number ' + strtrim(dimiq,1) + ', name: ' + $ 
     109               nomdim[dimiq] + ' value: ' + strtrim(tailledim[dimiq],1)) 
    110110      endif 
    111111   endfor 
     
    130130         if strlowcase(att) eq strlowcase(varcontent.name) or keyword_set(var) $ 
    131131          then begin 
    132             print,'variable numero: ',strtrim(varid,1),', nom:',varcontent.name $ 
    133              ,', type:' ,varcontent.datatype,', dimensions:',nomdim[varcontent.dim] 
     132            ras = report('variable number: ' + strtrim(varid,1) + $ 
     133                  ', name:' + varcontent.name + $ 
     134                  ', type:' + varcontent.datatype + $ 
     135                  ', dimensions:' + nomdim[varcontent.dim]) 
    134136            if strlowcase(att) eq strlowcase(varcontent.name) then begin 
    135137               for attiq=0,varcontent.natts-1 do begin 
    136138                  name=ncdf_attname(cdfid,varid,attiq) 
    137139                  ncdf_attget,cdfid,varid,name,value 
    138                   print,'     ',strtrim(attiq),' ',name,': ',strtrim(string(value),1) 
     140                  ras = report('     ' + strtrim(attiq) + ' ' + $ 
     141                        ' name : ' + strtrim(string(value),1)) 
    139142               endfor 
    140143               goto, sortie 
  • trunk/SRC/ToBeReviewed/LECTURE/read_ncdf.pro

    r238 r240  
    486486        missing_value = strmid(missing_value, 0, strlen(missing_value)-1) 
    487487      IF isnumber(string(missing_value), tmp) EQ 1 THEN missing_value = tmp ELSE BEGIN 
    488         print, 'Warning: missing value is not a number: ', missing_value 
     488        ras = report('Warning: missing value is not a number: ' + missing_value) 
    489489        missing_value = - 1 
    490490      ENDELSE 
  • trunk/SRC/ToBeReviewed/PLOTS/DESSINE/bar_plot.pro

    r232 r240  
    141141; 
    142142if (n_params(d) eq 0) then begin  ;Print call & return if no parameters 
    143   print,'bar_test,values,baselines=baselines,colors=colors,barnames=barnames,$' 
    144   print,' title=title,xtitle=xtitle,ytitle=ytitle,baserange=baserange, $' 
    145   print,' barwidth=barwidth,barspace=barspace,baroffset=baroffset, $' 
    146   print,' outline=outline,overplot=overplot,background=background, $' 
    147   print,' rotate=rotate' 
     143  ras = report(['bar_test,values,baselines=baselines,colors=colors,barnames=barnames,$', $ 
     144  ' title=title,xtitle=xtitle,ytitle=ytitle,baserange=baserange, $', $ 
     145  ' barwidth=barwidth,barspace=barspace,baroffset=baroffset, $', $ 
     146  ' outline=outline,overplot=overplot,background=background, $', $ 
     147  ' rotate=rotate']) 
    148148  return 
    149149endif 
  • trunk/SRC/ToBeReviewed/PLOTS/DESSINE/pltt.pro

    r232 r240  
    277277 
    278278   IF type EQ 't' AND keyword_set(filter) THEN BEGIN 
    279       print, '    Applying a running mean filter of width '+string(filter, format = '(I3)') 
     279      ras = report('    Applying a running mean filter of width '+string(filter, format = '(I3)')) 
    280280      z2d = smooth(z2d, filter) 
    281281      z2d[0:filter/2-1] = 0. 
  • trunk/SRC/ToBeReviewed/PLOTS/LABEL/label_gmt.pro

    r231 r240  
    5959      max=level_z2d[Ncontour-1]+intervalle 
    6060 
    61       print, '     Number of contour intervals, plotting min & max ', ncontour, min, max 
    62       print, ' ' 
     61      ras = report(['     Number of contour intervals, plotting min & max ' + $ 
     62string(ncontour) + string(min)+ string(max),' ']) 
    6363 
    6464      ; color index 
  • trunk/SRC/ToBeReviewed/POSTSCRIPT/chcolps.pro

    r231 r240  
    162162                      strput, ligne, color, pos-18 
    163163                ENDIF ELSE BEGIN 
    164 ;                      print, 'erreur ligne :', nl 
     164;                     ras = report('erreur ligne :' + string(nl)) 
    165165                      dist = abs(r-red)+abs(g-green)+abs(b-blue) 
    166166                      ind = (where(dist EQ min(dist)))[0] 
    167167                      ind = ind[0] 
    168 ;                      print, 'je trouve            ', long([r, g, b]) 
    169 ;                      print, 'je remplace par ', [red[ind], green[ind], blue[ind]] 
     168;                      ras = report( $ 
     169;                       ['I found ' + string(long([r, g, b])), $ 
     170;                       'I replace it by ' + string([red[ind], green[ind], blue[ind]])]) 
    170171                      r1 = red1[ind]/255. 
    171172                      g1 = green1[ind]/255. 
     
    191192          ENDIF  
    192193; 
    193 ; Ecrit le fichier de sorti 
     194; Ecrit le fichier de sortie 
    194195; 
    195196          printf, numout, ligne, format = '(A)' 
  • trunk/SRC/ToBeReviewed/POSTSCRIPT/ps.pro

    r238 r240  
    2323; We have to close the journal! 
    2424;------------------------------------------------------------ 
    25    if !journal EQ 0 then print, 'ERROR: The Journal is not open !!' 
     25   if !journal EQ 0 then ras = report('ERROR: The Journal is not open !!') 
    2626journal 
    2727;------------------------------------------------------------ 
  • trunk/SRC/ToBeReviewed/STRING/delchr.pro

    r232 r240  
    4040  
    4141        if (n_params(0) lt 2) or keyword_set(hlp) then begin 
    42           print,' Delete all occurrences of a character from a text string.' 
    43           print,' new = delchr(old, char)' 
    44           print,'   old = original text string.     in' 
    45           print,'   char = character to delete.     in' 
    46           print,'   new = resulting string.         out' 
     42          ras = report(['Delete all occurrences of a character from a text string.', $ 
     43          ' new = delchr(old, char)', $ 
     44          '   old = original text string.     in' , $ 
     45          '   char = character to delete.     in' , $ 
     46          '   new = resulting string.         out']) 
    4747          return, -1 
    4848        endif 
  • trunk/SRC/ToBeReviewed/STRING/getfile.pro

    r237 r240  
    5858 
    5959        if (n_params(0) lt 1) or keyword_set(hlp) then begin 
    60           print,' Read a text file into a string array.' 
    61           print,' s = getfile(f)' 
    62           print,'   f = text file name.      in' 
    63           print,'   s = string array.        out' 
    64           print,' Keywords:' 
    65           print,'   ERROR=err  error flag: 0=ok, 1=file not opened,' 
    66           print,'     2=no lines in file.' 
    67           print,'   /QUIET means give no error message.' 
    68           print,'   LINES=n  Number of lines to read (def=all).' 
    69           print,'     Much faster if number of lines is known.' 
    70           print,'     Automatic for IDL 5.6 or later.' 
     60          ras = report([ $ 
     61          ' Read a text file into a string array.', $ 
     62          ' s = getfile(f)', $ 
     63          '   f = text file name.      in', $ 
     64          '   s = string array.        out', $ 
     65          ' Keywords:', $ 
     66          '   ERROR=err  error flag: 0=ok, 1=file not opened,', $ 
     67          '     2=no lines in file.', $ 
     68          '   /QUIET means give no error message.', $ 
     69          '   LINES=n  Number of lines to read (def=all).', $ 
     70          '     Much faster if number of lines is known.', $ 
     71          '     Automatic for IDL 5.6 or later.']) 
    7172          return, -1 
    7273        endif 
  • trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/inserthistory.pro

    r231 r240  
    4242    index1 = where(globalcommand EQ line1) & index1 = index1[0]+1 
    4343    if index1  EQ -1 then begin 
    44        rien = report(line1+' n''est pas trouve ds globalcommand') 
     44       rien = report(line1+' not found in globalcommand') 
    4545       return 
    4646    endif 
    4747    index2 = where(globalcommand EQ line2) & index2 = index2[0] 
    4848    if index2  EQ -1 then begin 
    49        rien = report(line2+' n''est pas trouve ds globalcommand') 
     49       rien = report(line2+' not found in globalcommand') 
    5050       return 
    5151    ENDIF 
Note: See TracChangeset for help on using the changeset viewer.