Author Topic: [Solved] Place in directories based on shot parameters  (Read 988 times)

jmac698

  • Newbie
  • *
  • Posts: 2
[Solved] Place in directories based on shot parameters
« 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)
Code: [Select]
exiftool "-Directory<ISO${MakerNotes:CameraISO}" .goes into directories like ISO80, ISO200 etc.

Place into directories based on Tv (tested on Canon RAW, Windows)
Code: [Select]
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).

Code: [Select]
exiftool -MakerNotes:CanonModelID -MakerNotes:CameraISO -MakerNotes:TargetExposureTime - MakerNotes:CameraTemperature -EXIF:DateTimeOriginal -MakerNotes:WB_RGGBLevelsAsShot -csv *.cr2 > calibinfo.txt
A quick check on the temperature:
Code: [Select]
exiftool -MakerNotes:CameraTemperature IMG_3796.CR2Camera Temperature              : 30 C