📖 RAW format

Astrophotography

A camera file holding the values read from the sensor, with no demosaicing, no white balance and no lossy compression.

Also called: RAW, raw file, DNG

To produce a JPEG, the camera rebuilds the colors from the Bayer matrix, applies white balance, a contrast curve and often noise reduction, then reduces the image to 8 bits per color (256 levels) with compression that discards information. A RAW file keeps the sensor data as it is, usually at 12 or 14 bits (4,096 or 16,384 levels), linear and not demosaiced.

This is essential in astrophotography. Calibration with dark and flat frames only works on linear, raw data, and the faint signal of nebulae, sitting in the very lowest levels, is largely destroyed by the JPEG curve and compression. Stacking software reads RAW files directly. Each manufacturer has its own format; DNG is an open RAW format.

Recommended settings: shoot RAW (or RAW plus JPEG to check frames in the field), and turn off long exposure noise reduction if you take dark frames separately. White balance does not change RAW data, only its preview. Some cameras still apply filtering to RAW data in long exposures, which can erase very small stars: something to check before buying a camera body for astrophotography.

Learn more

Frequently asked questions

See also

This term is used in

More terms: Astrophotography