Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
.claude/
__pycache__/

# characterization: only the measurements (JSON lines) and meta.json are kept
characterization/*.log
characterization/*.jsonl
characterization/*/frames/
characterization/*/*.png
characterization/*/report.md
# characterization: cutouts and logs are not kept, data, images and READMEs are
characterization/**/frames/
characterization/**/*.log
359 changes: 0 additions & 359 deletions ASI2600MM_Pro.md

This file was deleted.

11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ Entries for releases before this file existed were generated from commit subject

## [Unreleased]

- Fixed the window of `AsiCamera` with binning above 1: the start of the window was given to the SDK in unbinned
pixels, but the SDK wants it in binned pixels, and the width and height were not rounded to the multiples of 8 and 2
the SDK needs. `AsiCamera` and `AsiVideo` now share the conversion, `XORGSUBF`/`YORGSUBF` and the BIASSEC/TRIMSEC
cards describe the window the frame really covers, and the window read at open is converted to unbinned pixels.
- The GUI writes a FITS header into the frames it saves. It was empty. The header cards are the same as in the module
(`DATE-OBS`, `EXPTIME`, `INSTRUME`, binning, window origin, `DET-PIXL`, `GAIN`, `OFFSET`, `DET-GAIN`, `DET-TEMP`,
`DET-TSET`, `DET-COOL`, `DATAMIN`, `DATAMAX`, `DATAMEAN`). `AsiCamera`, `AsiCoolCamera`, `AsiVideo` and the GUI
build them with `make_frame_header` from pyobs-core (needs pyobs-core 2.28.0).
- The GUI warm-up no longer switches the cooler off early: it also looks at the cooler power, since the sensor lags
behind the setpoint (same fix as pyobs-core 2.27.1 for the module).
- The close timeout of `AsiCoolCamera` is now estimated by pyobs-core's `CoolingRampMixin` (needs pyobs-core 2.28.0).
- Closing the camera switches the ASI cooler off at once, which warms the sensor abruptly. `AsiCoolCamera` now warms
up first when it is closed (`cooling_warmup_on_close`, default true; `cooling_close_timeout`, default 300 s, after
which the camera is closed anyway). The GUI asks "Warm up first, close now or cancel" when closed with the cooler on.
Expand Down
58 changes: 58 additions & 0 deletions characterization/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Camera characterization

Measurements of ASI cameras run with pyobs-asi. Each camera model has its own folder with notes that apply to every
unit of that model, and one subfolder per unit, named after its serial number, with the measurements.

| Model | Units |
|---|---|
| [ZWO ASI2600MM Pro](ZWO_ASI2600MM_Pro/README.md) | [1d22d2002b020900](ZWO_ASI2600MM_Pro/1d22d2002b020900/README.md) |

## Layout

```
characterization/
<model>/
README.md notes for the model: SDK, driver, recommended settings
<serial number>/
README.md report of the measurements on this unit
*.jsonl raw records written by tools/characterize.py
*.csv the same data as tables, plus results of separate analyses
meta.json camera properties and controls as reported by the SDK, and the serial number
images/ plots
frames/ 512x512 FITS cutouts (not kept in git)
```

The serial number is the one ZWO's software shows (`ASIGetSerialNumber` in the SDK, 16 hexadecimal digits).

## Reproduce

`tools/characterize.py` runs the measurements (no other program may use the camera). It writes into
`characterization/<model>/<serial number>/` of the connected camera. With the lens capped:

```bash
uv run python tools/characterize.py bias
uv run python tools/characterize.py gain --target-temp 10
uv run python tools/characterize.py temperature
uv run python tools/characterize.py pixels --no-cooling
uv run python tools/characterize.py pixels --target-temp -5
uv run python tools/characterize.py readout
```

With the lens open, pointed at a steady, defocused light source:

```bash
uv run python tools/characterize.py flat
uv run python tools/characterize.py flat --gains 25 75 150 250
uv run python tools/characterize.py short --reference 0.025
```

