- Timestamp:
- 12/16/11 17:54:42 (12 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cresamsu.pro
- Property svn:keywords set to URL Id
r468 r473 1 1 ; docformat = 'rst' 2 2 ;+ 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 ; =========== 8 12 ; 9 13 ; 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 11 16 ; extract_amsuab.pro 12 17 ; correct_nadir.pro 18 ; 13 19 ; but: faire des fichiers "grilles" pour analyse statistique avec 14 20 ; interpolation spatiale et temporelle 15 21 ; 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,listcanal21 ; exemple22 ; IDL> listcanal=['a5']23 ; IDL> use_amsua=124 ; IDL> yyyyb=200625 ; IDL> yyyye=200626 ; IDL> mmb=0827 ; IDL> mme=828 ; IDL> ddb=129 ; IDL> dde=330 ; IDL> lon_min=-2031 ; IDL> lon_max=4032 ; IDL> lat_min=033 ; IDL> lat_max=3034 ; cresamsu_cdf,use_amsua,yyyyb,mmb,ddb,yyyye,mme,dde,lon_min,lon_max, lat_min, lat_max,listcanal35 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) 47 53 ; 48 54 ; lelod 2011/12/15 … … 58 64 ; past (temporelle, en jour decimal) 59 65 ; et enfin l'heure d'interpolation heurinterp (en heures) 60 ;61 66 ; 62 67 ; coding rules … … 64 69 ; new filename convention 65 70 ; 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 ; 90 103 ; 91 104 ; - fplod 20110505T123230Z cratos.locean-ipsl.upmc.fr (Linux) … … 97 110 ;- 98 111 99 pro cresamsu _cdf,numch,yyyyb,mmb,ddb,yyyye,mme,dde,lon_min, lon_max, lat_min, lat_max112 pro cresamsu,numch,yyyyb,mmb,ddb,yyyye,mme,dde,lon_min, lon_max, lat_min, lat_max 100 113 101 114 ; les parametres de l'interpolation … … 207 220 for dd=ddb,dde do begin 208 221 ; 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 $ 210 223 , lon_min, lon_max, lat_min, lat_max $ 211 , testfilename 224 , testfilename) 212 225 desc=result.data[0] 213 226 hour=result.data[1] … … 223 236 ; boucle sur les points du fichier 224 237 225 doi=0,nn do begin238 for i=0,nn do begin 226 239 227 240 ; recup de tb1,jour,hour,lon,lat … … 303 316 ;plt,xxlon,yylat,toto 304 317 idl_amsu_netcdf, numch, tb1fin, yylat, xxlon, jjours, mask 305 endfor 318 ;+++ c'est la fin de quelle boucle 319 ;+++endfor 306 320 307 321 -
trunk/src/idl_amsu_netcdf.pro
r469 r473 27 27 ; lats [shape=tab, label="latitude 1d array"] 28 28 ; timesin [shape=tab, label="time 1d array"] 29 ; maskin [shape=tab, label="landseamask 3d array lon, lat, time"] 29 30 ; 30 31 ; amsu_t5 [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/AMSU/numch_yyyymmdd_yyyymmdd_geomin_geomax.nc"]; … … 36 37 ; label="${PROJECT}/src/idl_amsu_netcdf.pro"]; 37 38 ; 38 ; {datain lons lats timesin } -> {idl_amsu_netcdf} -> {amsu_t5}39 ; {datain lons lats timesin maskin} -> {idl_amsu_netcdf} -> {amsu_t5} 39 40 ; 40 41 ; } … … 50 51 ; IDL> timesin = indgen(12) + julday(8,1,2006L) 51 52 ; 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 53 55 ; 54 56 ; SEE ALSO … … 64 66 ; ==== 65 67 ; 68 ; type of maskin and landseamask ? why fltarr 69 ; 70 ; dimension on maksin : why time ? 71 ; 66 72 ; check arg : time in julian days. check for noon !! 67 73 ; … … 73 79 ; 74 80 ; handle missing values properly 81 ; 82 ; handle tb threshold properly 75 83 ; 76 84 ; check time in netcdf … … 86 94 ; 87 95 ; $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 88 106 ; 89 107 ; - fplod 20111130T111832Z cratos (Linux) … … 120 138 ; 121 139 ; 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 124 141 prefix = numch +'_' 125 142 … … 161 178 ; -------------------------------------- 162 179 ; 180 print, 'ouverture pour ecriture de ', cdfout 163 181 id = ncdf_create(cdfout,/clobber) 164 182 ;++ncdf_control, id, /nofill … … 193 211 ncdf_attput, id, varid[3], 'unit', 'degree_kelvin' 194 212 ncdf_attput, id, varid[4], 'short_name', 'mask' 195 ncdf_attput, id, varid[ 3], 'unit', 'number (0 ocean, 1 land)'213 ncdf_attput, id, varid[4], 'unit', 'number (0 ocean, 1 land)' 196 214 ; 197 215 ; remplissage de l'entete … … 201 219 ncdf_varput, id, varid[2], jours 202 220 ; 203 ; remplissage de la variable221 ; remplissage des variables 204 222 ncdf_varput, id, varid[3], moyenne_tb 205 223 ncdf_varput, id, varid[4], landseamask … … 208 226 ncdf_close, id 209 227 ; 210 return211 228 end -
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 ; 1 36 ;- 37 2 38 PRO test_correc,numch 3 39 ; … … 118 154 t26,t27,t28,t29,t30] 119 155 endfor 120 cor_l2006=a 156 cor_l2006=a 121 157 free_lun, lun1 122 158 openr, lun1,cor_seab, /get_lun … … 135 171 t26,t27,t28,t29,t30] 136 172 endfor 137 cor_s2006=a 173 cor_s2006=a 138 174 139 175 cor_landb=path+'AMSU/CORR_LAND_AMSUB.DAT' … … 155 191 t26,t27,t28,t29,t30] 156 192 endfor 157 cor_lold=a 193 cor_lold=a 158 194 159 195 free_lun, lun1 … … 173 209 t26,t27,t28,t29,t30] 174 210 endfor 175 cor_sold=a 211 cor_sold=a 176 212 endif 177 213 window,10
Note: See TracChangeset
for help on using the changeset viewer.