GEOTAG issues - HELP

Started by mtndewdewd, July 16, 2016, 03:04:31 AM

Previous topic - Next topic

Phil Harvey

The command is this:

exiftool -gps:all= -tagsfromfile d:\tags\%f.exif -gps:all -m -a -ext jpg d:\images

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

mtndewdewd

That works for the GPS tags - thank you very much.

However, using that knowledge... I started working on the other pieces and it is not working for the RAW (binary) data. Is there a way to extract the entire metadata and then re-import? I tried the .MIE option but it does not work.

These are RJPEG images and all editing software changes the metadata format to a JPG (rgb stuff). Attached is a pre-edited version and a post edited version. You can see the structure is totally different. Is there a way to pull an image of all metadata (including binary) before an edit, and then replace it all back to the file after the edit?

before:
ExifTool Version Number         : 10.23
File Name                       : flt1_01__0708.jpg
Directory                       : .
File Size                       : 685 kB
File Modification Date/Time     : 2016:07:23 10:33:27-07:00
File Access Date/Time           : 2016:07:23 10:33:27-07:00
File Creation Date/Time         : 2016:07:23 10:30:09-07:00
File Permissions                : rw-rw-rw-
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
JFIF Version                    : 1.01
Exif Byte Order                 : Little-endian (Intel, II)
Orientation                     : Horizontal (normal)
X Resolution                    : 1.714285714
Y Resolution                    : 1.714285714
Resolution Unit                 : inches
Y Cb Cr Positioning             : Centered
Make                            : TeAx Technology
Camera Model Name               : ThermalCapture
Modify Date                     : 2016:07:05 15:09:05
Exif Version                    : 0210
Components Configuration        : Y, Cb, Cr, -
Focal Length                    : 13.0 mm
Flashpix Version                : 0100
Color Space                     : Uncalibrated
Exif Image Width                : 0
Exif Image Height               : 0
Focal Length In 35mm Format     : 40 mm
GPS Version ID                  : 2.0.0.0
GPS Latitude Ref                : North
GPS Longitude Ref               : West
GPS Altitude Ref                : Above Sea Level
Creator Software                : ATAU_RBFO
Raw Thermal Image Width         : 640
Raw Thermal Image Height        : 512
Raw Thermal Image Type          : TIFF
Raw Thermal Image               : (Binary data 655564 bytes, use -b option to extract)
Emissivity                      : 1.00
Object Distance                 : 2.00 m
Reflected Apparent Temperature  : 22.0 C
Atmospheric Temperature         : 22.0 C
IR Window Temperature           : 22.0 C
IR Window Transmission          : 1.00
Relative Humidity               : 50.0 %
Planck R1                       : 366545
Planck B                        : 1428
Planck F                        : 1
Atmospheric Trans Alpha 1       : 0.006569
Atmospheric Trans Alpha 2       : 0.012620
Atmospheric Trans Beta 1        : -0.002280
Atmospheric Trans Beta 2        : -0.006670
Atmospheric Trans X             : 1.900000
Camera Temperature Range Max    : 4726.9 C
Camera Temperature Range Min    : -273.1 C
Camera Model                    :
Camera Part Number              :
Camera Serial Number            :
Camera Software                 :
Lens Model                      :
Lens Part Number                :
Lens Serial Number              :
Field Of View                   : 0.0 deg
Filter Model                    :
Filter Part Number              :
Filter Serial Number            :
Planck O                        : -342
Planck R2                       : 1
Raw Value Median                : 4460
Raw Value Range                 : 766
Date/Time Original              : 0000:00:00 00:00:00.000+00:00
Focus Step Count                : 0
Focus Distance                  : 0.0 m
Palette Colors                  : 224
Above Color                     : 16 128 128
Below Color                     : 16 128 128
Overflow Color                  : 16 128 128
Underflow Color                 : 16 128 128
Isotherm 1 Color                : 16 128 128
Isotherm 2 Color                : 16 128 128
Palette Method                  : 0
Palette Stretch                 : 1
Palette Name                    : Gray
Palette                         : (Binary data 672 bytes, use -b option to extract)
Meas 1 Type                     : Spot
Meas 1 Params                   : 201 19
Meas 1 Label                    : Sp1
Image Width                     : 640
Image Height                    : 512
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
GPS Altitude                    : 243 m Above Sea Level
GPS Latitude                    : 33 deg 2' 2.35" N
GPS Longitude                   : 112 deg 39' 17.50" W
GPS Position                    : 33 deg 2' 2.35" N, 112 deg 39' 17.50" W
Image Size                      : 640x512
Megapixels                      : 0.328
Peak Spectral Sensitivity       : 10.1 um
Scale Factor To 35 mm Equivalent: 3.1
Circle Of Confusion             : 0.010 mm
Field Of View                   : 48.5 deg
Focal Length                    : 13.0 mm (35 mm equivalent: 40.0 mm)



