File: Regrid

package info (click to toggle)
dxsamples 4.4.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 26,340 kB
  • sloc: ansic: 10,079; sh: 8,445; java: 1,772; makefile: 1,102
file content (38 lines) | stat: -rw-r--r-- 1,231 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
input = Import("CO2.general",format="general");
frame17 = Select(input,17);

glyphs = AutoGlyph(frame17, scale=.5);
glyphs = Color(glyphs,"dim grey");

// force the glyphs to lie in front of the connected grid with a 2 pixel offset
glyphs = Options(glyphs,"fuzz",2);

grid = Construct([-100 -170], deltas = [10, 10], counts=[19, 34]);
camera = AutoCamera(grid);

connected = Regrid(frame17, grid);
colored = AutoColor(connected);
caption = Caption("default Regrid options", [.01 .99]);
collected = Collect(colored, glyphs, caption);
Display(collected,camera);

connected = Regrid(frame17, grid, radius=15);
colored = AutoColor(connected);
caption = Caption("Regrid with radius set to 15", [.01 .99]);
collected = Collect(colored,glyphs,caption);
Display(collected,camera);

connected = Regrid(frame17, grid, radius=45);
colored = AutoColor(connected);
caption = Caption("Regrid with radius set to 45", [.01 .99]);
collected = Collect(colored,glyphs,caption);
Display(collected,camera);

connected = Regrid(frame17, grid, nearest=4, radius=45);
colored = AutoColor(connected);
caption = Caption("Regrid with radius set to 45, nearest set to 4", [.01 .99]);
collected = Collect(colored,glyphs,caption);
Display(collected,camera);