Changeset 566


Ignore:
Timestamp:
05/30/12 09:45:28 (12 years ago)
Author:
lelod
Message:

plot_amsu avec correcbis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plot_amsu.pro

    r525 r566  
    6363prefix=numch 
    6464look = 'filename' 
     65openr,1,project_id_env+'AMSU/AMSU'+numch+'_correcbis_t_JJAS2009.dat' 
     66moytb=fltarr(fovmax) 
     67readf,1,moytb,format='(46(f6.2,1X))' 
     68close,1 
     69moytbliss=smooth(moytb,5) 
     70correction_t=moytbliss-mean(moytbliss[21:26]) 
     71;print, correction 
     72openr,2,project_id_env+'AMSU/AMSU'+numch+'_correcbis_m_JJAS2009.dat' 
     73moytb=fltarr(fovmax) 
     74readf,2,moytb,format='(46(f6.2,1X))' 
     75close,2 
     76close,/all 
     77moytbliss=smooth(moytb,5) 
     78correction_m=moytbliss-mean(moytbliss[22:24]) 
    6579 
    6680geomin = geolocation_to_string_idl(lonmin, latmin, look,1) 
     
    7488         lat=result.data.lat 
    7589         mask=result.data.landseamask 
    76          tb1=result.data.tb 
     90         tbinit=result.data.tb 
    7791         ; decodage du nb de points (nn) 
    7892         nn=n_elements(tb1) 
     93tb1=fltarr(nn) 
     94print,'fauchee',min(fov),max(fov) 
     95for 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 
     100endfor 
     101          
     102ind=where(fov eq 1,smallfov) 
     103if smallfov ne 0 then begin 
     104   tb1[ind]=tbinit[ind] -correction_t[0] 
     105endif 
     106ind=where(fov ge fovmax,bigfov) 
     107if bigfov ne 0 then begin 
     108   tb1[ind]=tbinit[ind] -correction_t[fovmax-1] 
     109endif 
     110for 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 
     115endfor 
     116ind=where(fov eq 1,smallfov) 
     117if smallfov ne 0 then begin 
     118   tb1[ind]=tbinit[ind] -correction_m[0] 
     119endif 
     120ind=where(fov ge fovmax,bigfov) 
     121if bigfov ne 0 then begin 
     122   tb1[ind]=tbinit[ind] -correction_m[fovmax-1] 
     123endif 
    79124 
    80125; plot sur continent 
Note: See TracChangeset for help on using the changeset viewer.