Loading:

  • Deep Sky Colors
  • astrophotography
  • stars
  • tools
  • books

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

file read (blue)file written (orange)step done in memory
WBPP 2.8.4 (mono, one filter): every stage reads files and writes files reads from disk step writes to disk Master bias ImageIntegration bias frames (raw) R1 master bias W1 Master dark ImageIntegration dark frames (raw) R2 master bias R3 master dark W2 Calibrate the flats ImageCalibration flat frames (raw) R4 bias + dark masters R5 flats _c (float) W3 Master flat ImageIntegration flats _c R6 master flat W4 Calibrate the lights ImageCalibration light frames (raw) x N R7 the three masters R8 lights _c x N (float) W5 Cosmetic correction CosmeticCorrection lights _c x N R9 lights _c_cc x N W6 Measure and weight SubframeSelector lights _c_cc x N R10 (measurements only) Register StarAlignment lights _c_cc x N R11 lights _c_cc_r x N W7 Local normalization LocalNormalization lights _r x N R12 reference R13 (small files only, not shown) Integrate ImageIntegration lights _r x N R14 master W8 rejection maps W9 Autocrop crop master R15 cropped master W10 Light frames: 6 reads and 3 writes of a full-size float file. The whole pipeline: 15 reads and 10 writes.At 4008 x 2672 mono (43 MB a float frame), 243 lights: about 31 GB of intermediate files (an estimate, uncompressed). DSPX (same data): the frames stay in memory between steps reads from disk step writes to disk Calibration masters built in memory bias frames (raw) R1 dark frames (raw) R2 flat frames (raw) R3 master bias W1 master dark W2 master flat W3 Pass 1: analyze calibrate, cosmetic, measure: in memory light frames (raw) x N (read 1) R4 (small files only, not shown) Registration from pass 1's stars: no pixels (small files only, not shown) (small files only, not shown) Pass 2: integrate read, calibrate, warp, normalize, reject, integrate: in memory light frames (raw) x N (read 2) R5 master (+ cropped) W4 Light frames: 2 reads of the raw file, no pixel file written. The whole pipeline: 5 reads and 4 writes.Measured on 243 lights: output 679 MB (masters and run report); peak memory 7.4 GiB.

Every read and write, stage by stage

WBPP stageReadsWrites
Master biasR1 bias framesW1 master bias
Master darkR2 dark frames, R3 master biasW2 master dark
Calibrate the flatsR4 flat frames, R5 bias and dark mastersW3 flats _c
Master flatR6 flats _cW4 master flat
Calibrate the lightsR7 light frames (raw), R8 the three mastersW5 lights _c
Cosmetic correctionR9 lights _cW6 lights _c_cc
Measure and weightR10 lights _c_ccnone
RegisterR11 lights _c_ccW7 lights _c_cc_r
Local normalizationR12 lights _r, R13 referencenone drawn
IntegrateR14 lights _rW8 master, W9 rejection maps
AutocropR15 masterW10 cropped master
Whole WBPP pipeline15 reads10 writes
DSPX stepReadsWrites
Calibration mastersR1 bias frames, R2 dark frames, R3 flat framesW1 master bias, W2 master dark, W3 master flat
Pass 1: analyzeR4 light frames (raw)none drawn
Registrationnone drawnnone drawn
Pass 2: integrateR5 light frames (raw)W4 master (+ cropped)
Whole DSPX pipeline5 reads4 writes

Where they come from

FilesWBPP readsWBPP writesDSPX readsDSPX writes
Light frames (the filled numbers)6320
Bias, dark and flat frames, and their masters7433
The reference, the rejection maps, the light masters2301
Whole pipeline151054

Per file

FileWBPP readsWBPP writesDSPX readsDSPX writes
Bias frame1010
Dark frame1010
Flat frame2 (raw, then _c)1 (_c)10
Light frame6320
Master bias3 (master dark, flats, lights)10 (used from memory)1
Master dark2 (flats, lights)10 (used from memory)1
Master flat1 (lights)10 (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.

This website uses cookies to improve your experience. Cookie Policy