AFTER:
ExifTool Version Number         : 10.23
File Name                       : flt1_01__0708-psp.jpg
Directory                       : .
File Size                       : 55 kB
File Modification Date/Time     : 2016:07:23 10:35:57-07:00
File Access Date/Time           : 2016:07:23 10:35:57-07:00
File Creation Date/Time         : 2016:07:23 10:34:34-07:00
File Permissions                : rw-rw-rw-
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
JFIF Version                    : 1.01
Profile CMM Type                : Lino
Profile Version                 : 2.1.0
Profile Class                   : Display Device Profile
Color Space Data                : RGB
Profile Connection Space        : XYZ
Profile Date Time               : 1998:02:09 06:49:00
Profile File Signature          : acsp
Primary Platform                : Microsoft Corporation
CMM Flags                       : Not Embedded, Independent
Device Manufacturer             : IEC
Device Model                    : sRGB
Device Attributes               : Reflective, Glossy, Positive, Color
Rendering Intent                : Perceptual
Connection Space Illuminant     : 0.9642 1 0.82491
Profile Creator                 : HP
Profile ID                      : 0
Profile Copyright               : Copyright (c) 1998 Hewlett-Packard Company
Profile Description             : sRGB IEC61966-2.1
Media White Point               : 0.95045 1 1.08905
Media Black Point               : 0 0 0
Red Matrix Column               : 0.43607 0.22249 0.01392
Green Matrix Column             : 0.38515 0.71687 0.09708
Blue Matrix Column              : 0.14307 0.06061 0.7141
Device Mfg Desc                 : IEC http://www.iec.ch
Device Model Desc               : IEC 61966-2.1 Default RGB colour space - sRGB
Viewing Cond Desc               : Reference Viewing Condition in IEC61966-2.1
Viewing Cond Illuminant         : 19.6445 20.3718 16.8089
Viewing Cond Surround           : 3.92889 4.07439 3.36179
Viewing Cond Illuminant Type    : D50
Luminance                       : 76.03647 80 87.12462
Measurement Observer            : CIE 1931
Measurement Backing             : 0 0 0
Measurement Geometry            : Unknown
Measurement Flare               : 0.999%
Measurement Illuminant          : D65
Technology                      : Cathode Ray Tube Display
Red Tone Reproduction Curve     : (Binary data 2060 bytes, use -b option to extract)
Green Tone Reproduction Curve   : (Binary data 2060 bytes, use -b option to extract)
Blue Tone Reproduction Curve    : (Binary data 2060 bytes, use -b option to extract)
Exif Byte Order                 : Little-endian (Intel, II)
Orientation                     : Horizontal (normal)
X Resolution                    : 1.714285714
Y Resolution                    : 1.714285714
Resolution Unit                 : inches
Y Cb Cr Positioning             : Centered
Make                            : TeAx Technology
Camera Model Name               : ThermalCapture
Modify Date                     : 2016:07:05 15:09:05
Exif Version                    : 0210
Components Configuration        : Y, Cb, Cr, -
Focal Length                    : 13.0 mm
Flashpix Version                : 0100
Color Space                     : Uncalibrated
Exif Image Width                : 0
Exif Image Height               : 0
Focal Length In 35mm Format     : 40 mm
GPS Version ID                  : 2.0.0.0
GPS Altitude Ref                : Above Sea Level
XMP Toolkit                     : XMP Core 5.1.2
Creator Tool                    : PaintShop Pro 17.00
Image Width                     : 640
Image Height                    : 512
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:4:4 (1 1)
GPS Altitude                    : 243 m Above Sea Level
GPS Latitude                    : 33 deg 2' 2.35" N
GPS Latitude Ref                : North
GPS Longitude                   : 112 deg 39' 17.50" W
GPS Longitude Ref               : West
GPS Position                    : 33 deg 2' 2.35" N, 112 deg 39' 17.50" W
Image Size                      : 640x512
Megapixels                      : 0.328
Scale Factor To 35 mm Equivalent: 3.1
Circle Of Confusion             : 0.010 mm
Field Of View                   : 48.5 deg
Focal Length                    : 13.0 mm (35 mm equivalent: 40.0 mm)

Phil Harvey

Try copying the EXIF data as a block using the "EXIF" tag.  See the Extra tags documentation for details.

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

mtndewdewd

That is what I did below. Didn't work.

exiftool -tagsfromfile flt1_01__0708.jpg -exif flt1_01__0708.mie

