Changeset 93
- Timestamp:
- 04/30/08 22:23:13 (16 years ago)
- Location:
- trunk/procs/macros
- Files:
-
- 4 added
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/procs/macros/make_energetics.pro
r87 r93 115 115 tmaskr = abs(s) gt 1.e-6 116 116 valmask = 1.e20 117 w(where (tmaskr EQ 0)) = valmask 117 idxw = where (tmaskr EQ 0) 118 IF idxw[0] NE -1 THEN w(idxw) = valmask 118 119 idxt = where (tmaskr EQ 0) 119 t (where (tmaskr EQ 0)) = 0.120 s (where (tmaskr EQ 0)) = 0.120 IF idxt[0] NE -1 THEN t (idxt) = 0. 121 IF idxt[0] NE -1 THEN s (idxt) = 0. 121 122 tmaskr = 0 ; free memory 122 123 ENDIF ELSE BEGIN … … 246 247 247 248 int_val = (rhop-rho_s4d)*(w_T) 249 IF idxt[0] NE -1 THEN int_val(idxt) = 0. 250 248 251 ; remove first 2 levels (MXL too unstable) 249 IF idxt[0] NE -1 THEN int_val(idxt) = 0.250 252 int_val[*, *, 0:1, *] = 0. 251 253 … … 264 266 umean=grossemoyenne(u,'z',boite=[0,30]) 265 267 vmean=grossemoyenne(v,'z',boite=[0,30]) 268 ; umean=grossemoyenne(u,'z',boite=[0,10]) 269 ; vmean=grossemoyenne(v,'z',boite=[0,10]) 266 270 267 271 idx = where(tx GT valmask/10.) … … 313 317 IF ps EQ 1 THEN openps 314 318 315 pltt, ape, 't', petit = [2, 4, 1], landscape = 1, /rempli, /BASICMARGES, title = 'APE (full) '+cmd_wrk.exp 316 pltt, ww, 't', petit = [2, 4, 2], min = -2, max = 5, /noerase, /rempli, /BASICMARGES, title = 'Wind work (full) '+cmd_wrk.exp 317 pltt, bfx, 't', petit = [2, 4, 8], min = -2, max = 5, color = 4, /noerase, /rempli, /BASICMARGES, title = 'B (full)' 319 pltt, ape, 't', petit = [2, 4, 1], landscape = 1, /rempli, /BASICMARGES, title = 'APE (full) '+cmd_wrk.exp, window=3 320 pltt, ww, 't', petit = [2, 4, 2], min = -2, max = 5, /noerase, /rempli, /BASICMARGES, title = 'Wind work (full) '+cmd_wrk.exp, window=3 321 pltt, bfx, 't', petit = [2, 4, 8], min = -2, max = 5, color = 4, /noerase, /rempli, /BASICMARGES, title = 'B (full)', window=3 318 322 319 323 ape_1mm = trends(ape, 412, 't') 320 pltt, ape_1mm, 't', petit = [2, 4, 3], /noerase, /rempli, /BASICMARGES, title = 'APE (inter)' 324 pltt, ape_1mm, 't', petit = [2, 4, 3], /noerase, /rempli, /BASICMARGES, title = 'APE (inter)', window=3 321 325 jpt_b = jpt 322 326 jpt = 24 323 pltt, mean_sc[0:23], 't', petit = [2, 4, 5], /noerase, /rempli, /BASICMARGES, title = 'APE (seasonal cycle x 2)' 327 pltt, mean_sc[0:23], 't', petit = [2, 4, 5], /noerase, /rempli, /BASICMARGES, title = 'APE (seasonal cycle x 2)', window=3 324 328 325 329 jpt = jpt_b … … 329 333 wwx_1mm = trends(wwx, 412, 't') 330 334 331 pltt, ww_1mm, 't', petit = [2, 4, 4], color = 2, /noerase, /rempli, /BASICMARGES, title = 'Interannual W (red) B (blue) [efficiency = '+string(strcompress(efficiency))+']' 332 pltt, bfx_1mm*1.e-11, 't', petit = [2, 4, 4], /ov1d, color = 4, thick = 2, /noerase, /rempli, /BASICMARGES 335 pltt, ww_1mm, 't', petit = [2, 4, 4], color = 2, /noerase, /rempli, /BASICMARGES, title = 'Interannual W (red) B (blue) [efficiency = '+string(strcompress(efficiency))+']', window=3 336 pltt, bfx_1mm*1.e-11, 't', petit = [2, 4, 4], /ov1d, color = 4, thick = 2, /noerase, /rempli, /BASICMARGES, window=3 333 337 334 338 jpt_b = jpt 335 339 jpt = 24 336 pltt, tmp[0:23], 't', petit = [2, 4, 6], min = -1, max = 3.5, /noerase, /rempli, /BASICMARGES, title = 'Seasonal Cycle x 2 (W total: black, B: blue, Wx/y: red/green)' 337 pltt, mean_sc[0:23], 't', petit = [2, 4, 6], /ov1d, color = 2, thick = 2, /noerase, /rempli, /BASICMARGES 340 pltt, tmp[0:23], 't', petit = [2, 4, 6], min = -1, max = 3.5, /noerase, /rempli, /BASICMARGES, title = 'Seasonal Cycle x 2 (W total: black, B: blue, Wx/y: red/green)', window=3 341 pltt, mean_sc[0:23], 't', petit = [2, 4, 6], /ov1d, color = 2, thick = 2, /noerase, /rempli, /BASICMARGES, window=3 338 342 wwy_1mm = trends(wwy, 412, 't') 339 pltt, mean_sc[0:23], 't', petit = [2, 4, 6], /ov1d, color = 3, thick = 2, /noerase, /rempli, /BASICMARGES 343 pltt, mean_sc[0:23], 't', petit = [2, 4, 6], /ov1d, color = 3, thick = 2, /noerase, /rempli, /BASICMARGES, window=3 340 344 pltt, bfx_sc[0:23]*1.e-11, 't', petit = [2, 4, 6], /ov1d, color = 4, thick = 1, /noerase, /rempli, /BASICMARGES 341 345 jpt = jpt_b … … 383 387 openw, nuldat, asciidir+filename 384 388 print, ' -> writing ww data to ', asciidir+filename & print, ' ' 389 print, ' min/max of ww, ww_1mm = ', min(ww), max(ww), min(ww_1mm), max(ww_1mm) 385 390 printf, nuldat, ww_wr, format = '(g10.4)' 386 391 free_lun, nuldat & close, nuldat … … 390 395 openw, nuldat, asciidir+filename 391 396 print, ' -> writing bf data to ', asciidir+filename & print, ' ' 397 print, ' min/max of bfx, bfx_1mm= ', min(bfx), max(bfx), min(bfx_1mm), max(bfx_1mm) 392 398 printf, nuldat, bfx_wr, format = '(g10.4)' 393 399 free_lun, nuldat & close, nuldat
Note: See TracChangeset
for help on using the changeset viewer.