Changeset 473 for trunk


Ignore:
Timestamp:
12/16/11 17:54:42 (12 years ago)
Author:
pinsard
Message:

complete header and try to fix amsu tools

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/cresamsu.pro

    • Property svn:keywords set to URL Id
    r468 r473  
    11; docformat = 'rst' 
    22;+ 
    3 ; .. _cresamsu_cdf.pro: 
    4 ; 
    5 ; ====================== 
    6 ; cresamsu_cdf.pro 
    7 ; ====================== 
     3; .. _cresamsu.pro: 
     4; 
     5; ============ 
     6; cresamsu.pro 
     7; ============ 
     8; 
     9; =========== 
     10; DESCRIPTION 
     11; =========== 
    812; 
    913; programme d'interpolation avec algorithme de Cressmann 
    10 ; adaptation aux donnees Tb AMSU lues avecla nouvelle chaîne de lecture 
     14; 
     15; adaptation aux donnees Tb AMSU lues avec la nouvelle chaîne de lecture 
    1116; extract_amsuab.pro 
    1217; correct_nadir.pro 
     18; 
    1319; but: faire des fichiers "grilles" pour analyse statistique avec 
    1420; interpolation spatiale et temporelle 
    1521; 
    16 ; Uses: 
    17 ; parametres: 
    18 ;  use_amsua = 0 ou 1 (amsub ou les deux) 
    19 ;  listcanal= tableau des canaux a traiter (caracteres) ex ['a5', 'b5'] 
    20 ;  cresamsu_cdf,use_amsua,yyyyb,mmb,ddb,yyyye,mme,dde,lon_min,lon_max, lat_min, lat_max,listcanal 
    21 ; exemple 
    22 ;IDL> listcanal=['a5'] 
    23 ;IDL> use_amsua=1 
    24 ;IDL> yyyyb=2006 
    25 ;IDL> yyyye=2006 
    26 ;IDL> mmb=08 
    27 ;IDL> mme=8 
    28 ;IDL> ddb=1 
    29 ;IDL> dde=3 
    30 ;IDL> lon_min=-20 
    31 ;IDL> lon_max=40 
    32 ;IDL> lat_min=0 
    33 ;IDL> lat_max=30 
    34 cresamsu_cdf,use_amsua,yyyyb,mmb,ddb,yyyye,mme,dde,lon_min,lon_max, lat_min, lat_max,listcanal 
    35  
    36 ; :Restrictions: 
    37 ; 
    38 ; :Pre: 
    39 ; 
    40 ; :Post: 
    41 ; 
    42 ; :Also: 
    43 ; 
    44 ;  :ref:`traite_amsuab.sh` 
    45 ; 
    46 ; :Todo: 
     22; EXAMPLES 
     23; ======== 
     24; 
     25; :: 
     26; 
     27;    IDL> numch='a5' 
     28;    IDL> yyyyb=2006L 
     29;    IDL> yyyye=2006L 
     30;    IDL> mmb=8 
     31;    IDL> mme=8 
     32;    IDL> ddb=1 
     33;    IDL> dde=3 
     34;    IDL> lon_min=-20. 
     35;    IDL> lon_max=40. 
     36;    IDL> lat_min=0. 
     37;    IDL> lat_max=30. 
     38;    IDL> cresamsu, numch, yyyyb, mmb, ddb $ 
     39;                        , yyyye, mme, dde $ 
     40                      , lon_min, lon_max, lat_min, lat_max 
     41; 
     42; SEE ALSO 
     43; ======== 
     44; 
     45; :ref:`traite_amsuab.sh` 
     46; 
     47; :func:`file_amsu_t2_to_mem` 
     48; 
     49; TODO 
     50; ==== 
     51; 
     52; check last line for uncomment endfor (not sure of the use of this line) 
    4753; 
    4854; lelod 2011/12/15 
     
    5864; past (temporelle, en jour decimal) 
    5965; et enfin l'heure d'interpolation heurinterp (en heures) 
    60 ; 
    6166;  
    6267; coding rules 
     
    6469; new filename convention 
    6570; 
    66 ; :Examples: 
    67 ; 
    68 ; :: 
    69 ; 
    70 ; :History: 
    71 ; 
    72 ; 20121215 lelod 
    73 ; reprise du programme apres refonte de la chaine (extract_amsua): 
    74 ; lecture nouveau format de fichier (structure) 
    75 ; elimination des tentatives precedentes 
    76 ; ajout du mask dans l'appel a idl_amsu_ncdf 
    77 ; introduire en parametres les choix pour le fichier ncdf: grille, 
    78 ; rayons de Cressamann, selection de la portion du jour utilisee dans l'interpolation 
    79 ; 
    80 ; 2011/10/24 lelod 
    81 ; prise en compte des modifications de lecture et correction nadir 
    82 ; (correct_nadir.pro): 
    83 ; possibilite de traiter amsua et amsub ou amsub seul 
    84 ; utilisation de pixelsize.pro pour boucher les trous entres lignes de 
    85 ; pixels en bordure de fauchee de facon correcte 
    86 ; 
    87 ;  
    88 ;  $Id: cresamsu_cdf.pro 435 2011-11-24 22:18:41Z lelod $ 
    89 ;  $URL: svn+ssh://lelod@forge.ipsl.jussieu.fr/ipsl/forge/projets/varamma/svn/trunk/src/cresamsu_cdf.pro $ 
     71; get rid of idldoc (fplod) 
     72; 
     73; EVOLUTIONS 
     74; ========== 
     75; 
     76;  $Id$ 
     77; 
     78;  $URL$ 
     79; 
     80; - fplod 20111216T164041Z cratos (Linux) 
     81; 
     82;   * fix file_amsu_t2_to_mem call 
     83;   * start to forgot idldoc 
     84;   * fix for loop syntax error 
     85; 
     86; - lelod 20121215  
     87; 
     88;   * reprise du programme apres refonte de la chaine (extract_amsua): 
     89;     lecture nouveau format de fichier (structure) 
     90;     elimination des tentatives precedentes 
     91;     ajout du mask dans l'appel a idl_amsu_ncdf 
     92;     introduire en parametres les choix pour le fichier ncdf: grille, 
     93;     rayons de Cressamann, selection de la portion du jour utilisee dans l'interpolation 
     94; 
     95; - lelod 20111024 
     96; 
     97;   * prise en compte des modifications de lecture et correction nadir 
     98;     (correct_nadir.pro): 
     99;     possibilite de traiter amsua et amsub ou amsub seul 
     100;     utilisation de pixelsize.pro pour boucher les trous entres lignes de 
     101;     pixels en bordure de fauchee de facon correcte 
     102; 
    90103; 
    91104; - fplod 20110505T123230Z cratos.locean-ipsl.upmc.fr (Linux) 
     
    97110;- 
    98111 
    99 pro cresamsu_cdf,numch,yyyyb,mmb,ddb,yyyye,mme,dde,lon_min, lon_max, lat_min, lat_max 
     112pro cresamsu,numch,yyyyb,mmb,ddb,yyyye,mme,dde,lon_min, lon_max, lat_min, lat_max 
    100113 
    101114; les parametres de l'interpolation 
     
    207220         for dd=ddb,dde do begin 
    208221; ouverture fichier journalier 
    209             result=file_amsu_t2_to_mem, yyyy, mm, dd, numch $ 
     222            result=file_amsu_t2_to_mem( yyyy, mm, dd, numch $ 
    210223                                 , lon_min, lon_max, lat_min, lat_max $ 
    211                                  , testfilename 
     224                                 , testfilename) 
    212225            desc=result.data[0] 
    213226            hour=result.data[1] 
     
    223236; boucle sur les points du fichier 
    224237 
    225             do i=0,nn do begin 
     238            for i=0,nn do begin 
    226239 
    227240; recup de tb1,jour,hour,lon,lat 
     
    303316                                ;plt,xxlon,yylat,toto 
    304317idl_amsu_netcdf, numch, tb1fin, yylat, xxlon, jjours, mask 
    305 endfor 
     318;+++ c'est la fin de quelle boucle 
     319;+++endfor 
    306320 
    307321 
  • trunk/src/idl_amsu_netcdf.pro

    r469 r473  
    2727;           lats [shape=tab, label="latitude 1d array"] 
    2828;           timesin [shape=tab, label="time 1d array"] 
     29;           maskin [shape=tab, label="landseamask 3d array lon, lat, time"] 
    2930; 
    3031;           amsu_t5 [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/AMSU/numch_yyyymmdd_yyyymmdd_geomin_geomax.nc"]; 
     
    3637;           label="${PROJECT}/src/idl_amsu_netcdf.pro"]; 
    3738; 
    38 ;           {datain lons lats timesin} -> {idl_amsu_netcdf} -> {amsu_t5} 
     39;           {datain lons lats timesin maskin} -> {idl_amsu_netcdf} -> {amsu_t5} 
    3940; 
    4041;          } 
     
    5051;   IDL> timesin = indgen(12) + julday(8,1,2006L) 
    5152;   IDL> datain = findgen(size(lons,/dim), size(lats,/dim), size(timesin,/dim)) 
    52 ;   IDL> idl_amsu_netcdf, numch , datain, lats, lons, timesin 
     53;   IDL> maskin = findgen(size(lons,/dim), size(lats,/dim), size(timesin,/dim)) 
     54;   IDL> idl_amsu_netcdf, numch , datain, lats, lons, timesin, maskin 
    5355; 
    5456; SEE ALSO 
     
    6466; ==== 
    6567; 
     68; type of maskin and landseamask ? why fltarr 
     69;  
     70; dimension on maksin : why time ? 
     71; 
    6672; check arg : time in julian days. check for noon !! 
    6773; 
     
    7379; 
    7480; handle missing values properly 
     81;  
     82; handle tb threshold properly 
    7583; 
    7684; check time in netcdf 
     
    8694; 
    8795; $URL$ 
     96; 
     97; - fplod 20111216T160934Z cratos (Linux) 
     98; 
     99;   * add maskin in the example and graph 
     100;   * add a print to see filename on log 
     101;   * fix landseamask unit 
     102; 
     103; - lelod 20111215 
     104; 
     105;   * add maskin in input parameters 
    88106; 
    89107; - fplod 20111130T111832Z cratos (Linux) 
     
    120138; 
    121139; build output filename 
    122 prefix='' 
    123 ; nom du canal traité par interpolation de Cresmann 
     140; avec le nom et le numéro du canal traité par interpolation de Cresmann 
    124141prefix = numch +'_' 
    125142 
     
    161178; -------------------------------------- 
    162179; 
     180print, 'ouverture pour ecriture de ', cdfout 
    163181id = ncdf_create(cdfout,/clobber) 
    164182;++ncdf_control, id, /nofill 
     
    193211ncdf_attput, id, varid[3], 'unit', 'degree_kelvin' 
    194212ncdf_attput, id, varid[4], 'short_name', 'mask' 
    195 ncdf_attput, id, varid[3], 'unit', 'number (0 ocean, 1 land)' 
     213ncdf_attput, id, varid[4], 'unit', 'number (0 ocean, 1 land)' 
    196214; 
    197215; remplissage de l'entete 
     
    201219ncdf_varput, id, varid[2], jours 
    202220; 
    203 ; remplissage de la variable 
     221; remplissage des variables 
    204222ncdf_varput, id, varid[3], moyenne_tb 
    205223ncdf_varput, id, varid[4], landseamask 
     
    208226ncdf_close, id 
    209227; 
    210 return 
    211228end 
  • trunk/src/test_correc.pro

    • Property svn:keywords set to URL Id
    r472 r473  
     1;+ 
     2; 
     3; .. _test_correc.pro 
     4; 
     5; =============== 
     6; test_correc.pro 
     7; =============== 
     8; 
     9; DESCRIPTION 
     10; =========== 
     11; 
     12; permet de comparer les fichiers pour chaque canal 
     13; 
     14; EXAMPLES 
     15; ======== 
     16; 
     17;   IDL> numch = 'a5' 
     18;   IDL> test_correc, numch 
     19; 
     20; SEE ALSO 
     21; ======== 
     22; 
     23; :ref:`data_amsu` 
     24; 
     25; EVOLUTIONS 
     26; ========== 
     27; 
     28; $Id$ 
     29; 
     30; $URL$ 
     31; 
     32; - fplod 20111216T160346Z cratos (Linux) 
     33; 
     34;   * complete header 
     35; 
    136;- 
     37 
    238PRO test_correc,numch 
    339; 
     
    118154         t26,t27,t28,t29,t30] 
    119155   endfor 
    120    cor_l2006=a  
     156   cor_l2006=a 
    121157   free_lun, lun1 
    122158   openr, lun1,cor_seab, /get_lun 
     
    135171         t26,t27,t28,t29,t30] 
    136172   endfor 
    137    cor_s2006=a  
     173   cor_s2006=a 
    138174 
    139175   cor_landb=path+'AMSU/CORR_LAND_AMSUB.DAT' 
     
    155191         t26,t27,t28,t29,t30] 
    156192   endfor 
    157    cor_lold=a  
     193   cor_lold=a 
    158194 
    159195   free_lun, lun1 
     
    173209         t26,t27,t28,t29,t30] 
    174210   endfor 
    175    cor_sold=a  
     211   cor_sold=a 
    176212endif 
    177213window,10 
Note: See TracChangeset for help on using the changeset viewer.