WhiteBalance Values not found in Pentax K-30 DNG

Started by tuxuser, September 22, 2013, 02:44:51 PM

Previous topic - Next topic

tuxuser

Hey guys!

Looking for White Balance values aka. "ColorBalance1", "RedBalance", "WhiteBalance"  in a DNG file, produced by Pentax K-30 - however, I cannot find something like that? Was it maybe renamed?

I am trying to grab the values for this: http://www.darktable.org/2012/10/whats-involved-with-adding-support-for-new-cameras/ - Section: White Balance Presets

Quote
ExifTool Version Number         : 9.37
File Name                       : IMGP2395.DNG
Directory                       : .
File Size                       : 15 MB
File Modification Date/Time     : 2013:09:02 10:17:06+02:00
File Access Date/Time           : 2013:09:06 23:53:27+02:00
File Inode Change Date/Time     : 2013:09:06 23:53:27+02:00
File Permissions                : rw-r--r--
File Type                       : DNG
MIME Type                       : image/x-adobe-dng
Exif Byte Order                 : Big-endian (Motorola, MM)
Make                            : PENTAX
Camera Model Name               : PENTAX K-30
Orientation                     : Rotate 90 CW
Software                        : K-30 Ver 1.04
Modify Date                     : 2013:09:02 10:17:04
Artist                          :
Image Width                     : 4960
Image Height                    : 3300
Bits Per Sample                 : 12
Compression                     : JPEG
Photometric Interpretation      : Color Filter Array
Strip Offsets                   : 162080
Samples Per Pixel               : 1
Rows Per Strip                  : 3300
Strip Byte Counts               : 14494552
X Resolution                    : 300
Y Resolution                    : 300
Planar Configuration            : Chunky
Resolution Unit                 : inches
CFA Repeat Pattern Dim          : 2 2
CFA Pattern 2                   : 0 1 1 2
CFA Layout                      : Rectangular
Black Level Repeat Dim          : 2 2
Black Level                     : 0 0 0 0
White Level                     : 4078
Default Scale                   : 1 1
Default Crop Origin             : 4 4
Default Crop Size               : 4928 3264
Bayer Green Split               : 0
Anti Alias Strength             : 1
Active Area                     : 20 8 3292 4944
Subfile Type                    : Reduced-resolution image
Primary Chromaticities          : 0.64 0.33 0.3 0.6 0.15 0.06
Y Cb Cr Coefficients            : 0.299 0.587 0.114
Y Cb Cr Sub Sampling            : YCbCr4:2:2 (2 1)
Y Cb Cr Positioning             : Co-sited
Copyright                       :
Exposure Time                   : 1/125
F Number                        : 5.6
Exposure Program                : Aperture-priority AE
Date/Time Original              : 2013:09:02 10:17:04
Create Date                     : 2013:09:02 10:17:04
Flash                           : Off, Did not fire
Focal Length                    : 88.0 mm
Sensing Method                  : One-chip color area
Custom Rendered                 : Normal
Exposure Mode                   : Manual
Focal Length In 35mm Format     : 132 mm
Scene Capture Type              : Standard
Subject Distance Range          : Distant
GPS Version ID                  : 2.3.0.0
DNG Version                     : 1.1.0.0
DNG Backward Version            : 1.1.0.0
Unique Camera Model             : PENTAX K-30
Color Matrix 1                  : 1.012145996 -0.5012969971 -0.0830078125 -0.3495941162 0.9834136963 0.4286651611 -0.01815795898 0.0379486084 0.6941680908
Color Matrix 2                  : 0.8721466064 -0.2635650635 -0.1168060303 -0.3995361328 1.230117798 0.1880645752 -0.09979248047 0.174911499 0.6649780273
Analog Balance                  : 1 1 1
As Shot Neutral                 : 0.4459930314 1 0.628992629
Baseline Exposure               : -0.5065002441
Baseline Noise                  : 1
Baseline Sharpness              : 1
Linear Response Limit           : 1
Pentax Version                  : 10.0.0.0
Pentax Model Type               : 0
Preview Image Size              : 640x480
Preview Image Length            : 38952
Preview Image Start             : 33504
Pentax Model ID                 : K-30
Date                            : 2013:09:02
Time                            : 10:17:04
Quality                         : RAW
Flash Mode                      : Off, Did not fire; Internal
Focus Mode                      : AF-S
AF Point Selected               : Auto; 0
ISO                             : 100
Exposure Compensation           : +0.3
Metering Mode                   : Center-weighted average
Auto Bracketing                 : 0 EV, No Extended Bracket
White Balance                   : Daylight
Saturation                      : Normal
Contrast                        : Normal
Sharpness                       : Normal
DSP Firmware Version            : 1.04.23.18
Effective LV                    : 12.1
Picture Mode                    : Aperture Priority; 1/3 EV steps
Drive Mode                      : Continuous; No Timer; Shutter Button; Single Exposure
Sensor Size                     : 24.160 x 16.016 mm
Color Space                     : sRGB
Image Area Offset               : 8 20
Raw Image Size                  : 4936x3272
Preview Image Borders           : 28 28 0 0
Lens Type                       : smc PENTAX-DA 18-135mm F3.5-5.6 ED AL [IF] DC WR
Camera Temperature              : 23 C
AE Lock                         : Off
Noise Reduction                 : Off
Flash Exposure Comp             : -2.0
Image Tone                      : Natural
SR Result                       : Stabilized
Shake Reduction                 : On (135)
SR Half Press Time              : 1.33 s
SR Focal Length                 : 88 mm
Shutter Count                   : 12235
Faces Detected                  : 0
Face Position                   : 0 0
Raw Development Process         : 10 (K-01,K-30)
Hue                             : Normal
White Balance Auto Adjustment   : On
Tungsten AWB                    : Subtle Correction
Dynamic Range Expansion         : Off
World Time Location             : Hometown
Hometown DST                    : No
Destination DST                 : No
Hometown City                   : Berlin
Destination City                : Berlin
High/Low Key Adj                : 0
Fine Sharpness                  : Off; Normal
High ISO Noise Reduction        : Weak; Active (Weak)
AF Adjustment                   : 0
Monochrome Filter Effect        : None
Monochrome Toning               : None
Face Detect                     : Off; 0 faces detected
Face Detect Frame Size          : 0 0
Shadow Correction               : Off
Cross Process                   : Off
Distortion Correction           : Off
Chromatic Aberration Correction : Off
Bleach Bypass Toning            : Off
Aspect Ratio                    : 3:2
Black Point                     : 0 0 0 0
White Point                     : 18368 8192 8192 13024
AE Exposure Time                : 1/132
AE Aperture                     : 5.2
AE ISO                          : 109
AE Max Aperture                 : 5.7
AE Max Aperture 2               : 5.2
AE Min Aperture                 : 38
AE Min Exposure Time            : 1/5461
Auto Aperture                   : On
Min Aperture                    : 22
Lens F Stops                    : 8.5
Nominal Max Aperture            : 5.7
Nominal Min Aperture            : 38
Max Aperture                    : 5.2
AE Metering Segments            : 10.6 11.5 11.6 12.2 12.8 12.1 12.1 11.8 11.9 11.8 11.2 10.9 11.8 11.5 12.1 11.8 10.0 11.4 12.5 12.2 11.8 11.4 11.4 11.9 11.1 10.6 10.5 10.0 11.8 12.9 12.6 11.2 11.8 11.6 11.8 11.0 11.0 11.2 11.1 11.1 9.9 10.9 11.2 12.0 11.1 11.6 10.6 11.1 11.2 11.2 10.9 10.8 10.8 11.1 11.9 11.1 11.5 11.6 11.2 10.9 11.2 11.1 11.6 11.4 11.5 12.1 10.9 12.0 12.8 12.2 11.9 11.8 11.4 11.5 11.2 11.6 12.0
Flash Metering Segments         : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Slave Flash Metering Segments   : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Manufacture Date                : 2012:09:01
Production Code                 : 2.2
Internal Serial Number          : 7089402
Power Source                    : Body Battery
Body Battery State              : 5
AF Predictor                    : -17
AF Defocus                      : 12
AF Integration Time             : 6 ms
AF Points In Focus              : Center (horizontal)
WB Shift AB                     : 0
WB Shift GM                     : 0
EV Steps                        : 1/3 EV Steps
Sensitivity Steps               : As EV Steps
Serial Number                   : 4439633
Level Orientation               : Rotate 90 CW
Composition Adjust              : Off
Roll Angle                      : -1.5
Pitch Angle                     : -6.5
Composition Adjust X            : 0
Composition Adjust Y            : 0
Composition Adjust Rotation     : 0
WB RGGB Levels Daylight         : 18129 8192 8192 13346
WB RGGB Levels Shade            : 21662 8192 8192 9961
WB RGGB Levels Cloudy           : 19534 8192 8192 11411
WB RGGB Levels Tungsten         : 10895 8192 8192 24758
WB RGGB Levels Fluorescent D    : 22385 8192 8192 12862
WB RGGB Levels Fluorescent N    : 19193 8192 8192 14313
WB RGGB Levels Fluorescent W    : 17449 8192 8192 17698
WB RGGB Levels Flash            : 20555 8192 8192 12282
WB RGGB Levels Fluorescent L    : 14597 8192 8192 22146
WB RGGB Levels User Selected    : 18129 8192 8192 13346
Contrast Detect AF Area         : 0 0 0 0
Calibration Illuminant 1        : Standard Light A
Calibration Illuminant 2        : D65
Aperture                        : 5.6
CFA Pattern                     : [Red,Green][Green,Blue]
Image Size                      : 4960x3300
Lens ID                         : smc PENTAX-DA 18-135mm F3.5-5.6 ED AL [IF] DC WR
Preview Image                   : (Binary data 38952 bytes, use -b option to extract)
Scale Factor To 35 mm Equivalent: 1.5
Shutter Speed                   : 1/125
Circle Of Confusion             : 0.020 mm
Field Of View                   : 15.5 deg
Focal Length                    : 88.0 mm (35 mm equivalent: 132.0 mm)
Hyperfocal Distance             : 69.04 m
Light Value                     : 11.9


Sample DNG - WB Preset Daylight https://www.dropbox.com/s/aerg2rv766lr2fj/IMGP2395.DNG

Thx in advance

Greetz
tux

Phil Harvey

Does this give you what you want?:

White Balance                   : Daylight
WB RGGB Levels Daylight         : 18129 8192 8192 13346


So

Red Balance = 18129/8192
Blue Balance = 13346/8192

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

tuxuser

Thanks a lot! Exactly what I was looking for.

cheers

Phil Harvey

I'll consider adding a new Composite tag to allow these to be calculated automatically.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).