exiftool -tagsfromfile flt1_01__0708.mie -exif flt1_01__0708-psp.jpg

Phil Harvey

Didn't work?  In what sense?

Does this work for you using one of the test files from the full ExifTool distribution?:

> exiftool a.mie -tagsfromfile t/images/Canon.jpg -exif
    1 image files created
> exiftool a.jpg -all= -tagsfromfile a.mie -exif
    1 image files updated
> exiftool a.jpg -a -G1
[ExifTool]      ExifTool Version Number         : 10.23
[System]        File Name                       : a.jpg
[System]        Directory                       : .
[System]        File Size                       : 2.6 kB
[System]        File Modification Date/Time     : 2016:07:24 07:15:25-04:00
[System]        File Access Date/Time           : 2016:07:24 07:15:25-04:00
[System]        File Inode Change Date/Time     : 2016:07:24 07:15:30-04:00
[System]        File Permissions                : rw-r--r--
[File]          File Type                       : JPEG
[File]          File Type Extension             : jpg
[File]          MIME Type                       : image/jpeg
[File]          Exif Byte Order                 : Little-endian (Intel, II)
[File]          Image Width                     : 8
[File]          Image Height                    : 8
[File]          Encoding Process                : Baseline DCT, Huffman coding
[File]          Bits Per Sample                 : 8
[File]          Color Components                : 3
[File]          Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
[IFD0]          Make                            : Canon
[IFD0]          Camera Model Name               : Canon EOS DIGITAL REBEL
[IFD0]          Orientation                     : Horizontal (normal)
[IFD0]          X Resolution                    : 180
[IFD0]          Y Resolution                    : 180
[IFD0]          Resolution Unit                 : inches
[IFD0]          Modify Date                     : 2003:12:04 06:46:52
[IFD0]          Y Cb Cr Positioning             : Centered
[ExifIFD]       Exposure Time                   : 4
[ExifIFD]       F Number                        : 14.0
[ExifIFD]       ISO                             : 100
[ExifIFD]       Exif Version                    : 0221
[ExifIFD]       Date/Time Original              : 2003:12:04 06:46:52
[ExifIFD]       Create Date                     : 2003:12:04 06:46:52
[ExifIFD]       Components Configuration        : Y, Cb, Cr, -
[ExifIFD]       Compressed Bits Per Pixel       : 9
[ExifIFD]       Shutter Speed Value             : 0
[ExifIFD]       Aperture Value                  : 14.0
[ExifIFD]       Exposure Compensation           : 0
[ExifIFD]       Max Aperture Value              : 4.5
[ExifIFD]       Metering Mode                   : Average
[ExifIFD]       Flash                           : No Flash
[ExifIFD]       Focal Length                    : 34.0 mm
[ExifIFD]       User Comment                    :
[ExifIFD]       Flashpix Version                : 0100
[ExifIFD]       Color Space                     : sRGB
[ExifIFD]       Exif Image Width                : 160
[ExifIFD]       Exif Image Height               : 120
[ExifIFD]       Focal Plane X Resolution        : 3443.946188
[ExifIFD]       Focal Plane Y Resolution        : 3442.016807
[ExifIFD]       Focal Plane Resolution Unit     : inches
[ExifIFD]       Sensing Method                  : One-chip color area
[ExifIFD]       File Source                     : Digital Camera
[ExifIFD]       Custom Rendered                 : Normal
[ExifIFD]       Exposure Mode                   : Manual
[ExifIFD]       White Balance                   : Auto
[ExifIFD]       Scene Capture Type              : Standard
[Canon]         Macro Mode                      : Unknown (0)
[Canon]         Self Timer                      : Off
[Canon]         Quality                         : RAW
[Canon]         Canon Flash Mode                : Off
[Canon]         Continuous Drive                : Continuous
[Canon]         Focus Mode                      : Manual Focus (3)
[Canon]         Record Mode                     : CRW+THM
[Canon]         Canon Image Size                : Large
[Canon]         Easy Mode                       : Manual
[Canon]         Digital Zoom                    : Unknown (-1)
[Canon]         Contrast                        : +1
[Canon]         Saturation                      : +1
[Canon]         Sharpness                       : +1
[Canon]         Camera ISO                      : n/a
[Canon]         Metering Mode                   : Center-weighted average
[Canon]         Focus Range                     : Not Known
[Canon]         Canon Exposure Mode             : Manual
[Canon]         Lens Type                       : n/a
[Canon]         Max Focal Length                : 55 mm
[Canon]         Min Focal Length                : 18 mm
[Canon]         Focal Units                     : 1/mm
[Canon]         Max Aperture                    : 4
[Canon]         Min Aperture                    : 27
[Canon]         Flash Activity                  : 0
[Canon]         Flash Bits                      : (none)
[Canon]         Zoom Source Width               : 3072
[Canon]         Zoom Target Width               : 3072
[Canon]         Manual Flash Output             : n/a
[Canon]         Color Tone                      : Normal
[Canon]         Focal Length                    : 34 mm
[Canon]         Focal Plane X Size              : 23.22 mm
[Canon]         Focal Plane Y Size              : 15.49 mm
[Canon]         Auto ISO                        : 100
[Canon]         Base ISO                        : 100
[Canon]         Measured EV                     : -1.25
[Canon]         Target Aperture                 : 14
[Canon]         Exposure Compensation           : 0
[Canon]         White Balance                   : Auto
[Canon]         Slow Shutter                    : None
[Canon]         Shot Number In Continuous Burst : 0
[Canon]         Optical Zoom Code               : n/a
[Canon]         Flash Guide Number              : 0
[Canon]         Flash Exposure Compensation     : 0
[Canon]         Auto Exposure Bracketing        : Off
[Canon]         AEB Bracket Value               : 0
[Canon]         Control Mode                    : Camera Local Control
[Canon]         Focus Distance Upper            : inf
[Canon]         Focus Distance Lower            : 5.46 m
[Canon]         F Number                        : 14
[Canon]         Exposure Time                   : 128
[Canon]         Measured EV 2                   : -1.25
[Canon]         Bulb Duration                   : 4
[Canon]         Camera Type                     : EOS Mid-range
[Canon]         Auto Rotate                     : None
[Canon]         ND Filter                       : n/a
[Canon]         Self Timer 2                    : 0
[Canon]         Bracket Mode                    : Off
[Canon]         Bracket Value                   : 0
[Canon]         Bracket Shot Number             : 0
[Canon]         Canon Image Type                : CRW:EOS DIGITAL REBEL CMOS RAW
[Canon]         Canon Firmware Version          : Firmware Version 1.1.1
[Canon]         Serial Number                   : 0560018150
[Canon]         Serial Number Format            : Format 1
[Canon]         File Number                     : 118-1861
[Canon]         Owner Name                      : Phil Harvey
[Canon]         Canon Model ID                  : EOS Digital Rebel / 300D / Kiss Digital
[Canon]         Canon File Length               : 4480822
[Canon]         Measured RGGB                   : 998 1022 1026 808
[Canon]         WB RGGB Levels Auto             : 1719 832 831 990
[Canon]         WB RGGB Levels Daylight         : 1722 832 831 989
[Canon]         WB RGGB Levels Shade            : 2035 832 831 839
[Canon]         WB RGGB Levels Cloudy           : 1878 832 831 903
[Canon]         WB RGGB Levels Tungsten         : 1228 913 912 1668
[Canon]         WB RGGB Levels Fluorescent      : 1506 842 841 1381
[Canon]         WB RGGB Levels Flash            : 1933 832 831 895
[Canon]         WB RGGB Levels Custom           : 1722 832 831 989
[Canon]         WB RGGB Levels Kelvin           : 1722 832 831 988
[Canon]         WB RGGB Black Levels            : 124 123 124 123
[Canon]         Color Temperature               : 5200
[Canon]         Color Space                     : sRGB
[Canon]         Num AF Points                   : 7
[Canon]         Valid AF Points                 : 7
[Canon]         Canon Image Width               : 3072
[Canon]         Canon Image Height              : 2048
[Canon]         AF Image Width                  : 3072
[Canon]         AF Image Height                 : 2048
[Canon]         AF Area Width                   : 151
[Canon]         AF Area Height                  : 151
[Canon]         AF Area X Positions             : 1014 608 0 0 0 -608 -1014
[Canon]         AF Area Y Positions             : 0 0 -506 0 506 0 0
[Canon]         AF Points In Focus              : (none)
[Canon]         Thumbnail Image Valid Area      : 0 159 7 112
[InteropIFD]    Interoperability Index          : THM - DCF thumbnail file
[InteropIFD]    Interoperability Version        : 0100
[InteropIFD]    Related Image Width             : 3072
[InteropIFD]    Related Image Height            : 2048
[Composite]     Aperture                        : 14.0
[Composite]     Base Name                       : a
[Composite]     Drive Mode                      : Continuous Shooting
[Composite]     File Extension                  : jpg
[Composite]     File Type Description           : Joint Photographic Experts Group
[Composite]     ISO                             : 100
[Composite]     Image Size                      : 8x8
[Composite]     Lens                            : 18.0 - 55.0 mm
[Composite]     Lens ID                         : Unknown 18-55mm
[Composite]     Megapixels                      : 0.000064
[Composite]     Physical Image Size             : 0.0x0.0 inches
[Composite]     Scale Factor To 35 mm Equivalent: 1.6
[Composite]     Shooting Mode                   : Bulb
[Composite]     Shutter Speed                   : 4
[Composite]     WB RGGB Levels                  : 1719 832 831 990
[Composite]     Blue Balance                    : 1.190619
[Composite]     Circle Of Confusion             : 0.016 mm
[Composite]     Depth Of Field                  : inf (5.22 m - inf)
[Composite]     Field Of View                   : 36.9 deg
[Composite]     Focal Length                    : 34.0 mm (35 mm equivalent: 54.0 mm)
[Composite]     Hyperfocal Distance             : 5.31 m
[Composite]     Lens                            : 18.0 - 55.0 mm (35 mm equivalent: 28.6 - 87.4 mm)
[Composite]     Light Value                     : 5.6
[Composite]     Red Balance                     : 2.067348


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

