Author Topic: format hints and PJSR (Imagewindow.open())  (Read 11524 times)

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: format hints and PJSR (Imagewindow.open())
« Reply #15 on: 2011 November 02 09:19:58 »
bump....

i know this is several sigmas less interesting than new multiscale modules and stuff but it sure would be useful to get it sorted out for us DSLR users...

problem #2 was solved with gc(), but problem #1 still stands.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: format hints and PJSR (Imagewindow.open())
« Reply #16 on: 2011 November 02 10:01:18 »
Downloaded and working on it right now ;)
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: format hints and PJSR (Imagewindow.open())
« Reply #17 on: 2011 November 02 10:05:42 »
thanks, sorry to be such a pest

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: format hints and PJSR (Imagewindow.open())
« Reply #18 on: 2011 November 02 16:29:40 »
Here is BatchFormatConversion 1.2.1. It works fine except the sample format parameter, which is ignored. In this version each output file is written with the sample format of its corresponding input image. This is due to a bug in the PI Core application (see the comment at line 225 of the script). I have identified this bug and will fix it in the next version. Despite this bug the script is perfectly usable for DSLR_RAW to FITS conversion, since for this task we don't have to change the original 16-bit integer format.

For completeness, I have added also an output hints field. Let me know if this version of the script works as expected.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: format hints and PJSR (Imagewindow.open())
« Reply #19 on: 2011 November 02 16:33:17 »
thanks, when I get home I'll read the source and try it out. I still wanted to fix the output filename uniquification when the input file is a multi-image fits. or maybe you fixed that too, I'll have to read the script.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: format hints and PJSR (Imagewindow.open())
« Reply #20 on: 2011 November 02 16:47:36 »
I simply disabled multiple image files completely (the script throws an exception if it finds one). They are rare and not supporting them is not a practical problem. Feel free to add support for them if you want.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: format hints and PJSR (Imagewindow.open())
« Reply #21 on: 2011 November 02 17:33:39 »
yeah i managed to view the file with my iphone and could see that it does not support multi-fits. i think i had done that too in the version i posted, can't remember. anyway i'll try it out on a big batch of CR2s and see what happens.

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: format hints and PJSR (Imagewindow.open())
« Reply #22 on: 2011 November 03 11:00:46 »
okay, i tried it out and it seems to be working great, but i didn't push it that hard. looking forward to the bug fix and final release. thanks.