For some reason I can't seem to post my reply to this DPreview thread Estimating D7000 dark current so I'll post here:
Of maybe Astro interest is that the Nikon's have three undocumented service modes, that change how the NEF files is created, the first allows the picture to be bigger than normal, thus my d5100 goes from 4928x3264 to 5056x3358, which I think is the black noise area is included.
The second seems to not apply white balance to the embedded image, but I also wonder if the three colour channels are not scaled.
The third is uncompressed NEF files, so not lost data.
Here are five pictures with my lens cap on, 30 seconds ISO 400 at about 22c. In lightroom I turned off all sharping, zero'd black, contrast etc, and boosted exposure to 4.0 and there are 100% zooms of the same-ish area notice blue pixel patterns:
all three features off, base line picture
oversize on, others off
WB? on, others off
oversized & WB? on, comp lossy
oversize on, WB? on, no compression (33MB vs 14MB)
Looking at the histograms of the NEF files, the WB? on does shift the colour spectrum, but not as much as the oversized.
The five original files are uploaded in Zip of 5 file (58MB)
