# Focal control archives

Each `scene-XX.npz` contains five simulated 512×512 uint8 `planes`, `full_masks` (two boolean masks, or zero for the background-only control), and all raw detector-plus-SAM candidates before cross-plane suppression. Decode candidates using NumPy's default big-bit order:

```python
import numpy as np
with np.load("scene-01.npz", allow_pickle=False) as f:
    n, h, w = map(int, f["candidate_shape"])
    masks = np.unpackbits(f["candidate_bits"])[:n*h*w].reshape(n,h,w).astype(bool)
    ids = f["candidate_ids"].tolist()
    plane_indices = f["candidate_z"].tolist()
```

`results.json` records suppression aliases, imposed shifts, masks' source-plane indices and scoring. `backgrounds.npz` contains the unmodified 768×768 local crop at each actual source plane; `backgrounds.json` records slide, XY, calibration and crop hashes. The full original scans remain authoritative for species-level detail. Original public images and binary masks are in `source-objects/`, with their attribution and CC BY-NC-SA 4.0 license.
