Pre-processing: what slows WBPP down vs DSPX
Pre-processing: what slows WBPP down vs DSPX
Solid arrows are reads from disk, dashed arrows are writes to disk. A green step keeps its frames in memory. In each chart every read is numbered R and every write W; a filled number is a file of a light frame. Only frames and masters are drawn: small files (the .xnml files, DSPX's records and transforms) are not.
Click here to open the chart in PNG format
Every read and write, stage by stage
| WBPP stage | Reads | Writes |
|---|---|---|
| Master bias | R1 bias frames | W1 master bias |
| Master dark | R2 dark frames, R3 master bias | W2 master dark |
| Calibrate the flats | R4 flat frames, R5 bias and dark masters | W3 flats _c |
| Master flat | R6 flats _c | W4 master flat |
| Calibrate the lights | R7 light frames (raw), R8 the three masters | W5 lights _c |
| Cosmetic correction | R9 lights _c | W6 lights _c_cc |
| Measure and weight | R10 lights _c_cc | none |
| Register | R11 lights _c_cc | W7 lights _c_cc_r |
| Local normalization | R12 lights _r, R13 reference | none drawn |
| Integrate | R14 lights _r | W8 master, W9 rejection maps |
| Autocrop | R15 master | W10 cropped master |
| Whole WBPP pipeline | 15 reads | 10 writes |
| DSPX step | Reads | Writes |
|---|---|---|
| Calibration masters | R1 bias frames, R2 dark frames, R3 flat frames | W1 master bias, W2 master dark, W3 master flat |
| Pass 1: analyze | R4 light frames (raw) | none drawn |
| Registration | none drawn | none drawn |
| Pass 2: integrate | R5 light frames (raw) | W4 master (+ cropped) |
| Whole DSPX pipeline | 5 reads | 4 writes |
Where they come from
| Files | WBPP reads | WBPP writes | DSPX reads | DSPX writes |
|---|---|---|---|---|
| Light frames (the filled numbers) | 6 | 3 | 2 | 0 |
| Bias, dark and flat frames, and their masters | 7 | 4 | 3 | 3 |
| The reference, the rejection maps, the light masters | 2 | 3 | 0 | 1 |
| Whole pipeline | 15 | 10 | 5 | 4 |
Per file
| File | WBPP reads | WBPP writes | DSPX reads | DSPX writes |
|---|---|---|---|---|
| Bias frame | 1 | 0 | 1 | 0 |
| Dark frame | 1 | 0 | 1 | 0 |
| Flat frame | 2 (raw, then _c) | 1 (_c) | 1 | 0 |
| Light frame | 6 | 3 | 2 | 0 |
| Master bias | 3 (master dark, flats, lights) | 1 | 0 (used from memory) | 1 |
| Master dark | 2 (flats, lights) | 1 | 0 (used from memory) | 1 |
| Master flat | 1 (lights) | 1 | 0 (used from memory) | 1 |
An arrow is one input or one output of a stage. A box marked x N stands for N frames, WBPP's R5 is two files (the bias and the dark master) and R8 is three, so 15 arrows are not 15 file reads. Small files are neither drawn nor counted: WBPP's .xnml file for each light, DSPX's records and transforms (records: 183 MB for 243 lights). Counted from the WBPP 2.8.4 script for mono, one filter, no drizzle; options can add or remove stages.
WBPP: the stages follow the 2.8.4 pipeline order (masters, calibration, cosmetic correction, measurement, registration, local normalization, integration, autocrop); no drizzle, mono (no debayer). The number of reads and writes is counted per stage, and options can add or remove stages. DSPX: from dsw_preprocess's own description (pass 1, registration from the records, pass 2, with --residency auto keeping the warped frames in memory when they fit, and re-warping by bands when they don't), and from a measured run. Registered frames and .xnml maps are written only on request.