Changeset 499 for trunk


Ignore:
Timestamp:
03/23/12 14:57:22 (12 years ago)
Author:
pinsard
Message:

no more file list_file for AMSU processing

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/adm/guides/data_content.rst

    • Property svn:keywords changed from Id to Id URL
    r443 r499  
    1212.. 
    1313.. $URL$ 
    14 .. 
    1514.. 
    1615.. - fplod 20110810T075749Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    561560Outils de mise en forme : :ref:`traite_amsuab.sh`, :ref:`correct_nadir_amsu.pro`, :ref:`amsu2ncdf.pro`, :ref:`extract_zone_nc.sh`, :ref:`cresamsu_cdf.pro`, :ref:`idl_amsu_netcdf.pro` 
    562561 
     562Outil de gestion de fichiers :func:`search_amsufiles` 
     563 
    563564Outil de lecture : :func:`readAMSU` 
    564565 
     
    664665Outils de mise en forme : :ref:`traite_msg-prod.sh` (:ref:`create_gif.sh` :ref:`create_nc.sh`) , :ref:`concat-files.sh`, :ref:`extract_zone_nc.sh` 
    665666 
    666 Outil de lecture : :func:`MSGbuildfullfilename` :func:`MSGread` 
     667Outil de lecture : :func:`MSGbuildfullfilename` :func:`MSGread`, :func:`read_regular_grid` 
    667668 
    668669Outil de dessin : :func:`plotimageMSG`, :func:`evolution_msg`, :func:`hovmullerlat`, :func:`showgrid`, :func:`plot_intensityMSG`, :func:`visuMSG` 
  • trunk/src/extract_amsua.pro

    • Property svn:keywords set to Id URL
    r497 r499  
    1414; generaliser pour amsub aussi) 
    1515; 
    16 ; decode les noms des fichiers dans la date choisie, puis 
    17 ; appelle le prgm de lecture 
     16; decode les noms des fichiers donnés en argument dans **files_list** 
     17; dans la date choisie, puis appelle le prgm de lecture 
    1818; 
    1919; appelle :ref:`interpol_correc`, qui fournit les fonctions de correction au 
     
    4242;        digraph extract_amsu { 
    4343; 
    44 ;           amsu_lista [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/list_filea"]; 
    4544;           amsu_t1 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/AMSU/AMSU*/L1C/yyyy/yyyy_mm_dd/*.L1C"]; 
    4645;           amsu_t2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/yyyy/mm/numch_yyyymmdd_geomin_geomax.dat"]; 
     
    5251;           label="${PROJECT}/src/extract_amsua.pro"]; 
    5352; 
    54 ;           {amsu_lista amsu_t1} -> {extract_amsua} -> {amsu_t2}; 
     53;           {amsu_t1} -> {extract_amsua} -> {amsu_t2}; 
    5554;       } 
    5655; 
    5756; :param numch: 
     57; :param files_list: 
    5858; :param yyyy: 
    5959; :param mm: 
     
    6767; ======== 
    6868; 
    69 ; Creating an articial list of AMSU-A files (You may need to create  
     69; Creating an articial list of AMSU-A files (You may need to create 
    7070; :file:`${PROJECT_ID}/AMSU/2006/08/ directory)`:: 
    7171; 
    7272;   $ mkdir -p ${PROJECT_ID}/AMSU/2006/08 
    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 
     73; 
     74;   files_list = strarr(2) 
     75;   files_list[0] = project_id_env + '/AMSU/AMSUAN15/L1C/2006/2006_08_01/NSS.AMAX.NK.D06213.S0110.E0255.B4271112.GC.L1C' 
     76;   files_list[1] = project_id_env + 'AMSU/AMSUAN15/L1C/2006/2006_08_01/NSS.AMAX.NK.D06213.S0250.E0437.B4271213.GC.L1C' 
     77; 
     78; This above tip can replace the call to :func:`search_amsufiles`. 
     79; 
     80; Pour ne garder que le dernier fichier:: 
     81; 
     82;   files_list = search_amsufiles(numch, yyyy, mm, dd) 
     83;   help, files_list 
     84;   files_list_last_array = strarr(1) 
     85;   files_list_last_array[0] = files_list[N_ELEMENTS(files_list) - 1] 
     86;   help, files_list_last_array 
     87;   files_list = files_list_last_array 
     88;   help, files_list 
    7589; 
    7690; Using AMSU-A channel 5:: 
    7791; 
    78 ;   IDL> numch = 'a5' 
    79 ;   IDL> yyyy=2006L 
    80 ;   IDL> mm=8 
    81 ;   IDL> dd=13 
    82 ;   IDL> resol=1 
    83 ;   IDL> lon_min=-20. 
    84 ;   IDL> lon_max=40. 
    85 ;   IDL> lat_min=-5. 
    86 ;   IDL> lat_max=40. 
    87 ;   IDL> extract_amsua, numch, yyyy, mm, dd, resol, lon_min, lon_max, lat_min, lat_max 
     92;   numch = 'a5' 
     93;   yyyy=2006L 
     94;   mm=8 
     95;   dd=13 
     96;   resol=1 
     97;   lon_min=-20. 
     98;   lon_max=40. 
     99;   lat_min=-5. 
     100;   lat_max=40. 
     101;   files_list = search_amsufiles(numch, yyyy, mm, dd) 
     102;   extract_amsua, numch, files_list, yyyy, mm, dd, resol, lon_min, lon_max, lat_min, lat_max 
    88103; 
    89104; :file:`${PROJECT_ID}/AMSU/2006/08/a5_20060801_060w30s_050e45n.dat` 
    90105; must have been created. 
    91106; 
     107; SEE ALSO 
     108; ========= 
     109; 
     110; :ref:`data_amsu` 
     111; 
     112; called by :ref:`traite_amsuab.sh` 
     113; 
     114; previous step : :func:`search_amsufiles` 
     115; 
     116; use :ref:`read_amsua1c.pro`, :ref:`read_amsub1c.pro`, 
     117; :func:`geolocation_to_string_idl`, :func:`mem_to_file_amsu_t2` 
     118; 
     119; next step :  ++ 
     120; 
     121; TODO 
     122; ==== 
     123; 
     124; traiter les longitudes autour de 180 degres (passage de 180 a -180) 
     125; interpolswath ne gere pas cette situation 
     126; 
     127; comprendre les points bizarres autour de -40,30 visibles avec l'exemple 
     128; de 20060801 
     129; 
     130; lever le doute sur le contenu du fichier écrit par le printf (je (fplod) 
     131; crains des zeros louches!!).louche 
     132; 
     133; vérifier que pas NaN dans les lignes écrites 
     134; 
     135; faire un test avec un zone géographique dans le pacifique pour voir comment 
     136; le système réagi (devrait dire : rien à faire !) 
     137; 
     138; ajouter MHS 
     139; 
     140; eviter la creation d'un fichier vide (si pas de points dans la zone) 
     141; 
     142; tester la cohérence entre les fichiers présents dans files_list 
     143; en terme de date avec yyyy, mm et dd donnés en paramètre 
     144; 
     145; improve log 
     146; 
     147; get rid of uppercase 
     148; 
     149; check args 
     150; 
     151; decrire la limitation avec les seuils 
     152; 
    92153; EVOLUTIONS 
    93154; ========== 
    94 ; lelod 20120223 
    95 ; modif lecture du fichier bathy (ETOPO) pour limiter le temps 
    96 ; necessaire. Introduction de coordonnees limite dans initncdf, puis 
    97 ; domdef 
    98 ; Attention, si on change la zone, il faut changer les coordonnees!!! 
    99 ; 
    100 ; lelod 20111215 
    101 ; tests de fonctionnement effectues: la correction nadir est 
    102 ;correctement implementee 
    103 ; l'interpolation de la fauchee fonctionne 
    104 ; mais attention test sur la longitude code en dur: 
    105 ; pbs avec les fauchees qui traversent le meridien 180deg!!!! 
    106 ; l'interpolation ajoute des points parasites dans la zone... 
     155; 
    107156; $Id$ 
    108157; 
    109 ; $URL: svn+ssh://lelod@forge.ipsl.jussieu.fr/ipsl/forge/projets/varamma/svn/trunk/src/extract_amsua.pro $ 
     158; $URL$ 
     159; 
     160; - fplod 20120323 
     161; 
     162;   * add a paramater files_list to remplace usage of :file:`list_file` 
     163;   * replace usage of :file:`list_file` by the usage of the string array 
     164;     files_list 
     165;   * add a test if files_list no empty (see nofile label) 
     166;   * reorder SEE ALSO and TODO 
     167; 
     168; - lelod 20120223 
     169; 
     170;   * modif lecture du fichier bathy (ETOPO) pour limiter le temps 
     171;     necessaire. Introduction de coordonnees limite dans initncdf, puis 
     172;     domdef 
     173; 
     174;     Attention, si on change la zone, il faut changer les coordonnees!!! 
     175; 
     176; - lelod 20111215 
     177; 
     178;   * tests de fonctionnement effectues: la correction nadir est 
     179;     correctement implementee 
     180; 
     181;     l'interpolation de la fauchee fonctionne 
     182;     mais attention test sur la longitude code en dur: 
     183;     pbs avec les fauchees qui traversent le meridien 180deg!!!! 
     184;     l'interpolation ajoute des points parasites dans la zone... 
     185; 
    110186; 
    111187; - fplod 20111214T082300Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    190266;     test sur skylla: fonctionne au moins pour un fichier! 
    191267; 
    192 ; SEE ALSO 
    193 ; ========= 
    194 ; 
    195 ; :ref:`data_amsu` 
    196 ; 
    197 ; called by :ref:`traite_amsuab.sh` 
    198 ; 
    199 ; use :ref:`read_amsua1c.pro`, :ref:`read_amsub1c.pro`, 
    200 ; :func:`geolocation_to_string_idl`, :func:`mem_to_file_amsu_t2` 
    201 ; 
    202 ; next step :  ++ 
    203 ; 
    204 ; TODO 
    205 ; ==== 
    206 ; 
    207 ; traiter les longitudes autour de 180 degres (passage de 180 a -180) 
    208 ; interpolswath ne gere pas cette situation 
    209 ; 
    210 ; comprendre les points bizarres autour de -40,30 visibles avec l'exemple 
    211 ; de 20060801 
    212 ; 
    213 ; lever le doute sur le contenu du fichier écrit par le printf (je (fplod) 
    214 ; crains des zesors louches!!).louche 
    215 ; 
    216 ; vérifier que pas NaN dans les lignes écrites 
    217 ; 
    218 ; faire un test avec un zone géographique dans le pacifique pour voir comment 
    219 ; le système réagi (devrait dire : rien à faire !) 
    220 ; 
    221 ; changer le nom des fichiers de listes pour éviter des conflits lors de runs 
    222 ; simultanés 
    223 ; 
    224 ; ajouter MHS 
    225 ; 
    226 ; eviter la creation d'un fichier vide (si pas de points dans la zone) 
    227 ; 
    228 ; tester la cohérence entre les fichiers présents dans list_filea 
    229 ; en terme de date avec yyyy, mm et dd donnés en paramètre 
    230 ; 
    231 ; improve log 
    232 ; 
    233 ; get rid of uppercase 
    234 ; 
    235 ; check args 
    236 ; 
    237 ; decrire la limitation avec les seuils 
    238 ; 
    239268;- 
    240 PRO extract_amsua, numch, yyyy, mm, dd, resol $ 
     269PRO extract_amsua, numch, files_list, yyyy, mm, dd, resol $ 
    241270                 , lon_min, lon_max, lat_min, lat_max 
    242271; 
     
    245274@cm_project 
    246275@common 
     276 
     277; test if some files to read 
     278CASE size(files_list,/DIMENSION) OF 
     279   0L : BEGIN 
     280     print, 'pas de fichiers' 
     281     goto, nofile 
     282        END 
     283   ELSE: BEGIN 
     284       print, 'nb de fichers', size(files_list,/DIMENSION) 
     285        END 
     286ENDCASE 
     287nb_file_array = size(files_list,/DIMENSION) 
     288nb_file = (nb_file_array)[0] 
     289; 
    247290nomcanal=strmid(numch,0,1) 
    248291nocanal=0 
     
    251294tbmin=100 
    252295tbmax=350 
    253 PRINT, 'www, debut programme extract_amsu',SYSTIME()  
     296PRINT, 'www : debut programme extract_amsu',SYSTIME() 
    254297; lecture fichier land - sea (S. Masson) 
    255298file=project_id_env+'/MASK/ETOPO1_Ice_g_gmt4.nc' 
     
    258301;lon_max=40 & lat_min=-5 & lat_max=40 
    259302 
    260 initncdf,file, zaxisname='toto',xaxisname='lon',yaxisname='lat',XMINMESH=8000,XMAXMESH=15000, YMINMESH=4500,YMAXMESH=8500  
     303initncdf,file, zaxisname='toto',xaxisname='lon',yaxisname='lat',XMINMESH=8000,XMAXMESH=15000, YMINMESH=4500,YMAXMESH=8500 
    261304domdef,lon_min-15, lon_max+15, lat_min-15, lat_max+15 
    262305bathy=read_ncdf('z',file=file) 
     
    271314jpje = n_elements(yye) 
    272315;print,jpie,jpje,size(bate) 
    273 ;PRINT, 'lecture bathy terminee',SYSTIME()  
     316;PRINT, 'lecture bathy terminee',SYSTIME() 
    274317; appel au ssprgm qui interpole les fonctions de correction (inutile 
    275318; de l'appeler a chaque fichier....) 
     
    279322; boucle sur les elements de la liste 
    280323 
    281 ; lecture de la liste des fichiers AMSU-A 
    282 list_file = project_id_env+'list_file' 
    283 ;list_filea='list_file' 
    284     ;index_filea= 0 
    285 nb_file = file_lines(list_file) 
     324print, 'iii : traitement du jour ',yyyy,mm,dd 
    286325a = STRARR(nb_file) 
    287    ; filea = STRARR(nb_filea) 
    288 ;print, 'www ouverture pour lecture de ', list_file 
    289 print, 'www traitement du jour ',yyyy,mm,dd 
    290  
    291 openr, lun_a, list_file, /get_lun 
    292 filea='' 
    293 nlist=0 
    294 ilist=0 
    295 ;PRINT,'demarrage boucle sur lichiers', SYSTIME()  
    296 while (not eof(lun_a)) do begin 
    297    ilist=ilist+1 
    298    onefile = '' 
    299    readf, lun_a, filea 
    300        ; filea[index_filea] = onefile 
    301         ; isolate string independant from satellite 
    302        ; a[index_filea]=strmid(file_basename(filea[index_filea]),7) 
    303        ; index_filea = index_filea + 1 
    304     ;endwhile 
     326;PRINT,'demarrage boucle sur lichiers', SYSTIME() 
     327FOR ifile = 0, nb_file - 1 do begin 
     328   filea = files_list[ifile] 
    305329 
    306330   COMMON amsua_header,ama_head 
    307331   COMMON amsua_data  ,ama_scan 
    308    ;print, 'ouverture et lecture du fichier ', filea, SYSTIME()  
     332   print, 'ouverture et lecture du fichier ', filea, SYSTIME() 
    309333   openr,lu1,filea,Error=erra,/get_lun 
    310334   read_amsua1c,filea, flag1 
     
    341365   ttt=REFORM(ama_scan.scnlintime/3600000.) 
    342366   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) 
    343    print,"www nb de points du fichier dans le domaine geographique +15deg ",nzon, SYSTIME() 
     367   print,"iii : nb de points du fichier dans le domaine geographique +15deg ",nzon, SYSTIME() 
    344368   if nzon ne 0 then begin 
    345369      amalat=amalati[*,jnd] 
     
    351375     ; print,'dimension tableaux extraits',dims 
    352376      n_scan=dims[1] 
    353      ; PRINT,'il y a des donnees dans la region '  
     377     ; PRINT,'il y a des donnees dans la region ' 
    354378      amaday=REFORM(ama_scan.scnlindy) 
    355379      amafov= fovy_1 
     
    363387         desc=0 
    364388      endelse 
    365   
     389; 
    366390; correction nadir des donnees 
    367391         ch_nadir=fltarr(nbpix,nzon) 
    368392         landseamask=intarr(nbpix,nzon)+2 ; valeur hors zone selectionnee 
    369         ; PRINT,'boucle sur les points du fichier, correction nadir', SYSTIME()  
     393        ; PRINT,'boucle sur les points du fichier, correction nadir', SYSTIME() 
    370394 
    371395         for isc=0L,nzon-1L do begin 
     
    403427 
    404428         endfor 
    405         ; PRINT, 'fin boucle',SYSTIME()  
     429        ; PRINT, 'fin boucle',SYSTIME() 
    406430         moych=fltarr(nbpix) 
    407431 
     
    420444            lat=amalat[*,i] 
    421445            mask=landseamask[*,i] 
    422             ind=where(tb gt tbmin,nbon)  
     446            ind=where(tb gt tbmin,nbon) 
    423447; test pour eviter pb d'interpolation de longitude (meridien 180) 
    424448            if nbon eq nbpix then begin 
     
    446470                     lonint=[lonint,longrid[zone]] 
    447471                     fovint=[fovint,fovgrid[zone]] 
    448                      maskint=[maskint,maskgrid[zone]]                
     472                     maskint=[maskint,maskgrid[zone]] 
    449473                     timeint=[timeint,replicate(tt[i],npt)] 
    450474                  endelse 
     
    454478            endif 
    455479         endfor 
    456      ; PRINT,'fin interpolation et selection des points de la zone', SYSTIME()  
     480     ; PRINT,'fin interpolation et selection des points de la zone', SYSTIME() 
    457481 
    458482         nn=n_elements(chint) 
     
    482506            endfor 
    483507         endif 
    484             
     508; 
    485509; fin boucle sur les fichiers lus 
    486510   endif 
    487    PRINT,'www : passage au fichier suivant ', SYSTIME()  
    488 endwhile 
     511   PRINT,'www : passage au fichier suivant ', SYSTIME() 
     512endfor 
    489513labfile: 
    490514if (n_elements(data) NE 0) then begin 
     
    510534endif else begin 
    511535    print, 'www : no data to write' 
     536    goto, realend 
    512537endelse 
    513538 
     539nofile: 
     540    print, 'www : no data to read' 
     541 
     542realend: 
     543    PRINT, 'www : fin programme extract_amsua',SYSTIME() 
    514544end 
  • trunk/src/traite_amsuab.sh

    • Property svn:keywords changed from Id to Id URL
    r485 r499  
    7979# during [20060801, 20060802[ and you want to produce NetCDF files:: 
    8080# 
    81 #   $ traite_amsuab.sh -b 20060801 -e 20060802 -lonmin -25 -lonmax 25 -latmin -5 -latmax 20 -numch a5 
     81#   traite_amsuab.sh -b 20060801 -e 20060802 -lonmin -25 -lonmax 25 -latmin -5 -latmax 20 -numch a5 
    8282# 
    8383# And look at log file with :: 
    8484# 
    85 $ tlogd.sh traite_amsuab 
     85 tlogd.sh traite_amsuab 
    8686# 
    8787# and of course on files in ${PROJECT_ID}. 
     
    8989# If you want to work on channel b5 of AMSU:: 
    9090# 
    91 #   $ traite_amsuab.sh -b 20060813 -e 20060814 -lonmin -25 -lonmax 25 -latmin -5 -latmax 20 -numch b5 
     91#   traite_amsuab.sh -b 20060813 -e 20060814 -lonmin -25 -lonmax 25 -latmin -5 -latmax 20 -numch b5 
    9292# 
    9393# SEE ALSO 
     
    108108# :ref:`extract_amsua.pro` 
    109109# :ref:`amsu2ncdf.pro` 
     110# :func:`search_amsufiles` 
    110111# 
    111112# :ref:`geolocation_to_string_sh.sh` 
     
    115116# TODO 
    116117# ==== 
    117 # 
    118 # tri chrono dans les list_file ou apres la production du fichier .dat 
    119 # par extract_amsua.pro avec sort -n : on a besoin de connaitre la 
    120 # convention de terminologie utilisée. 
    121 # 
    122 # changer le nom des fichiers de listes pour éviter des conflits lors de runs 
    123 # simultanés 
    124118# 
    125119# se bloque sur 
     
    150144# $URL$ 
    151145# 
    152 #  
     146# - pinsard 20120323 
     147# 
     148#   * replace creation of :file:`${PROJECT_ID}/list_file` by a call to  
     149#     :func:`search_amsufiles` 
     150#   * transform the IDL snippet to a function to be abble to use ``CASE`` 
     151# 
    153152# - pinsard 20120106  
    154153# 
     
    471470    prefix=$(printf  "%1c" ${numch} | tr [:lower:] [:upper:]) 
    472471 
    473     # write the file ${PROJECT_ID}/list_file containing AMSU filenames on the current date 
    474     ls ${PROJECT_ID}/AMSU/AMSU${prefix}*/L1C/${yyyy}/${yyyy}_${mm}_${dd}/*.L1C > ${PROJECT_ID}/list_file 
    475     # 
    476     # qqes recettes de cuisine en commentaires pour court-circuiter la vraie liste de fichier 
    477     # 1) pour forcer le contenu de la liste avec des noms de fichiers précis 
    478     # echo "/homedata/eymard/varamma_d//AMSU/AMSUAN16/L1C/2006/2006_08_13/NSS.AMAX.NL.D06225.S1300.E1446.B3036869.GC.L1C" > ${PROJECT_ID}/list_file 
    479     # echo "/homedata/eymard/varamma_d//AMSU/AMSUAN16/L1C/2006/2006_08_13/NSS.AMAX.NL.D06225.S1440.E1451.B3036969.GC.L1C" >> ${PROJECT_ID}/list_file 
    480     # 
    481     # 2)pour ne garder que les n derniers fichiers 
    482     # cp ${PROJECT_ID}/list_file ${PROJECT_ID}/list_file_full 
    483     # tail -n 2 ${PROJECT_ID}/list_file_full > ${PROJECT_ID}/list_file 
    484     # echo "WWWWWWWWWWw : 2 files only"  >> ${log} 2>&1 
    485     # 
    486     if [ ! -s ${PROJECT_ID}/list_file ] 
    487     then 
    488        echo "${command} : eee : no file found" >> ${log} 2>&1 
    489        exit 1 
    490     fi 
    491472    cat >> ${PROJECT}/src/traite_amsu_${$}.pro << EOF 
    492 .compile interpol_correc 
    493 .compile extract_amsua 
    494 resol=1 
    495 extract_amsua, '${numch}',  ${yyyy},${mm}, ${dd}, resol, ${lonmin}, ${lonmax}, ${latmin}, ${latmax} 
     473function traite_amsu_${$} 
     474; 
     475compile_opt idl2, strictarrsubs 
     476; 
     477result = -1 
     478; 
     479files_list = search_amsufiles('${numch}', ${yyyy},${mm}, ${dd}) 
     480; 
     481; uncomment the following lines to test with the last file of the list 
     482; files_list_new_array = strarr(1) 
     483; files_list_new_array[0] = files_list[N_ELEMENTS(files_list) - 1] 
     484; files_list = files_list_new_array 
     485; 
     486; uncomment the following lines to test with the two last files of the list 
     487; files_list_new_array = strarr(2) 
     488; files_list_new_array[0] = files_list[N_ELEMENTS(files_list) - 2] 
     489; files_list_new_array[1] = files_list[N_ELEMENTS(files_list) - 1] 
     490; files_list = files_list_new_array 
     491; 
     492; uncomment the following lines to test with the first file of the list 
     493; files_list_new_array = strarr(1) 
     494; files_list_new_array[0] = files_list[1] 
     495; files_list = files_list_new_array 
     496; 
     497CASE size(files_list,/DIMENSION) OF 
     498   0L : BEGIN 
     499            print, 'www : no file found' 
     500        END 
     501   ELSE: BEGIN 
     502            print, 'iii : nb de fichers', size(files_list,/DIMENSION) 
     503            resol=1 
     504            extract_amsua, '${numch}', files_list, ${yyyy}, ${mm}, ${dd}, resol, ${lonmin}, ${lonmax}, ${latmin}, ${latmax} 
     505        END 
     506ENDCASE 
    496507EOF 
    497508    if [ ${netcdf_build} -eq 1 ] 
     
    502513     fi 
    503514     cat >> ${PROJECT}/src/traite_amsu_${$}.pro << EOF 
    504 exit 
     515return, result  
     516end 
    505517EOF 
    506518    ${IDL_CMD} << EOF >> ${log} 2>&1 
    507      @traite_amsu_${$} 
     519.compile interpol_correc 
     520.compile extract_amsua 
     521     result = traite_amsu_${$}() 
    508522EOF 
    509523    status=${?} 
     
    515529    fi 
    516530    rm ${PROJECT}/src/traite_amsu_${$}.pro 
    517     rm  ${PROJECT_ID}/list_file 2> /dev/null 
    518531    unset status 
    519532    if [ ${netcdf_build} -eq 1 ] 
Note: See TracChangeset for help on using the changeset viewer.