Changeset 483 for trunk


Ignore:
Timestamp:
01/06/12 16:47:54 (12 years ago)
Author:
pinsard
Message:

timing dans traitement amsutraite_amsuab.sh

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/extract_amsua.pro

    r482 r483  
    1414; generaliser pour amsub aussi) 
    1515; 
    16 ; decode les noms des fichiers dans la liste de fichiers, puis 
    17 ; appelle le prgm de lecture L1C 
     16; decode les noms des fichiers dans la date choisie, puis 
     17; appelle le prgm de lecture 
    1818; 
    1919; appelle :ref:`interpol_correc`, qui fournit les fonctions de correction au 
     
    2222; 
    2323; applique une interpolation tenant compte de la dimension de la tache 
    24 ; au sol selon la position dans la fauchee : appel :ref:`interpolswath` 
     24; au sol selon la position dans la fauchee 
    2525; 
    2626; ecrit les donnees pour la zone (lat/long) choisie 
    27 ; la structure de sortie contient un en-tete (date, zone, resol) 
    28 ; puis les donnees du jour et du canal traite 
    29 ; 
     27; 
     28; ++ le fichier de sortie contient dans l'ordre mm, jj (jour de 
     29; l'annee), le temps (identique pour les points d'une meme fauchee), le 
     30; no satellite, le no de fov (1 a 40 ou 1 a 90), long, lat, tb 
     31; 
     32; Les valeurs manquantes sont codées par NaN. 
    3033; 
    3134; .. only:: man 
     
    6871; 
    6972;   $ mkdir -p ${PROJECT_ID}/AMSU/2006/08 
    70 ;   $ echo "${PROJECT_ID}/AMSU/AMSUAN15/L1C/2006/2006_08_01/NSS.AMAX.NK.D06213.S0110.E0255.B4271112.GC.L1C" > ${PROJECT_ID}/list_file 
    71 ;   $ echo "${PROJECT_ID}/AMSU/AMSUAN15/L1C/2006/2006_08_01/NSS.AMAX.NK.D06213.S0250.E0437.B4271213.GC.L1C" >> ${PROJECT_ID}/list_file 
     73;   $ echo "${PROJECT_ID}/AMSU/AMSUAN15/L1C/2006/2006_08_01/NSS.AMAX.NK.D06213.S0110.E0255.B4271112.GC.L1C" > ${PROJECT_ID}/list_filea 
     74;   $ echo "${PROJECT_ID}/AMSU/AMSUAN15/L1C/2006/2006_08_01/NSS.AMAX.NK.D06213.S0250.E0437.B4271213.GC.L1C" >> ${PROJECT_ID}/list_filea 
    7275; 
    7376; Using AMSU-A channel 5:: 
     
    189192; called by :ref:`traite_amsuab.sh` 
    190193; 
    191 ; use :ref:`read_amsua1c`, :ref:`read_amsub1c.pro`, 
     194; use :ref:`read_amsua1c.pro`, :ref:`read_amsub1c.pro`, 
    192195; :func:`geolocation_to_string_idl`, :func:`mem_to_file_amsu_t2` 
    193 ; use :ref:`interpol_correc`  
    194 ; use :ref:`interpolswath` 
    195 ; 
    196 ; next step :  au choix: amsu2ncdf ou cresamsu pour transformation en netcdf 
     196; 
     197; next step :  ++ 
    197198; 
    198199; TODO 
     
    202203; interpolswath ne gere pas cette situation 
    203204; 
     205; comprendre les points bizarres autour de -40,30 visibles avec l'exemple 
     206; de 20060801 
     207; 
     208; lever le doute sur le contenu du fichier écrit par le printf (je (fplod) 
     209; crains des zesors louches!!).louche 
     210; 
    204211; vérifier que pas NaN dans les lignes écrites 
    205212; 
    206213; faire un test avec un zone géographique dans le pacifique pour voir comment 
    207 ; le système réagit 
     214; le système réagi (devrait dire : rien à faire !) 
    208215; 
    209216; changer le nom des fichiers de listes pour éviter des conflits lors de runs 
     
    214221; eviter la creation d'un fichier vide (si pas de points dans la zone) 
    215222; 
    216 ; tester la cohérence entre les fichiers présents dans list_file 
     223; tester la cohérence entre les fichiers présents dans list_filea 
    217224; en terme de date avec yyyy, mm et dd donnés en paramètre 
    218225; 
     
    481488  ;  print, 'www : no data to write' 
    482489endelse 
    483 loadct,39 
    484 window,0 
    485 plot,lonint,latint,xrange=[lon_min,lon_max],yrange=[lat_min,lat_max],xstyle=1,ystyle=1,/nodata 
    486 ind=where(maskint eq 1) 
    487 ;oplot,lonint[ind],latint[ind],psym=1 
    488 jnd=where(chint gt tbmin and chint lt tbmax) 
    489 tb=chint[jnd] 
    490 lolo=lonint[jnd] 
    491 lala=latint[jnd] 
    492 colscale=intarr(n_elements(tb)) 
    493 for j=0,n_elements(tb)-1 do begin 
    494    colscale[j]=(tb[j]-min(tb))*255/(max(tb)-min(tb)) 
    495 endfor 
    496 print,min(colscale),max(colscale) 
    497    plots,lolo,lala,psym=5,symsize=1,color=colscale 
     490; loadct,39 
     491; window,0 
     492; plot,lonint,latint,xrange=[lon_min,lon_max],yrange=[lat_min,lat_max],xstyle=1,ystyle=1,/nodata 
     493; ind=where(maskint eq 1) 
     494; ;oplot,lonint[ind],latint[ind],psym=1 
     495; jnd=where(chint gt tbmin and chint lt tbmax) 
     496; tb=chint[jnd] 
     497; lolo=lonint[jnd] 
     498; lala=latint[jnd] 
     499; colscale=intarr(n_elements(tb)) 
     500; for j=0,n_elements(tb)-1 do begin 
     501;    colscale[j]=(tb[j]-min(tb))*255/(max(tb)-min(tb)) 
     502; endfor 
     503; print,min(colscale),max(colscale) 
     504;    plots,lolo,lala,psym=5,symsize=1,color=colscale 
    498505end 
  • trunk/src/interpol_correc.pro

    r482 r483  
    1010; =========== 
    1111; 
    12 ; interpolation des tableaux de correction amsub (calcules sur  
     12; interpolation des tableaux de correction amsub (calcules sur 
    1313; echantillonnage amsua) sur les 90 points de la fauchee amsub 
    1414; 
    15 ; read :file:`${PROJECT_ID}/CORR_[LAND|SEA]_AMSU[AB]_JUIL2006.DAT` 
     15; read :file:`${PROJECT}/src/dataref_amsu/CORR_[LAND|SEA]_AMSU[AB]_JUIL2006.DAT` 
    1616; containing correction for land and sea. ++ ref. algo fatima karbou 
    1717; 
     
    7777; ========== 
    7878; 
    79 ; lelod 2011/12/09 modif organisation avec separation des traitements 
    80 ; un seul canal traite 
    8179; $Id$ 
    8280; 
    8381; $URL$ 
    8482; 
     83; - fplod 20120106 
     84; 
     85;   * reprise des modifs lelod : changement de localisation des fichiers de correction 
     86; 
     87; - lelod 20111209 
     88; 
     89;   * modif organisation avec separation des traitements un seul canal traite 
     90; 
    8591; - lelod 20111019 
    86 ;  
     92; 
    8793;   * fonction pixelsize fait le calcul des tailles des taches au sol a et 
    8894;     b, et ressort le tableau correspondant sur la fauchee 
     
    160166 
    161167 
    162 path=project_env + 'src/dataref_amsu/' 
     168path = project_env + '/src/dataref_amsu/' 
    163169; lecture des fichiers d'ajustement au nadir pour AMSUA et B 
    164170; cas amsua 
    165171if nomcanal eq 'a' then begin 
    166    cor_landa=path + '/CORR_LAND_AMSUA_JUIL2006.DAT' 
    167    cor_seaa=path + '/CORR_SEA_AMSUA_JUIL2006.DAT' 
     172   cor_landa = path + 'CORR_LAND_AMSUA_JUIL2006.DAT' 
     173   cor_seaa = path +'CORR_SEA_AMSUA_JUIL2006.DAT' 
    168174  ;test de l'autre fichier de correction: quel est le bon??? 
    169175  ; cor_landa=project_id_env+'AMSU/CORR_LAND_AMSUA.DAT' 
     
    213219;cas amsub 
    214220if nomcanal eq 'b' then begin 
    215    cor_landb=path+'CORR_LAND_AMSUB_JUIL2006.DAT' 
    216    cor_seab=path+'CORR_SEA_AMSUB_JUIL2006.DAT' 
    217    ;cor_landb=path+'AMSU/CORR_LAND_AMSUB.DAT' 
    218    ;cor_seab=path+'AMSU/CORR_SEA_AMSUB.DAT' 
     221   cor_landb = path + 'CORR_LAND_AMSUB_JUIL2006.DAT' 
     222   cor_seab = path + 'CORR_SEA_AMSUB_JUIL2006.DAT' 
     223   ;cor_landb=path+'CORR_LAND_AMSUB.DAT' 
     224   ;cor_seab=path+'CORR_SEA_AMSUB.DAT' 
    219225   cor_l=fltarr(nfovb) 
    220226   cor_s=fltarr(nfovb) 
Note: See TracChangeset for help on using the changeset viewer.