mtndewdewd

Does not work, meaning, does not restore the metadata as it was before the modification.

Yes, it works on the test files.

Here is the before edit EXIFtools output:
D:\APS\2016_work\solar\cotton\thermal\consolidated_untouched\lr_flipped\test4>exiftool flt1_00__0882.jpg -a -G1
[ExifTool]      ExifTool Version Number         : 10.23
[System]        File Name                       : flt1_00__0882.jpg
[System]        Directory                       : .
[System]        File Size                       : 686 kB
[System]        File Modification Date/Time     : 2016:07:22 10:58:02-07:00
[System]        File Access Date/Time           : 2016:07:24 05:59:04-07:00
[System]        File Creation Date/Time         : 2016:07:24 05:59:04-07:00
[System]        File Permissions                : rw-rw-rw-
[File]          File Type                       : JPEG
[File]          File Type Extension             : jpg
[File]          MIME Type                       : image/jpeg
[File]          Exif Byte Order                 : Little-endian (Intel, II)
[File]          Image Width                     : 640
[File]          Image Height                    : 512
[File]          Encoding Process                : Baseline DCT, Huffman coding
[File]          Bits Per Sample                 : 8
[File]          Color Components                : 3
[File]          Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
[JFIF]          JFIF Version                    : 1.01
[JFIF]          Resolution Unit                 : None
[JFIF]          X Resolution                    : 1
[JFIF]          Y Resolution                    : 1
[IFD0]          Image Description               :
[IFD0]          Make                            : FLIR Systems
[IFD0]          Camera Model Name               :
[IFD0]          Orientation                     : Horizontal (normal)
[IFD0]          X Resolution                    : 72
[IFD0]          Y Resolution                    : 72
[IFD0]          Resolution Unit                 : inches
[IFD0]          Software                        : Flir Cronos
[IFD0]          Modify Date                     : 2016:07:17 23:00:17
[IFD0]          Y Cb Cr Positioning             : Centered
[ExifIFD]       Exposure Time                   : 0
[ExifIFD]       Exif Version                    : 0220
[ExifIFD]       Date/Time Original              :
[ExifIFD]       Create Date                     :
[ExifIFD]       Components Configuration        : Y, Cb, Cr, -
[ExifIFD]       Subject Distance                : 2 m
[ExifIFD]       Focal Length                    : 0.0 mm
[ExifIFD]       Flashpix Version                : 0100
[ExifIFD]       Color Space                     : sRGB
[ExifIFD]       Exif Image Width                : 640
[ExifIFD]       Exif Image Height               : 512
[ExifIFD]       Digital Zoom Ratio              : 1
[ExifIFD]       Image Unique ID                 :
[FLIR]          Image Temperature Max           : 0
[FLIR]          Image Temperature Min           : 0
[FLIR]          Emissivity                      : 0.00
[FLIR]          Creator Software                : ATAU_RBFO
[FLIR]          Raw Thermal Image Width         : 640
[FLIR]          Raw Thermal Image Height        : 512
[FLIR]          Raw Thermal Image Type          : TIFF
[FLIR]          Raw Thermal Image               : (Binary data 655564 bytes, use -b option to extract)
[FLIR]          Emissivity                      : 1.00
[FLIR]          Object Distance                 : 2.00 m
[FLIR]          Reflected Apparent Temperature  : 22.0 C
[FLIR]          Atmospheric Temperature         : 22.0 C
[FLIR]          IR Window Temperature           : 22.0 C
[FLIR]          IR Window Transmission          : 1.00
[FLIR]          Relative Humidity               : 50.0 %
[FLIR]          Planck R1                       : 366545
[FLIR]          Planck B                        : 1428
[FLIR]          Planck F                        : 1
[FLIR]          Atmospheric Trans Alpha 1       : 0.006569
[FLIR]          Atmospheric Trans Alpha 2       : 0.012620
[FLIR]          Atmospheric Trans Beta 1        : -0.002280
[FLIR]          Atmospheric Trans Beta 2        : -0.006670
[FLIR]          Atmospheric Trans X             : 1.900000
[FLIR]          Camera Temperature Range Max    : 4726.9 C
[FLIR]          Camera Temperature Range Min    : -273.1 C
[FLIR]          Camera Model                    :
[FLIR]          Camera Part Number              :
[FLIR]          Camera Serial Number            :
[FLIR]          Camera Software                 :
[FLIR]          Lens Model                      :
[FLIR]          Lens Part Number                :
[FLIR]          Lens Serial Number              :
[FLIR]          Field Of View                   : 0.0 deg
[FLIR]          Filter Model                    :
[FLIR]          Filter Part Number              :
[FLIR]          Filter Serial Number            :
[FLIR]          Planck O                        : -342
[FLIR]          Planck R2                       : 1
[FLIR]          Raw Value Median                : 4411
[FLIR]          Raw Value Range                 : 953
[FLIR]          Date/Time Original              : 0000:00:00 00:00:00.000+00:00
[FLIR]          Focus Step Count                : 0
[FLIR]          Focus Distance                  : 0.0 m
[FLIR]          Palette Colors                  : 224
[FLIR]          Above Color                     : 16 128 128
[FLIR]          Below Color                     : 16 128 128
[FLIR]          Overflow Color                  : 16 128 128
[FLIR]          Underflow Color                 : 16 128 128
[FLIR]          Isotherm 1 Color                : 16 128 128
[FLIR]          Isotherm 2 Color                : 16 128 128
[FLIR]          Palette Method                  : 0
[FLIR]          Palette Stretch                 : 1
[FLIR]          Palette Name                    : Gray
[FLIR]          Palette                         : (Binary data 672 bytes, use -b option to extract)
[FLIR]          Meas 1 Type                     : Area
[FLIR]          Meas 1 Params                   : 321 391 34 31
[FLIR]          Meas 1 Label                    : Bx1
[FLIR]          Meas 2 Type                     : Area
[FLIR]          Meas 2 Params                   : 392 294 23 25
[FLIR]          Meas 2 Label                    : Bx2
[FLIR]          Meas 3 Type                     : Area
[FLIR]          Meas 3 Params                   : 392 190 22 37
[FLIR]          Meas 3 Label                    : Bx3
[FLIR]          Meas 4 Type                     : Area
[FLIR]          Meas 4 Params                   : 394 329 19 32
[FLIR]          Meas 4 Label                    : Bx4
[FLIR]          Meas 5 Type                     : Area
[FLIR]          Meas 5 Params                   : 353 476 16 23
[FLIR]          Meas 5 Label                    : Bx5
[FLIR]          Peak Spectral Sensitivity       : 10.1 um
[GPS]           GPS Version ID                  : 2.0.0.0
[GPS]           GPS Latitude Ref                : North
[GPS]           GPS Latitude                    : 33 deg 2' 1.06"
[GPS]           GPS Longitude Ref               : West
[GPS]           GPS Longitude                   : 112 deg 39' 16.48"
[GPS]           GPS Altitude Ref                : Above Sea Level
[GPS]           GPS Altitude                    : 243.4 m
[Composite]     GPS Altitude                    : 243.4 m Above Sea Level
[Composite]     GPS Latitude                    : 33 deg 2' 1.06" N
[Composite]     GPS Longitude                   : 112 deg 39' 16.48" W
[Composite]     GPS Position                    : 33 deg 2' 1.06" N, 112 deg 39' 16.48" W
[Composite]     Image Size                      : 640x512
[Composite]     Megapixels                      : 0.328
[Composite]     Shutter Speed                   : 0
[Composite]     Focal Length                    : 0.0 mm

