source: trunk/PPV_PROJECTION_README @ 1

Revision 1, 815 bytes checked in by tabel, 3 years ago (diff)

Initial import of Jacques

Line 
1STEPS FOR PPV PROJECTION:
2
3; build a projection with no ghost zones, no grids with smaller spacings than 1/256, and no axis swapping
4proj = build_projection(INTERP=0, IMAGE_SIZE=256, /NOSWAPPING)
5
6; calculate data cube
7n=256
8data = DBLARR(401,n,n)
9for x=0L,n-1 do for y=0L,n-1 do data[0,x,y] = construct_ppv_projection(PROJ=proj, USE=[1,1,1,1], PT=([x,y]+.5d)/n, /INTEGRATE)
10
11noise = min(data, DIMENSION=1)
12data2 = data - TRANSPOSE(CMREPLICATE(noise, 401), [2,0,1])
13; find statistical moments
14x = CMREPLICATE(INDGEN(401),[n,n]) * 40. / 400. - 20.
15tot = REFORM(TOTAL(data2,1))
16P = data2 / TRANSPOSE(CMREPLICATE(tot, 401), [2,0,1])
17m = REFORM(TOTAL(x*P,1))
18v = REFORM(TOTAL((x-TRANSPOSE(CMREPLICATE(m, 401), [2,0,1]))^2 * P,1))
19sigma = v^.5
20x = x[*,0,0]
21
22; plot! e.g.
23loadct, 13
24tvscl, sigma
25plot, x, data[*,128,128]
Note: See TracBrowser for help on using the repository browser.