ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: jmac698 on August 09, 2016, 04:16:25 PM

Title: [Solved] Place in directories based on shot parameters
Post by: jmac698 on August 09, 2016, 04:16:25 PM
Here's a few I worked out myself.  I don't know if anyone else needs this, but I do a lot of astrophotography with different settings, and want to save runs by settings.

Place into directories based on ISO (tested on Canon RAW, Windows)
exiftool "-Directory<ISO${MakerNotes:CameraISO}" .
goes into directories like ISO80, ISO200 etc.

Place into directories based on Tv (tested on Canon RAW, Windows)
exiftool "-Directory<${MakerNotes:TargetExposureTime;tr/\//-/;}" .
Puts into directories like 1-50, 1-200.
tr is the Perl translate command.
tr/{char1}/{char2}/
We have to escape "/" with a backslash "\", so "\/" just refers to a "/".

If you want to move a RAW+JPG pair, use EXIF data.
The tags are EXIF:ISO and EXIF:ExposureTime

I made this to extract iso, Tv, temperature, model, time, and rgb gain into a database.  This is all the info you should ever need to do darkframe calibration later.  Just take darkframes at similar settings to any existing pics then include those calibration files into your astronomy stacking program.  The good thing is, you can do this after taking the frames (might need to put the camera in the fridge to get the right temp though).

exiftool -MakerNotes:CanonModelID -MakerNotes:CameraISO -MakerNotes:TargetExposureTime - MakerNotes:CameraTemperature -EXIF:DateTimeOriginal -MakerNotes:WB_RGGBLevelsAsShot -csv *.cr2 > calibinfo.txt

A quick check on the temperature:
exiftool -MakerNotes:CameraTemperature IMG_3796.CR2
Camera Temperature              : 30 C