Here is the post edit EXIFtools output:
D:\APS\2016_work\solar\cotton\thermal\consolidated_untouched\lr_flipped\test4>exiftool flt1_00__0882.jpg -a -G1
[ExifTool]      ExifTool Version Number         : 10.23
[System]        File Name                       : flt1_00__0882.jpg
[System]        Directory                       : .
[System]        File Size                       : 67 kB
[System]        File Modification Date/Time     : 2016:07:24 06:05:04-07:00
[System]        File Access Date/Time           : 2016:07:24 06:05:04-07:00
[System]        File Creation Date/Time         : 2016:07:24 05:59:04-07:00
[System]        File Permissions                : rw-rw-rw-
[File]          File Type                       : JPEG
[File]          File Type Extension             : jpg
[File]          MIME Type                       : image/jpeg
[File]          Exif Byte Order                 : Little-endian (Intel, II)
[File]          Image Width                     : 640
[File]          Image Height                    : 512
[File]          Encoding Process                : Baseline DCT, Huffman coding
[File]          Bits Per Sample                 : 8
[File]          Color Components                : 3
[File]          Y Cb Cr Sub Sampling            : YCbCr4:4:4 (1 1)
[JFIF]          JFIF Version                    : 1.01
[JFIF]          Resolution Unit                 : inches
[JFIF]          X Resolution                    : 72
[JFIF]          Y Resolution                    : 72
[IFD0]          Image Width                     : 640
[IFD0]          Image Height                    : 512
[IFD0]          X Resolution                    : 72
[IFD0]          Y Resolution                    : 72
[IFD0]          Resolution Unit                 : inches
[IFD0]          Orientation                     : Horizontal (normal)
[IFD0]          Y Cb Cr Sub Sampling            : Unknown (1)
[IFD0]          Modify Date                     : 2016:07:24 06:05:04
[IFD0]          Image Description               :
[IFD0]          Make                            : FLIR Systems
[IFD0]          Camera Model Name               :
[IFD0]          Software                        : PaintShop Pro 17.00
[ExifIFD]       Exif Version                    : 0220
[ExifIFD]       Flashpix Version                : 0100
[ExifIFD]       Color Space                     : sRGB
[ExifIFD]       Components Configuration        : Y, Cb, Cr, -
[ExifIFD]       Exif Image Width                : 640
[ExifIFD]       Exif Image Height               : 512
[ExifIFD]       Date/Time Original              :
[ExifIFD]       Create Date                     :
[ExifIFD]       Exposure Time                   : 0
[ExifIFD]       Subject Distance                : 2 m
[ExifIFD]       Focal Length                    : 0.0 mm
[ExifIFD]       Digital Zoom Ratio              : 1
[ExifIFD]       Image Unique ID                 :
[GPS]           GPS Version ID                  : 2.0.0.0
[GPS]           GPS Latitude Ref                : North
[GPS]           GPS Latitude                    : 33 deg 2' 1.06"
[GPS]           GPS Longitude Ref               : West
[GPS]           GPS Longitude                   : 112 deg 39' 16.48"
[GPS]           GPS Altitude Ref                : Above Sea Level
[GPS]           GPS Altitude                    : 243.4 m
[IFD1]          Compression                     : JPEG (old-style)
[IFD1]          X Resolution                    : 72
[IFD1]          Y Resolution                    : 72
[IFD1]          Resolution Unit                 : inches
[IFD1]          Thumbnail Offset                : 809
[IFD1]          Thumbnail Length                : 6025
[XMP-x]         XMP Toolkit                     : XMP Core 5.1.2
[XMP-dc]        Description                     :
[XMP-tiff]      Make                            : FLIR Systems
[XMP-tiff]      Camera Model Name               :
[XMP-tiff]      Orientation                     : Horizontal (normal)
[XMP-tiff]      X Resolution                    : 72
[XMP-tiff]      Y Resolution                    : 72
[XMP-tiff]      Resolution Unit                 : inches
[XMP-tiff]      Y Cb Cr Positioning             : Centered
[XMP-tiff]      Image Height                    : 512
[XMP-tiff]      Image Width                     : 640
[XMP-xmp]       Creator Tool                    : PaintShop Pro 17.00
[XMP-xmp]       Modify Date                     : 2016:07:24 06:05:04-07:00
[XMP-exif]      Exposure Time                   : 0
[XMP-exif]      Exif Version                    : 0220
[XMP-exif]      Components Configuration        : Y, Cb, Cr, -
[XMP-exif]      Subject Distance                : 2 m
[XMP-exif]      Focal Length                    : 0.0 mm
[XMP-exif]      Flashpix Version                : 0100
[XMP-exif]      Color Space                     : sRGB
[XMP-exif]      Exif Image Width                : 640
[XMP-exif]      Exif Image Height               : 512
[XMP-exif]      Digital Zoom Ratio              : 1
[XMP-exif]      Image Unique ID                 :
[XMP-exif]      GPS Version ID                  : 2.0.0.0
[XMP-exif]      GPS Latitude                    : 33 deg 2' 1.08" N
[XMP-exif]      GPS Longitude                   : 112 deg 39' 16.50" W
[XMP-exif]      GPS Altitude Ref                : Above Sea Level
[XMP-exif]      GPS Altitude                    : 243.4 m
[Composite]     GPS Altitude                    : 243.4 m Above Sea Level
[Composite]     GPS Latitude                    : 33 deg 2' 1.06" N
[Composite]     GPS Latitude Ref                : North
[Composite]     GPS Longitude                   : 112 deg 39' 16.48" W
[Composite]     GPS Longitude Ref               : West
[Composite]     GPS Position                    : 33 deg 2' 1.06" N, 112 deg 39' 16.48" W
[Composite]     Image Size                      : 640x512
[Composite]     Megapixels                      : 0.328
[Composite]     Shutter Speed                   : 0
[Composite]     Thumbnail Image                 : (Binary data 6025 bytes, use -b option to extract)
[Composite]     Focal Length                    : 0.0 mm

