Replace full simulation outputs with minimal reusable abTEM inputs
Browse filesFiles changed (20)
- 4dstem/simulated_au_nanobeam_pg_dose1/README.mdDeleted-69
- 4dstem/simulated_au_nanobeam_pg_dose1/SHA256SUMSDeleted-19
- 4dstem/simulated_au_nanobeam_pg_dose1/au-scene.extxyzDeleted
- 4dstem/simulated_au_nanobeam_pg_dose1/calibration-check.csvDeleted-6
- 4dstem/simulated_au_nanobeam_pg_dose1/check-flats_data_000001.h5Deleted-3
- 4dstem/simulated_au_nanobeam_pg_dose1/check-flats_master.h5Deleted-3
- 4dstem/simulated_au_nanobeam_pg_dose1/dark_data_000001.h5Deleted-3
- 4dstem/simulated_au_nanobeam_pg_dose1/dark_master.h5Deleted-3
- 4dstem/simulated_au_nanobeam_pg_dose1/detector-calibration.ptDeleted-3
- 4dstem/simulated_au_nanobeam_pg_dose1/detector-valid.ptDeleted-3
- 4dstem/simulated_au_nanobeam_pg_dose1/dose-1.0_data_000001.h5Deleted-3
- 4dstem/simulated_au_nanobeam_pg_dose1/dose-1.0_master.h5Deleted-3
- 4dstem/simulated_au_nanobeam_pg_dose1/flats_data_000001.h5Deleted-3
- 4dstem/simulated_au_nanobeam_pg_dose1/flats_master.h5Deleted-3
- 4dstem/simulated_au_nanobeam_pg_dose1/generator-only.ptDeleted-3
- 4dstem/simulated_au_nanobeam_pg_dose1/geometry.jsonDeleted-98
- 4dstem/simulated_au_nanobeam_pg_dose1/meta.jsonDeleted-39
- 4dstem/simulated_au_nanobeam_pg_dose1/truth-events-dose-1.0_data_000001.h5Deleted-3
- 4dstem/simulated_au_nanobeam_pg_dose1/truth-events-dose-1.0_master.h5Deleted-3
- 4dstem/simulated_au_nanobeam_pg_dose1/validation.jsonDeleted-32
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869# Synthetic Au nanobeam: one dose, independent calibration
A compact example for calibrated 4D-STEM denoising with Denova TV and SHINE-PG.**Synthetic data only. This is not a validated ARINA detector simulation or a demonstrated match to experimental data.**
The native scan is 32 × 32, with 192 × 192 detector pixels; 300 kV and 0.622 mrad.One relative specimen dose (1.0; 90,000 assumed incident events per scan position)shares a noiseless expectation with independent dark, flat and validation exposures.The scientific files and maps occupy approximately 503.1 MiB before this small documentation.
```pythonfrom quantem.widget.io import hubfrom quantem.gpu import iofolder = hub.download("simulated_au_nanobeam_pg_dose1", repo="bobleesj/quantem-data")scan = io.load(folder / "dose-1.0_master.h5", representation="encoded", backend="cuda", apply_mask=False, hot_pixel_correction="none")```
Use Denova's matching development tutorials `4dstem_2_tv.ipynb` and`4dstem_3_shine.ipynb` to inspect a scan region, independently calibrate thenoise, denoise, inspect residuals and compare against truth. The revised DenovaAPI is a development workflow; an installable release containing it is notasserted here. abTEM is needed only to regenerate the example.
## What is included
| Files | Meaning || --- | --- || `dose-1.0_*` | One signed noisy ADU observation || `truth-events-dose-1.0_*` | Noiseless expected detected events; evaluation only || `dark_*` | 512 independent beam-off synthetic repeats || `flats_*` | Five illumination levels, 256 repeats per level for calibration || `check-flats_*` | Separate validation repeats: 128 per level || `detector-valid.pt` | Explicit mask: four invalid detector pixels || `detector-calibration.pt` | Parameters fitted from dark/flat repeats || `generator-only.pt` | Assumed generating parameters; evaluation only || `geometry.json`, `au-scene.extxyz` | Geometry, atoms, seeds and simulation provenance || `calibration-check.csv`, `validation.json` | Calibration and GPU I/O checks || `SHA256SUMS` | File integrity checksums |
Keep every HDF5 master together with its linked data shards. QuantEM.GPU wrotelossless compressed float32 arrays. Signed fluctuations and invalid values arepreserved. Load tensor maps with `torch.load(..., weights_only=True)`.
## Model and limits
For expected events u, draw K ~ Poisson(u), then Y = b + alpha K + Normal(0,s²).Gain alpha varies around 1.5 ADU/event; pedestal b varies around 2 ADU;read-noise standard deviation s = 0.6 ADU. These are assumed parameters, notmeasured ARINA hardware coefficients. Calibration never uses specimen truth.Five calibration illumination levels are needed even though the specimen doseis single-valued. Dark frames alone cannot recover gain.
The static Au model uses infinite-projection Lobato potentials. Its assumed25% Gaussian angular redistribution (4 mrad width) illustrates a diffusebackground; it is not atomistic liquid/window scattering. Neither count-ratecorrection nor charge-sharing covariance is modeled. Native ARINA countingstatistics need independent experimental characterization.
Native GPU abTEM and accelerated test patterns were bit-identical. The freshscan propagation, diffuse response and integration took 6.94 secondson one RTX PRO 6000 GPU; setup, import and display time are excluded.Independent check-flat normalized residual energies were 1.007–1.010,with detector row/column lag-1 correlations within ±0.0013. These tests validatethis synthetic generator/calibration example, not real-detector behavior or theabsence of added or missed peaks in any denoised output.
Credit: **Serin Lee and Andrew Barnum**, [Au liquid-cell reference](https://doi.org/10.5281/zenodo.18167694),for experimental inspiration. No reference experimental measurements are included.12345678910111213141516171819e31341e39f936c3ff7ba439aaa1562365165fdebd622ddefb3ea3583f1c84901 README.md529c00e8b9d8da1c8c4ab1bd13ca333a9fa7b1649d9a812d67e16469b92120a2 au-scene.extxyzcb7bc6068743ca23e7f50508ee363b5d358baba3cc5fa7f1190f30793d0f5964 calibration-check.csve75baa6ebb06038f0f24e92f1367200a4eeae7a2563875c290d9b779b5ea28da check-flats_data_000001.h508c725ec05c1fabb82976c3bf3cb0135c779340826e8717ceb8be26d0c384434 check-flats_master.h54d515ea386e5878ebb4a6fd9d09556206344ee907c767d9a289ceab44de99ab3 dark_data_000001.h51038ab62e1cccff9d27df5f85c7815b01fae953b94b124f24bf79ee1b96194bb dark_master.h55df8decab7e50dfd618c0d096f8a415b511e0e497dbc9c03a869ab193fa0ffcd detector-calibration.pte8ea2f609d3c405abf7622b1ff7a0b2f114c3555d557dc98feed1ccd6951fade detector-valid.pt662ea88e2d9e70419cbff27747ffdcc70626ea2a13f172a34e4762acaa2a8305 dose-1.0_data_000001.h5e5944af32f6f92a1cc7169df12e36408cc86c30f95719cae056b4a56e94d6c80 dose-1.0_master.h5cffcf31e10678bcd5d91a6f750f3e6713d06a1a45aa312a414f1fee8137ee012 flats_data_000001.h5d1f957c54cd623839040697342ef706397f56f16b098d0da08d9a223d8b7aebd flats_master.h5b33e3820340add3a8f295279e06ba521579587e8893b2abd8e91d9ace0716b6e generator-only.pta517d38291b837fad683051874e3ab8b7b82d09e1888e1f45ff08910f1d19e13 geometry.json35095b4ea696cd4051bdd5882c18029915a9315a3a6e36823699f983d49b843f meta.json56b93a7558d0a22ece0701c1d8c3dd1b06d7d334c6ac603b7d623b537e9b34c5 truth-events-dose-1.0_data_000001.h50307c2b0f26ada4ee8ec21fe0c0810daad591c367cf584eb1b43b122f240c0b0 truth-events-dose-1.0_master.h5d0813e9696f36c74cf7c1a7cd0e5bc738d881452133794c84bdfa598774002b1 validation.json123456flat_level_events,pair_difference_mean_square,detector_row_lag1_correlation,detector_col_lag1_correlation1.0,1.0098814964294434,-0.0002520309644751251,-0.000420327181927859816.0,1.0073602199554443,0.00010113576718140393,0.0009969888487830758256.0,1.0076667070388794,-0.0004012604185845703,9.079735173145309e-054096.0,1.0081920623779297,0.0006474191322922707,0.000519712397363036932768.0,1.0080114603042603,-0.0012782798148691654,-0.00038350303657352924123version https://git-lfs.github.com/spec/v1oid sha256:e75baa6ebb06038f0f24e92f1367200a4eeae7a2563875c290d9b779b5ea28dasize 70711264123version https://git-lfs.github.com/spec/v1oid sha256:08c725ec05c1fabb82976c3bf3cb0135c779340826e8717ceb8be26d0c384434size 8112123version https://git-lfs.github.com/spec/v1oid sha256:4d515ea386e5878ebb4a6fd9d09556206344ee907c767d9a289ceab44de99ab3size 62401428123version https://git-lfs.github.com/spec/v1oid sha256:1038ab62e1cccff9d27df5f85c7815b01fae953b94b124f24bf79ee1b96194bbsize 8112123version https://git-lfs.github.com/spec/v1oid sha256:5df8decab7e50dfd618c0d096f8a415b511e0e497dbc9c03a869ab193fa0ffcdsize 482591123version https://git-lfs.github.com/spec/v1oid sha256:e8ea2f609d3c405abf7622b1ff7a0b2f114c3555d557dc98feed1ccd6951fadesize 38490123version https://git-lfs.github.com/spec/v1oid sha256:662ea88e2d9e70419cbff27747ffdcc70626ea2a13f172a34e4762acaa2a8305size 125563481123version https://git-lfs.github.com/spec/v1oid sha256:e5944af32f6f92a1cc7169df12e36408cc86c30f95719cae056b4a56e94d6c80size 8560123version https://git-lfs.github.com/spec/v1oid sha256:cffcf31e10678bcd5d91a6f750f3e6713d06a1a45aa312a414f1fee8137ee012size 141415984123version https://git-lfs.github.com/spec/v1oid sha256:d1f957c54cd623839040697342ef706397f56f16b098d0da08d9a223d8b7aebdsize 8112123version https://git-lfs.github.com/spec/v1oid sha256:b33e3820340add3a8f295279e06ba521579587e8893b2abd8e91d9ace0716b6esize 4818271234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798{ "scan_shape": [ 32, 32 ], "detector_shape": [ 192, 192 ], "detector_center": [ 98.56053351439273, 100.36161400706591 ], "radius_100_percent": 96, "scan_step_A": 6.875, "cell_A": [ 220, 220, 60 ], "energy_eV": 300000, "semiangle_mrad": 0.622, "defocus_A": 0, "grid": [ 1728, 1728 ], "slice_thickness_A": [ 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0 ], "angular_sampling_mrad": 0.3579543435950485, "detector_integration": "4x4 simulated angular samples; native 192x192 output", "projection": "infinite", "lattice": "static; no frozen phonon convergence", "diffuse_fraction": 0.25, "diffuse_sigma_mrad": 4, "liquid_model": "assumed angular convolution, not atomistic liquid/window physics", "abtem_parity": { "bit_identical": true, "max_abs_error": 0.0, "relative_l2": 0.0 }, "scan_seconds": 6.936930592637509, "timing_scope": "propagation, diffuse response, detector integration; excludes setup/parity", "axis_convention": "abTEM x,y mapped to scan/detector row,col in this example", "realism": "physically motivated synthetic; not validated ARINA or matched to Serin", "relative_doses": [ 1.0 ], "incident_events_per_position": 90000, "science_seeds": [ 1000 ], "calibration_seeds": { "dark": 2000, "flat": 2001, "check": 2002 }, "noise_model": "independent Poisson arrivals plus additive Gaussian ADU", "versions": { "denova": "0.0.1.dev318+g0b24283c8", "abtem": "1.0.9", "quantem.gpu": "0.0.1rc15", "cupy": "14.2.0", "abtem_cuda_module_sha256": "3d7a59c30f32762dacfd482486ec32e25e1fc8e83792c52ac612b85820b10478" }, "storage": "QuantEM.GPU bitshuffle/LZ4 HDF5; lossless float32; one dose-1 expectation", "data_credit": "Serin Lee and Andrew Barnum, Zenodo 10.5281/zenodo.18167694 (inspiration only)"}123456789101112131415161718192021222324252627282930313233343536373839{ "name": "Synthetic Au nanobeam Poisson-Gaussian dose 1.0", "source": "abTEM-cuda synthetic Au nanobeam scan; assumed independent Poisson-Gaussian detector; no experimental measurements", "date": "2026-10-11", "sample": "Four static Au nanoparticles and an illustrative diffuse angular response", "shape": [ 32, 32, 192, 192 ], "dtype": "float32", "permission": { "received": true, "from": [ "bobleesj" ], "collectors": [ "Synthetic generator; no microscope acquisition" ], "date": "2026-10-11" }, "sampling": [ 6.875, 6.875, 0.3579543435950485, 0.3579543435950485 ], "units": [ "angstrom", "angstrom", "mrad", "mrad" ], "voltage_kV": 300, "semiangle_mrad": 0.622, "relative_dose": 1.0, "credit": "Serin Lee and Andrew Barnum, DOI 10.5281/zenodo.18167694, experimental inspiration only"}123version https://git-lfs.github.com/spec/v1oid sha256:56b93a7558d0a22ece0701c1d8c3dd1b06d7d334c6ac603b7d623b537e9b34c5size 126072312123version https://git-lfs.github.com/spec/v1oid sha256:0307c2b0f26ada4ee8ec21fe0c0810daad591c367cf584eb1b43b122f240c0b0size 85681234567891011121314151617181920212223242526272829303132{ "shape": [ 32, 32, 192, 192 ], "dtype": "torch.float32", "device": "cuda:0", "invalid_detector_pixels": 4, "science_seed_replay_bit_exact": true, "gpu_save_load_bit_exact": true, "gain_relative_rmse": 0.08756064623594284, "offset_adu_rmse": 0.026404233649373055, "read_noise_adu_rmse": 0.018843846395611763, "sampling": [ 6.875, 6.875, 0.3579543435950485, 0.3579543435950485 ], "units": [ "angstrom", "angstrom", "mrad", "mrad" ], "calibration_sources": { "flats": "4dstem-tutorial/flats_master.h5", "dark": "4dstem-tutorial/dark_master.h5" }}4dstem/simulated_au_nanobeam_pg_dose1/README.mdDeleted-69
4dstem/simulated_au_nanobeam_pg_dose1/SHA256SUMSDeleted-19
4dstem/simulated_au_nanobeam_pg_dose1/au-scene.extxyzDeleted
4dstem/simulated_au_nanobeam_pg_dose1/calibration-check.csvDeleted-6
4dstem/simulated_au_nanobeam_pg_dose1/check-flats_data_000001.h5Deleted-3
4dstem/simulated_au_nanobeam_pg_dose1/check-flats_master.h5Deleted-3
4dstem/simulated_au_nanobeam_pg_dose1/dark_data_000001.h5Deleted-3
4dstem/simulated_au_nanobeam_pg_dose1/dark_master.h5Deleted-3
4dstem/simulated_au_nanobeam_pg_dose1/detector-calibration.ptDeleted-3
4dstem/simulated_au_nanobeam_pg_dose1/detector-valid.ptDeleted-3
4dstem/simulated_au_nanobeam_pg_dose1/dose-1.0_data_000001.h5Deleted-3
4dstem/simulated_au_nanobeam_pg_dose1/dose-1.0_master.h5Deleted-3
4dstem/simulated_au_nanobeam_pg_dose1/flats_data_000001.h5Deleted-3
4dstem/simulated_au_nanobeam_pg_dose1/flats_master.h5Deleted-3
4dstem/simulated_au_nanobeam_pg_dose1/generator-only.ptDeleted-3
4dstem/simulated_au_nanobeam_pg_dose1/geometry.jsonDeleted-98
4dstem/simulated_au_nanobeam_pg_dose1/meta.jsonDeleted-39
4dstem/simulated_au_nanobeam_pg_dose1/truth-events-dose-1.0_data_000001.h5Deleted-3
4dstem/simulated_au_nanobeam_pg_dose1/truth-events-dose-1.0_master.h5Deleted-3
4dstem/simulated_au_nanobeam_pg_dose1/validation.jsonDeleted-32