Changeset 594
- Timestamp:
- 07/23/12 15:06:54 (12 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cresamsu.pro
r593 r594 234 234 hdeb=0 235 235 hfin=24 ; on prend toutes les orbites de la journee (regule par rtemp) 236 if rtemp eq 0.5 then pastemp=0.5237 236 if rtemp gt 0.5 then pastemp=1 238 if rtemp lt 0.5 then pastemp=0.25 237 if rtemp le 0.5 then pastemp=0.5 238 if rtemp le 0.175 then pastemp=0.25 239 239 endif 240 240 pasthor=pastemp*24. … … 510 510 511 511 if nbfile GT 0 THEN BEGIN 512 good=where (kont1 ge 1,nb)512 good=where (kont1 ge 3,nb) 513 513 msg = report(['iii : ' + routine + ' : points valides = ' + string(nb)]) 514 514 if (nb ne 0) then tb1fin[good]=stb1[good]/z1[good] … … 519 519 msg = report(['iii : ' + routine + ' : extremes du compteur = ' + string(min(kont1)) + ' ' + string(max(kont1))]) 520 520 521 result=idl_amsu_netcdf(numch, temp,rtemp,rhdeg, tb1fin, yylat, xxlon, jjours)521 result=idl_amsu_netcdf(numch, temp,rtemp,rhdeg, tb1fin,z1, yylat, xxlon, jjours) 522 522 result_type=size(result,/type) 523 523 IF (result_type EQ 3) THEN BEGIN -
trunk/src/idl_amsu_netcdf.pro
r544 r594 163 163 ; 164 164 ;- 165 function idl_amsu_netcdf, numch, temp, rtemp, rhdeg, datain, lats, lons, timesin165 function idl_amsu_netcdf, numch, temp, rtemp, rhdeg, datain, weight, lats, lons, timesin 166 166 ; 167 167 compile_opt idl2, strictarrsubs … … 220 220 ; dans les fichiers NetCDF 221 221 moyenne_tb = fltarr(nblon, nblat, nbtime) 222 poids = fltarr(nblon, nblat, nbtime) 222 223 xlon = fltarr(nblon) 223 224 ylat = fltarr(nblat) … … 225 226 ; 226 227 moyenne_tb[*,*,*] = datain[*,*,*] 228 poids[*,*,*] = weight[*,*,*] 227 229 xlon[*] = lons 228 230 ylat[*] = lats … … 233 235 if nnbad ne 0 then begin 234 236 moyenne_tb[ind]=-9999. 237 poids[ind]=-9999. 235 238 endif 236 239 msg = report(['iii : ' + routine + ' : nb valeurs manquantes = ' + string(nnbad)]) … … 268 271 ; 269 272 ; declaration des variables 270 varid = lonarr( 4)273 varid = lonarr(5) 271 274 varid[0] = ncdf_vardef(id, 'xlon', [dimidx], /float) 272 275 varid[1] = ncdf_vardef(id, 'ylat', [dimidy], /float) 273 276 varid[2] = ncdf_vardef(id, 'time', [dimidt], /float) 274 277 varid[3] = ncdf_vardef(id, 'moyenne_tb',[dimidx,dimidy,dimidt], /float) 278 varid[4] = ncdf_vardef(id, 'poids',[dimidx,dimidy,dimidt], /float) 275 279 ; 276 280 ; attributs de chaque variable … … 291 295 ncdf_attput, id, varid[3], 'unit', 'degree_kelvin' 292 296 ; 297 ncdf_attput, id, varid[4], 'short_name', 'poids' 298 ncdf_attput, id, varid[4], 'missing_value', -9999.00 299 ncdf_attput, id, varid[4], 'unit', 'valeur entre 0 et 1' 300 293 301 ; remplissage de l'entete 294 302 ncdf_control, id, /endef … … 299 307 ; remplissage des variables 300 308 ncdf_varput, id, varid[3], moyenne_tb 309 ncdf_varput, id, varid[4], poids 301 310 ; 302 311 ; fermeture du fichier
Note: See TracChangeset
for help on using the changeset viewer.