Here is the EXIFtool output after reapplying the .MIE file:

D:\APS\2016_work\solar\cotton\thermal\consolidated_untouched\lr_flipped\test4>exiftool flt1_00__0882.jpg -a -G1
[ExifTool]      ExifTool Version Number         : 10.23
[System]        File Name                       : flt1_00__0882.jpg
[System]        Directory                       : .
[System]        File Size                       : 57 kB
[System]        File Modification Date/Time     : 2016:07:24 06:07:05-07:00
[System]        File Access Date/Time           : 2016:07:24 06:07:05-07:00
[System]        File Creation Date/Time         : 2016:07:24 05:59:04-07:00
[System]        File Permissions                : rw-rw-rw-
[File]          File Type                       : JPEG
[File]          File Type Extension             : jpg
[File]          MIME Type                       : image/jpeg
[File]          Exif Byte Order                 : Little-endian (Intel, II)
[File]          Image Width                     : 640
[File]          Image Height                    : 512
[File]          Encoding Process                : Baseline DCT, Huffman coding
[File]          Bits Per Sample                 : 8
[File]          Color Components                : 3
[File]          Y Cb Cr Sub Sampling            : YCbCr4:4:4 (1 1)
[IFD0]          Image Description               :
[IFD0]          Make                            : FLIR Systems
[IFD0]          Camera Model Name               :
[IFD0]          Orientation                     : Horizontal (normal)
[IFD0]          X Resolution                    : 72
[IFD0]          Y Resolution                    : 72
[IFD0]          Resolution Unit                 : inches
[IFD0]          Software                        : Flir Cronos
[IFD0]          Modify Date                     : 2016:07:17 23:00:17
[IFD0]          Y Cb Cr Positioning             : Centered
[ExifIFD]       Exposure Time                   : 0
[ExifIFD]       Exif Version                    : 0220
[ExifIFD]       Date/Time Original              :
[ExifIFD]       Create Date                     :
[ExifIFD]       Components Configuration        : Y, Cb, Cr, -
[ExifIFD]       Subject Distance                : 2 m
[ExifIFD]       Focal Length                    : 0.0 mm
[ExifIFD]       Flashpix Version                : 0100
[ExifIFD]       Color Space                     : sRGB
[ExifIFD]       Exif Image Width                : 640
[ExifIFD]       Exif Image Height               : 512
[ExifIFD]       Digital Zoom Ratio              : 1
[ExifIFD]       Image Unique ID                 :
[FLIR]          Image Temperature Max           : 0
[FLIR]          Image Temperature Min           : 0
[FLIR]          Emissivity                      : 0.00
[GPS]           GPS Version ID                  : 2.0.0.0
[GPS]           GPS Latitude Ref                : North
[GPS]           GPS Latitude                    : 33 deg 2' 1.06"
[GPS]           GPS Longitude Ref               : West
[GPS]           GPS Longitude                   : 112 deg 39' 16.48"
[GPS]           GPS Altitude Ref                : Above Sea Level
[GPS]           GPS Altitude                    : 243.4 m
[Composite]     GPS Altitude                    : 243.4 m Above Sea Level
[Composite]     GPS Latitude                    : 33 deg 2' 1.06" N
[Composite]     GPS Longitude                   : 112 deg 39' 16.48" W
[Composite]     GPS Position                    : 33 deg 2' 1.06" N, 112 deg 39' 16.48" W
[Composite]     Image Size                      : 640x512
[Composite]     Megapixels                      : 0.328
[Composite]     Shutter Speed                   : 0
[Composite]     Focal Length                    : 0.0 mm


You can see it is not restoring all the metadata information that was present in the original file. All the binary [FLIR] metadata is still missing. It has a few [FLIR] items, but not all.

Thanks again for the help working through this.

Hayo Baan

ExifTool does not support writing FLIR data (except for the basic FLIR tags, see the documentation) so you can not use it to restore the removed FLIR data. To retain the FLIR data I'm afraid your only option is to edit the image with FLIR enabled software.
Hayo Baan – Photography
Web: www.hayobaan.nl