The `report` step needs no camera. It redraws the plots in `images/` and writes a CSV file next to every `.jsonl`
file. With more than one unit measured, give the folder:

```bash
uv run python tools/characterize.py report --folder characterization/ZWO_ASI2600MM_Pro/1d22d2002b020900
```

Not produced by the script: the 17 h dark of the ASI2600MM Pro and its results (`dark_long_*.csv`,
`bias_long_frames.csv`, `hotpixels_-10C.csv`, `images/dark_long.png`). The frames were taken with `asi-gui` and
evaluated separately.
254 changes: 254 additions & 0 deletions characterization/ZWO_ASI2600MM_Pro/1d22d2002b020900/README.md

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions characterization/ZWO_ASI2600MM_Pro/1d22d2002b020900/bias.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
utc,gain,offset,temp,time,mean,median,noise_std_adu,noise_mad_adu,clipped_frac
2026-11-10T14:05:26,0,0,22.7,1794319526.4589205,1.7244524955749512,0.0,2.818850900543776,2.0967130275743506,0.523908257484436
2026-11-10T14:05:28,0,10,22.8,1794319528.0123599,100.3065538406372,100.0,4.458147166002245,4.193426055148701,0.0
2026-11-10T14:05:29,0,50,22.8,1794319529.6015637,500.3163113594055,500.0,4.459789859549506,4.193426055148701,0.0
2026-11-10T14:05:31,0,100,23.0,1794319531.1826444,1000.3193928003311,1000.0,4.466285465168174,4.193426055148701,0.0
2026-11-10T14:05:32,0,240,23.0,1794319532.7406068,2400.311822295189,2400.0,4.460096379304404,4.193426055148701,0.0
2026-11-10T14:05:34,50,0,23.1,1794319534.2915573,1.6385630369186401,0.0,3.969381504400771,1.0483565137871753,0.6786631345748901
2026-11-10T14:05:35,50,10,23.1,1794319535.8652015,97.79131960868835,98.0,7.44764837693496,6.2901390827230514,4.8995018005371094e-05
2026-11-10T14:05:37,50,50,23.2,1794319537.4271872,497.7747552394867,498.0,7.438019758248204,6.2901390827230514,0.0
2026-11-10T14:05:38,50,100,23.3,1794319538.99671,997.7782309055328,998.0,7.442619937297557,6.2901390827230514,0.0
2026-11-10T14:05:40,50,240,23.3,1794319540.5580218,2397.792354822159,2398.0,7.460558809232128,6.2901390827230514,0.0
2026-11-10T14:05:42,100,0,23.4,1794319542.1187022,2.181228995323181,0.0,3.6736290950495585,2.0967130275743506,0.500952959060669
2026-11-10T14:05:43,100,10,23.5,1794319543.6917105,100.56302618980408,100.0,5.6388553066061275,4.193426055148701,5.9604644775390625e-06
2026-11-10T14:05:45,100,50,23.5,1794319545.2663984,500.559592962265,500.0,5.655931185054466,4.193426055148701,0.0
2026-11-10T14:05:46,100,100,23.5,1794319546.839245,1000.5541619062424,1000.0,5.644239460552586,4.193426055148701,0.0
2026-11-10T14:05:48,100,240,23.6,1794319548.4067428,2400.569172501564,2400.0,5.642341916697624,4.193426055148701,0.0
2026-11-10T14:05:49,150,0,23.7,1794319549.9655676,2.3709598779678345,0.0,5.5080401712284175,1.0483565137871753,0.6329121589660645
2026-11-10T14:05:51,150,10,23.8,1794319551.5247023,98.24567008018494,98.0,9.487313251875925,7.338495596510227,0.00032722949981689453
2026-11-10T14:05:53,150,50,23.8,1794319553.0991073,498.2293578386307,498.0,9.578682931008705,7.338495596510227,0.0
2026-11-10T14:05:54,150,100,23.8,1794319554.652192,998.2223770618439,998.0,9.573862291473429,7.338495596510227,0.0
2026-11-10T14:05:56,150,240,24.0,1794319556.233009,2398.227723836899,2398.0,9.57855093680149,7.338495596510227,0.0
2026-11-10T14:05:57,200,0,24.0,1794319557.780393,3.9886239767074585,0.0,9.520319211061615,2.0967130275743506,0.6240607500076294
2026-11-10T14:05:59,200,10,24.0,1794319559.3737593,97.05685985088348,97.0,15.686316916227025,11.531921651658926,0.001683354377746582
2026-11-10T14:06:00,200,50,24.0,1794319560.9497638,497.0156135559082,497.0,16.334518927938696,11.531921651658926,0.0
2026-11-10T14:06:02,200,100,24.1,1794319562.5212588,996.97309923172,997.0,16.36402412957236,11.531921651658926,0.0
2026-11-10T14:06:04,200,240,24.1,1794319564.0491507,2397.0058579444885,2397.0,16.333371398976603,11.531921651658926,0.0
2026-11-10T14:06:05,300,0,24.2,1794319565.5710428,12.616364479064941,0.0,29.787405763454018,8.386852110297403,0.5937321186065674
2026-11-10T14:06:07,300,10,24.3,1794319567.133813,94.57430827617645,92.0,43.59133734014658,34.59576495497678,0.012340903282165527
2026-11-10T14:06:08,300,50,24.3,1794319568.6810188,493.49034690856934,492.0,48.74003248437772,34.59576495497678,0.00045740604400634766
2026-11-10T14:06:10,300,100,24.3,1794319570.2518566,993.4879180192947,992.5,49.40711888956067,34.59576495497678,4.172325134277344e-06
2026-11-10T14:06:11,300,240,24.4,1794319571.8637407,2393.5068497657776,2392.0,49.34977125478024,34.59576495497678,0.0
2026-11-10T14:06:13,400,0,24.4,1794319573.396035,39.65901851654053,0.0,91.27349623301986,28.30562587225373,0.5707050561904907
2026-11-10T14:06:14,400,10,24.5,1794319574.9557135,102.10744333267212,83.0,113.61044944352022,82.82016458918685,0.2029043436050415
2026-11-10T14:06:16,400,50,24.5,1794319576.4822807,488.1747715473175,483.0,134.22548078066768,100.64222532356882,0.004601240158081055
2026-11-10T14:06:18,400,100,24.6,1794319578.0651922,986.6869624853134,982.5,141.1910981339643,100.64222532356882,0.001430511474609375
2026-11-10T14:06:19,400,240,24.6,1794319579.609426,2386.2682571411133,2383.0,147.58053075960356,100.64222532356882,4.4345855712890625e-05
2026-11-10T14:06:21,500,0,24.6,1794319581.1692588,128.0645169019699,0.0,283.64709968910745,96.44879926842012,0.5506281852722168
2026-11-10T14:06:22,500,10,24.6,1794319582.7281904,179.93847823143005,62.0,307.83294630289936,161.44690312322498,0.41796934604644775
2026-11-10T14:06:24,500,50,24.7,1794319584.332166,496.9034147262573,462.0,375.8793107609917,291.44311083283475,0.0673297643661499
2026-11-10T14:06:25,500,100,24.8,1794319585.878155,984.2047822475433,962.0,399.25345570089553,304.0233889982808,0.008922100067138672
2026-11-10T14:06:27,500,240,24.8,1794319587.4652638,2378.537152528763,2362.0,424.57672939748005,304.0233889982808,0.0022531747817993164
2026-11-10T14:06:29,600,0,24.8,1794319589.006723,403.5586256980896,0.0,914.9093310899748,301.92667597070647,0.5615283250808716
2026-11-10T14:06:30,600,10,24.8,1794319590.572538,450.3180402517319,0.0,936.9686931941096,369.02149285308565,0.518907904624939
2026-11-10T14:06:32,600,50,24.9,1794319592.1675396,673.6208137273788,348.0,1030.8797120925435,612.2402040517104,0.3592686653137207
2026-11-10T14:06:33,600,100,25.0,1794319593.735754,1038.0661087036133,848.0,1130.942623113882,821.9115068091453,0.1926785707473755
2026-11-10T14:06:35,600,240,25.0,1794319595.2901545,2331.0947568416595,2248.0,1266.28519404652,981.2616969047959,0.020661473274230957
2026-11-10T14:06:36,700,0,25.0,1794319596.8438017,1330.4517921209335,0.0,2813.2685200770256,1039.9696616768779,0.5344092845916748
2026-11-10T14:06:38,700,10,25.1,1794319598.3797474,1373.4358381032944,0.0,2836.8355165982643,1107.064478559257,0.5203911066055298
2026-11-10T14:06:39,700,50,25.1,1794319599.9553728,1575.0427366495132,244.0,2930.7167148436597,1362.8634679233278,0.46644341945648193
2026-11-10T14:06:41,700,100,25.1,1794319601.519274,1856.856890797615,744.0,3046.7951077189628,1668.983569949183,0.4002567529678345
2026-11-10T14:06:43,700,240,25.1,1794319603.0688071,2819.8091917037964,2144.0,3346.5074345711305,2331.544886662678,0.23345839977264404
2026-11-16T11:57:28,25,50,27.6,1794830248.4808383,498.9483232498169,499.0,5.760731444760568,5.241782568935876,0.0
2026-11-16T11:57:30,75,50,27.6,1794830250.0490258,497.18326807022095,497.0,9.678849318310618,8.386852110297403,0.0
2026-11-16T11:57:31,150,50,27.7,1794830251.6324341,498.2781550884247,498.0,9.55734102413031,7.338495596510227,0.0
2026-11-16T11:57:33,250,50,27.8,1794830253.1681156,495.53744769096375,495.0,28.570894863922888,20.967130275743504,1.537799835205078e-05
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,7 @@
{"gain": 700, "offset": 50, "temp": 25.1, "time": 1794319599.9553728, "mean": 1575.0427366495132, "median": 244.0, "noise_std_adu": 2930.7167148436597, "noise_mad_adu": 1362.8634679233278, "clipped_frac": 0.46644341945648193}
{"gain": 700, "offset": 100, "temp": 25.1, "time": 1794319601.519274, "mean": 1856.856890797615, "median": 744.0, "noise_std_adu": 3046.7951077189628, "noise_mad_adu": 1668.983569949183, "clipped_frac": 0.4002567529678345}
{"gain": 700, "offset": 240, "temp": 25.1, "time": 1794319603.0688071, "mean": 2819.8091917037964, "median": 2144.0, "noise_std_adu": 3346.5074345711305, "noise_mad_adu": 2331.544886662678, "clipped_frac": 0.23345839977264404}
{"gain": 25, "offset": 50, "temp": 27.6, "time": 1794830248.4808383, "mean": 498.9483232498169, "median": 499.0, "noise_std_adu": 5.760731444760568, "noise_mad_adu": 5.241782568935876, "clipped_frac": 0.0}
{"gain": 75, "offset": 50, "temp": 27.6, "time": 1794830250.0490258, "mean": 497.18326807022095, "median": 497.0, "noise_std_adu": 9.678849318310618, "noise_mad_adu": 8.386852110297403, "clipped_frac": 0.0}
{"gain": 150, "offset": 50, "temp": 27.7, "time": 1794830251.6324341, "mean": 498.2781550884247, "median": 498.0, "noise_std_adu": 9.55734102413031, "noise_mad_adu": 7.338495596510227, "clipped_frac": 0.0}
{"gain": 250, "offset": 50, "temp": 27.8, "time": 1794830253.1681156, "mean": 495.53744769096375, "median": 495.0, "noise_std_adu": 28.570894863922888, "noise_mad_adu": 20.967130275743504, "clipped_frac": 1.537799835205078e-05}
Loading
Loading