Author Topic: DSLR_RAW EXIF -cameratemperature  (Read 3311 times)

Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
DSLR_RAW EXIF -cameratemperature
« on: 2016 January 24 22:34:44 »
How temperature changes during night?
I can check it via ExifTool

May be populate that temperature into FitKeyword CCD Temp?

Code: [Select]
exiftool -T -cameratemperature directory_with_RAW_files > exifoutput.txt
more ExifTool command example: http://petapixel.com/2012/05/25/hack-your-exif-data-from-the-command-line-five-fun-uses-for-exiftool/

Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
Re: DSLR_RAW EXIF -cameratemperature
« Reply #1 on: 2016 February 01 20:07:50 »

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: DSLR_RAW EXIF -cameratemperature
« Reply #2 on: 2016 February 02 00:04:02 »
Excerpted from the page you've linked:

This is software, in whole or part, is free for use in non-commercial applications, provided that this copyright notice is retained in the code. A licensing fee may be required for use in a commercial application.

So you cannot use it to write a PixInsight tool (unless you pay a fee or reach an agreement). However, after taking a quick look, a much better exiftool interface class should be quite easy to write using PCL resources (e.g., String/IsoString instead of char*, ExternalProcess, AutoPointer, etc). You already have written some code to execute an external program in Blink.

So, when an EXIFReader tool ?  >:D
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
Re: DSLR_RAW EXIF -cameratemperature
« Reply #3 on: 2016 February 02 01:28:27 »
External is ok! I cat write similar.
But, DSLR_RAW module is best pleas where FitKeyword extracted from RAW.
So, maybe add external process to your DSLR_RAW module ?


Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: DSLR_RAW EXIF -cameratemperature
« Reply #4 on: 2016 February 03 01:06:15 »
Quote
maybe add external process to your DSLR_RAW module ?

That would be relatively easy to implement, but would be also a bad idea in practice. A file format support module should not execute external processes because it can be used in multiple scenarios where this can be problematic (e.g. multithreaded execution). Much better would be implementing our own full-fledged EXIF decoding routines, but that's time-consuming. Actually, some EXIF decoding is being performed now via dcraw. I'll see what can be done.

Despite that, a standalone EXIFReader tool would be very interesting to manage multiple raw files, ideally with data exporting and analysis capabilities.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/