Changeset 495 for trunk


Ignore:
Timestamp:
03/12/12 17:59:38 (12 years ago)
Author:
lelod
Message:

correction bugs dimensions n_scan nzon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/extract_amsua.pro

    r494 r495  
    8181;   IDL> dd=13 
    8282;   IDL> resol=1 
    83 ;   IDL> lon_min=-60. 
    84 ;   IDL> lon_max=50. 
    85 ;   IDL> lat_min=-30. 
    86 ;   IDL> lat_max=45. 
     83;   IDL> lon_min=-20. 
     84;   IDL> lon_max=40. 
     85;   IDL> lat_min=-5. 
     86;   IDL> lat_max=40. 
    8787;   IDL> extract_amsua, numch, yyyy, mm, dd, resol, lon_min, lon_max, lat_min, lat_max 
    8888; 
     
    251251tbmin=100 
    252252tbmax=350 
    253 PRINT, 'iii, debut programme extract_amsu',SYSTIME()  
     253PRINT, 'www, debut programme extract_amsu',SYSTIME()  
    254254; lecture fichier land - sea (S. Masson) 
    255255file=project_id_env+'/MASK/ETOPO1_Ice_g_gmt4.nc' 
     
    286286a = STRARR(nb_file) 
    287287   ; filea = STRARR(nb_filea) 
    288 print, 'iii ouverture pour lecture de ', list_file 
    289 print, 'iii traitement du jour ',yyyy,mm,dd 
     288;print, 'www ouverture pour lecture de ', list_file 
     289print, 'www traitement du jour ',yyyy,mm,dd 
    290290 
    291291openr, lun_a, list_file, /get_lun 
     
    340340   amzeni=REFORM(ama_scan.angles[0,*,*]/100.) 
    341341   ttt=REFORM(ama_scan.scnlintime/3600000.) 
    342  
    343342   jnd=where(amalong[midpix,*] gt lon_min-15 and amalong[midpix,*] lt lon_max+15 and amalati[midpix,*] gt lat_min-15 and amalati[midpix,*] lt lat_max+15 ,nzon) 
    344    print,"iii nb de points dans le domaine geographique ",nzon, SYSTIME() 
     343   print,"www nb de points du fichier dans le domaine geographique +15deg ",nzon, SYSTIME() 
    345344   if nzon ne 0 then begin 
    346345      amalat=amalati[*,jnd] 
     
    366365  
    367366; correction nadir des donnees 
    368          ch_nadir=fltarr(nbpix,n_scan) 
    369       ; ch_nadir=amch[ifo,isc] 
    370          landseamask=intarr(nbpix,n_scan)+2 ; valeur hors zone selectionnee 
     367         ch_nadir=fltarr(nbpix,nzon) 
     368         landseamask=intarr(nbpix,nzon)+2 ; valeur hors zone selectionnee 
    371369        ; PRINT,'boucle sur les points du fichier, correction nadir', SYSTIME()  
    372370 
    373          for isc=0L,n_scan-1L do begin 
     371         for isc=0L,nzon-1L do begin 
    374372;recherche de la zone xxe,yye englobant la fauchee 
    375373            for ifo=0,nbpix-1 do begin 
     
    395393        ; PRINT, 'fin boucle',SYSTIME()  
    396394         moych=fltarr(nbpix) 
    397        
    398 ;for ifo=0,nbpix-1 do begin 
    399 ;   jnd=where(ch_nadir[ifo,*] gt tbmin and ch_nadir[ifo,*] lt tbmax and amalon[ifo,*] ge lon_min and amalon[ifo,*] le lon_max $ 
    400 ;         and amalat[ifo,*] ge lat_min and amalat[ifo,*] le lat_max,npts) 
    401 ;  if npts ne 0 then begin 
    402 ;     moych[ifo]= mean(ch_nadir[ifo,jnd]) 
    403 ;  endif 
    404 ;endfor 
    405 ;print,'correction',moych 
    406 ;print,'cor_s',cor_s 
    407 ;print,'cor_l',cor_l 
    408 ;oplot,amafov,moych,psym=1,color=numwindow 
    409 ;print,'ecarts max a la valeur moyenne au nadir',min(moych)-mean(moych[12:17]),max(moych)-mean(moych[12:17]) 
    410  
    411395 
    412396; appel a interpolswath pour ajuster les pixels amsua sur une grille 
     
    419403         cont=0L 
    420404         chint=fltarr(1) 
    421          for i=0L,n_scan-1L do begin 
     405         for i=0L,nzon-1L do begin 
    422406            tb=ch_nadir[*,i] 
    423407            lon=amalon[*,i] 
     
    433417                  fovgrid=indgen(nbgrid)+1 
    434418               endif 
    435          ;longit=longrid 
    436          ;latit=latgrid 
    437          ;oplot,longit,latit,psym=3,color=0 
    438419 
    439420; selection des taches au sol situees dans la zone d'interet 
     
    453434                     lonint=[lonint,longrid[zone]] 
    454435                     fovint=[fovint,fovgrid[zone]] 
    455                      maskint=[maskint,maskgrid[zone]] 
     436                     maskint=[maskint,maskgrid[zone]]                
    456437                     timeint=[timeint,replicate(tt[i],npt)] 
    457438                  endelse 
    458439               endif else begin 
    459             print, 'www : aucun point dans la zone' 
     440            ;print, 'www : aucun point dans la zone' 
    460441               endelse 
    461442            endif 
     
    465446         nn=n_elements(chint) 
    466447 
    467         ; print,'nb points dans la zone',nn 
     448         print,'www : nb points dans la zone en fin de traitement de l'orbite',nn 
    468449 
    469450         for i=0L, nn-1L do begin 
     
    491472; fin boucle sur les fichiers lus 
    492473   endif 
    493    PRINT,'passage au fichier suivant', SYSTIME()  
     474   PRINT,'www : passage au fichier suivant ', SYSTIME()  
    494475endwhile 
    495476labfile: 
Note: See TracChangeset for help on using the changeset viewer.