Changeset 591


Ignore:
Timestamp:
07/19/12 18:47:22 (12 years ago)
Author:
lelod
Message:

simplification plot_amsu pour amsub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plot_amsu.pro

    r566 r591  
    6363prefix=numch 
    6464look = 'filename' 
    65 openr,1,project_id_env+'AMSU/AMSU'+numch+'_correcbis_t_JJAS2009.dat' 
    66 moytb=fltarr(fovmax) 
    67 readf,1,moytb,format='(46(f6.2,1X))' 
    68 close,1 
    69 moytbliss=smooth(moytb,5) 
    70 correction_t=moytbliss-mean(moytbliss[21:26]) 
    71 ;print, correction 
    72 openr,2,project_id_env+'AMSU/AMSU'+numch+'_correcbis_m_JJAS2009.dat' 
    73 moytb=fltarr(fovmax) 
    74 readf,2,moytb,format='(46(f6.2,1X))' 
    75 close,2 
    76 close,/all 
    77 moytbliss=smooth(moytb,5) 
    78 correction_m=moytbliss-mean(moytbliss[22:24]) 
    7965 
    8066geomin = geolocation_to_string_idl(lonmin, latmin, look,1) 
     
    8874         lat=result.data.lat 
    8975         mask=result.data.landseamask 
    90          tbinit=result.data.tb 
     76         tb1=result.data.tb 
    9177         ; decodage du nb de points (nn) 
    92          nn=n_elements(tb1) 
    93 tb1=fltarr(nn) 
     78         nn=n_elements(tbinit) 
    9479print,'fauchee',min(fov),max(fov) 
    95 for ifov=min(fov)+1,fovmax-1 do begin 
    96    ind=where(fov eq ifov and mask eq 1,nbfov) 
    97    if nbfov ne 0 then begin 
    98       tb1[ind]=tbinit[ind] -correction_t[ifov] 
    99    endif 
    100 endfor 
    101           
    102 ind=where(fov eq 1,smallfov) 
    103 if smallfov ne 0 then begin 
    104    tb1[ind]=tbinit[ind] -correction_t[0] 
    105 endif 
    106 ind=where(fov ge fovmax,bigfov) 
    107 if bigfov ne 0 then begin 
    108    tb1[ind]=tbinit[ind] -correction_t[fovmax-1] 
    109 endif 
    110 for ifov=min(fov)+1,fovmax-1 do begin 
    111    ind=where(fov eq ifov and mask eq 0,nbfov) 
    112    if nbfov ne 0 then begin 
    113       tb1[ind]=tbinit[ind] -correction_m[ifov] 
    114    endif 
    115 endfor 
    116 ind=where(fov eq 1,smallfov) 
    117 if smallfov ne 0 then begin 
    118    tb1[ind]=tbinit[ind] -correction_m[0] 
    119 endif 
    120 ind=where(fov ge fovmax,bigfov) 
    121 if bigfov ne 0 then begin 
    122    tb1[ind]=tbinit[ind] -correction_m[fovmax-1] 
    123 endif 
     80print,'nb orbites',max(desc) 
    12481 
    125 ; plot sur continent 
    126 tbmin=241. 
    127 tbmax=280. 
    128 jnd=where(tb1 gt tbmin and tb1 lt tbmax and mask eq 1) 
     82; plot sur continent orbites du matin 
     83tbmin=100. 
     84tbmax=300. 
     85;jnd=where(tb1 gt tbmin and tb1 lt tbmax and mask eq 1 and hour le 12) 
     86;plot partout 
     87jnd=where(tb1 gt tbmin and tb1 lt tbmax and hour le 12) 
    12988tb=tb1[jnd] 
    13089lolo=lon[jnd] 
    13190lala=lat[jnd] 
    132 print,'continent ',min(tb),max(tb) 
     91;print,'continent ',min(tb),max(tb) 
    13392window,0 
    13493loadct,39 
     
    13796for j=0,n_elements(tb)-1 do colscale[j]=(tb[j]-min(tb))*255/(max(tb)-min(tb)) 
    13897plots,lolo,lala,psym=5,symsize=1,color=colscale 
     98;mer=0 
     99;if mer ne 0 then begin 
    139100; plot sur ocean 
    140 tbmin=200. & tbmax=280. 
    141 jnd=where(tb1 gt tbmin and tb1 lt tbmax and mask eq 0) 
    142 tb=tb1[jnd] 
    143 lolo=lon[jnd] 
    144 lala=lat[jnd] 
    145 print,'ocean ',min(tb),max(tb) 
    146 window,1 
    147 loadct,39 
    148 plot,lon,lat,xrange=[lonmin,lonmax],yrange=[latmin,latmax],xstyle=1,ystyle=1,/nodata 
    149 colscale=intarr(n_elements(tb)) 
    150 for j=0,n_elements(tb)-1 do colscale[j]=(tb[j]-min(tb))*255/(max(tb)-min(tb)) 
    151 plots,lolo,lala,psym=5,symsize=1,color=colscale 
     101;    tbmin=200. & tbmax=280. 
     102;    jnd=where(tb1 gt tbmin and tb1 lt tbmax and mask eq 0) 
     103;    tb=tb1[jnd] 
     104;    lolo=lon[jnd] 
     105;    lala=lat[jnd] 
     106;    print,'ocean ',min(tb),max(tb) 
     107;    window,1 
     108;    loadct,39 
     109;    plot,lon,lat,xrange=[lonmin,lonmax],yrange=[latmin,latmax],xstyle=1,ystyle=1,/nodata 
     110;    colscale=intarr(n_elements(tb)) 
     111;    for j=0,n_elements(tb)-1 do colscale[j]=(tb[j]-min(tb))*255/(max(tb)-min(tb)) 
     112;    plots,lolo,lala,psym=5,symsize=1,color=colscale 
     113;endif 
    152114 
    153 ;bas=where (tb le min(tb)+0.5) 
    154 ;plots,lolo[bas],lala[bas],color=0,symsize=2,psym=5 
    155 ;print,lolo[bas],lala[bas] 
    156115end 
Note: See TracChangeset for help on using the changeset viewer.