Author Topic: Script to align, integrate and calibrate  (Read 21053 times)

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Script to align, integrate and calibrate
« Reply #30 on: 2010 August 09 15:33:27 »
I'm not sure PJSR is the right tool for the job. The modal nature of the dialogs really turns me off from writing complex dialogs. Once the super-duper stacker script runs you can not use PI for anything else. If you want to examine the result you need to close the dialog so you need to have some kind of filelist save feature so you don't have to start from scratch each time. And then you have to basically copy all the parameters from the processes you use into the script. It'll be huge.

I'm sorry to be pessimistic about this, someone please explain how this realistically can be done.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: Script to align, integrate and calibrate
« Reply #31 on: 2010 August 09 21:38:27 »

Sander,  I would rather see it all as standard feature in the modules. 
Juan has not seem to be to interested in this.
For some reason Juan suggest it could done in a script. Perhaps he was just speaking from fatigue

Max

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: Script to align, integrate and calibrate
« Reply #32 on: 2010 August 09 23:49:38 »
Sander, Max,

Yes - I also agree that this feature would be better served as a PCL module, not as a PJSR script. Unfortunately that would also restrict the number of people able to code the process in the first place. I am sure that there are folks like me who can work with PJSR, but who have no idea where to start in PCL.

This may well have to be something that the likes of Juan works on - with guidance from users like us. This allows the interface to 'mature' naturally. It is certainly NOT a process that needs to be rushed, after all we have been able to calibrate in PI for quite some time now (even before the advent of the ImageCalibration process) - it just takes a whole lot of 'manual effort'.

I am willing to wait several more PI 'cycles' if needs be.

Cheers,
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: Script to align, integrate and calibrate
« Reply #33 on: 2010 August 10 00:33:55 »


'It just takes a whole lot of 'manual effort'.




That's and understatement.

Any improvement in the modules would be helpful. There is a lot of feature that I thought would be basic.
For example, just about every program I have ever used allows you to choose a set of images to automatically produce a master as part of basic cal.

Also, if the modules where able to work serially in the process container we might not be having this conversation !

Max

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: Script to align, integrate and calibrate
« Reply #34 on: 2010 August 10 03:18:41 »
Hi again Max,

Just bear in mind how PixInsight is developing - the very concept of image calibration is very much an afterthought. The fact that you CAN calibrate and integrate image data in PI is testament to Juan's herculean efforts. Even with the hard manual effort currently required to achieve full calibration and integration in PI as things stand just now, I still believe that the final outcome (due to the technology 'behind the scenes') still outperforms other packages in the marketplace.

Like I said, I would happily wait another year for a full-blown calibration and integration process. At least I would know how it had developed, and would have had a say in the way I wanted to see it work.

Don't get me wrong, if I had the tiome and ability to put this together myself, I would - gladly. But I don't get to retire for a few years yet, so - unless my Lotto numbers are due for an appearance, I have to keep hammering the keyboard for 'someone else' in the meantime ::)

Cheers,
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Script to align, integrate and calibrate
« Reply #35 on: 2010 August 10 06:37:31 »
Hi,

if it would be possible to save settings for the calibration, alignment and stacking modules then the script wouldn't need to deal with those. It would simply instantiate the processes which in turn would load their default settings and receive file lists from PI. This would be doable in PJSR as this is a short lived window. It would still need the ability to save file lists and parameter settings though. Ouch.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: Script to align, integrate and calibrate
« Reply #36 on: 2010 August 10 08:28:24 »
It needs to hand off the processed image set from cal to, alignment then intergration. It should use current settings, this would include choice of reference image. It would nice to calibrated version of the reference frame.

The abilty to calibrate to flats and make masters from within the cal module would be very helpful.

Hopeful Juan is reading this.

Max

Offline RobF2

  • PixInsight Addict
  • ***
  • Posts: 189
  • Rob
    • Rob's Astropics
Re: Script to align, integrate and calibrate
« Reply #37 on: 2010 August 12 03:33:28 »
Yes - as much as I love PI, when I've got limited data that's unlikely to benefit from the extra Smarts, I give in to temptation and just throw it all into Maxim's nice Stack routine.
FSQ106/8" Newt on NEQ6/HEQ5Pro via EQMOD | QHY9 | Guiding:  ZS80II/QHY5IIL | Canon 450D | DBK21 and other "stuff"
Rob's Astropics

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: Script to align, integrate and calibrate
« Reply #38 on: 2010 August 12 09:30:19 »
That's the problem most people give up on it and use something else insted.
Not as user friendly as many packages.

Max

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Script to align, integrate and calibrate
« Reply #39 on: 2010 August 12 15:04:32 »
If you're on Linux or FreeBSD your choices are limited and you'll use what you can. On Mac there's Neb2 which is a little easier to use but not that much. On windows there are plenty of options.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline David Raphael

  • PixInsight Addict
  • ***
  • Posts: 226
    • Astrofactors CCD Cameras
Re: Script to align, integrate and calibrate
« Reply #40 on: 2010 August 28 12:23:48 »
I am willing to write this in PCL if I am not duplicating someone else's efforts. 

I like the ease of DSS, but I DO get better results when I go through Vicent's calibration steps. And I really enjoy working with PixInsight in general.  It appeals to my inner software developer  :P
So - here is my question:  Will I be duplicating functionality that is already going to be built in PI in the near future?  And is anyone else already doing this?

Let me know - we can agree on what the basic requirements will be, and I will start coding...


Cheers,
Dave
David Raphael

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Script to align, integrate and calibrate
« Reply #41 on: 2010 August 28 12:28:02 »
Hi Dave,

I'd wait with tackling this until it's possible to bring up individual process GUIs through either PJSR or PCL. Without that you'd end up most of your time replicating GUI items from all the processes you need to integrate. That or it should be possible to save process options and restore them later. Perhaps this is possible by having the user create a process container that contains all the processes with their options. I assume it's possible to read Process container contents from PCL and PJSR. It's a bit of a cludge but could save significant development time.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: Script to align, integrate and calibrate
« Reply #42 on: 2010 August 28 12:35:53 »
Hi Dave

I don't think that this will be developed by Juan (or me) in the shot/mid term. AFAIK, we both are more of "divide and conquer" guys than "do it all".

Having said that, almost everything is currently working as separate processes. So, a script to automate everything should not be too hard to create. Of course, there is the problem of working with large arrays of data, with "unknown" format, and one wants to have everything inside the same code. So, it should be well organized. :)

On a parallel note, I'll be writing a process module that performs some of this tasks, in a much more simpler way. I have to calibrate and align microscopic image for a project I'm working on the university. I may release the code of the "preprocessing" steps, in a month or two. The workflow shares some steps, but then it diverges and needs other steps not applicable to astronomy. Anyway, if anybody wants to write something from the scratch, this may help a bit.
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline David Raphael

  • PixInsight Addict
  • ***
  • Posts: 226
    • Astrofactors CCD Cameras
Re: Script to align, integrate and calibrate
« Reply #43 on: 2010 August 28 13:55:52 »
So maybe PCL isn't quite ready to do this in a re-usable sort of way?  I am not really familiar with PCL yet, but I guess what you are saying is, for example, I can't load the ImageIntegration module's UI portions from another module?
David Raphael

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Script to align, integrate and calibrate
« Reply #44 on: 2010 August 28 14:31:15 »
No, I don't think that's possible. I recently started a new thread about that.

http://pixinsight.com/forum/index.php?topic=2202.0
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity