Author Topic: Calibration and align batch operations  (Read 179000 times)

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: Calibration and align batch operations
« Reply #165 on: 2012 March 22 00:27:22 »
Continuing with wish list:

- When are asked for integration above, the idea was to get an IntegrationProcess generated with all the necessary files already added - not doing the actual integration. The standard dialog is perfectly usable to doing the repeated tries that are necessary.
- Region of interest: Especially for tests it is useful to be able to use only a sub-rectangle of the images (due to speed).
- DefectMap/Cosmetic correction generated from darks. Also note the the current PI processes cannot really be used with images that need to be debayered (because you cannot use the direct neigbor pixels to estimate a value for a defective pixel, and after debayer it is too late...)
- for DSLR: derive the category of a frame (bias, dark, flat, light...) from a naming pattern
- I am not sure I like the tabbed layout: no other piece of PI uses it. A single list that is structured like a tree is more like it, an may better support actions such as changing the category of an image.

It almost feels like Christmas  ;)
Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline Fco. Bosch

  • Member
  • *
  • Posts: 66
Re: Calibration and align batch operations
« Reply #166 on: 2012 March 22 02:03:23 »
Kai and Juan
I will add another wish... The "add files" control structures great the files according the Fits headers; but I miss the control of "temperature" in the cooled regulated CCD cameras for the Dark and light frames.
It seems that the dark current varies enormously with the temperature of the sensor; so the control of the dark frames according the temperature seems important for an accurate dark sustraction.

Thanks to both, and now specially to Kai! (without jelousy of our master frame Juan)
Fco. Bosch

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: Calibration and align batch operations
« Reply #167 on: 2012 March 22 02:12:41 »
Please also look into a cross-incompatibility to the ImageSolver script, see http://pixinsight.com/forum/index.php?topic=3966.msg27894#msg27894
Georg
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: Calibration and align batch operations
« Reply #168 on: 2012 March 22 08:33:06 »
When are asked for integration above, the idea was to get an IntegrationProcess generated with all the necessary files already added - not doing the actual integration. The standard dialog is perfectly usable to doing the repeated tries that are necessary"

Work for me but how do you handle the different filters generated from aligned calibrated subs?

Max


Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Re: Calibration and align batch operations
« Reply #169 on: 2012 March 23 12:16:12 »


A whole day has gone by and no action  >:D

Harry
Harry Page

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: Calibration and align batch operations
« Reply #170 on: 2012 March 23 12:53:42 »
I hear the sound of Harry's foot tapping ..... ;D

Max

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Re: Calibration and align batch operations
« Reply #171 on: 2012 March 24 15:29:16 »

" days in a row and nothing  >:D , the stress is killing me  :surprised:

Harry
Harry Page

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Calibration and align batch operations
« Reply #172 on: 2012 March 26 12:02:29 »
New version 0.3a attached:

- Fixed a problem with for ... in constructs due to new methods of the Array object defined as enumerable properties.

Information for developers

The problem: Adding new methods to the Array object with usual definitions such as:

Array.prototype.foo = function()
{
   // ...
};

is problematic because the newly defined methods are created as enumerable properties of Array. Subsequent for ... in constructs, such as:

var a = new Array;
// ...
for ( var i in a )
{
   // ...
}

will most likely fail because *all* enumerable properties of Array.prototype will be iterated along with the elements of the 'a' instance. For more information on the for ... in statement and its problems please refer to the following document on Mozilla's Development Network:

https://developer.mozilla.org/en/JavaScript/Reference/Statements/for...in

Quoted from the above document:

for..in should not be used to iterate over an Array where index order is important. Array indexes are just enumerable properties with integer names and are otherwise identical to general Object properties.  There is no guarantee that for...in will return the indexes in any particular order and it will return all enumerable properties, including those with non–integer names and those that are inherited.

Because the order of iteration is implementation dependent, iterating over an array may not visit elements in a consistent order. Therefore it is better to use a for loop with a numeric index when iterating over arrays where the order of access is important.


So the bottom line is: do not use for ... in in your scripts. I recognize that I use these constructs sometimes, so I have to apply this rule to myself. By the way, even worse than for...in is the 'with' statement, which is considered poison in ECMAScript-5:

https://developer.mozilla.org/en/JavaScript/Reference/Statements/with

The solution to this problem is defining the new Array methods with the Object.defineProperty function, which is part of ECMAScript 5th Edition. This is what I have done in version 0.3a of the script. Fortunately, PixInsight's JavaScript runtime (= Mozilla's SpiderMonkey JS engine version 1.8.5) is fully compliant with the ECMA 262-5 standard.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Re: Calibration and align batch operations
« Reply #173 on: 2012 March 26 12:07:36 »
Hi

In this script , what are we applying to the flat , a bias or a scaled dark ?

Harry
Harry Page

Offline kwiechen

  • PixInsight Addict
  • ***
  • Posts: 186
Re: Calibration and align batch operations
« Reply #174 on: 2012 March 26 12:10:46 »
Hi Juan,

thank you for this fix and the explanation. I have avoided for .. in because of unpredictable results.

Best,

Kai



 

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Re: Calibration and align batch operations
« Reply #175 on: 2012 March 26 12:13:32 »
Hi

Yes thanks Juan , ain't got a scooby what you said but sounds very important  ;D :-*

Harry
Harry Page

Offline kwiechen

  • PixInsight Addict
  • ***
  • Posts: 186
Re: Calibration and align batch operations
« Reply #176 on: 2012 March 26 14:13:17 »
Hi Juan,

I have tested v03a with new data  -  works without any problems (QSI583ws, MaximDL)

Kai


Offline Fco. Bosch

  • Member
  • *
  • Posts: 66
Re: Calibration and align batch operations
« Reply #177 on: 2012 March 26 15:50:59 »
several days ago I wrote
Quote
I intend to calibrate 5 darks of 120" , 5 of 180", 5 of 300" and 16 of 600", with the option "calibrate only" enabled. When the sript  has integrate the tree fisrt sets of data, and intend to integrate the last set of 16 darks of 600" it appear in the console "integration pixel number row: 0 -> 1251 : 0%". The programm freezes here and crash,  saying "runtime error ... pixinsight.exe This aplication has requested the runtime to terminate in a unusual way".
Then I should to reinstall the sript. 
This crash happens allways;  nevertheless I can callibrate the last set alone without problem
Quote

Now it happens the same, except that isn't necessary to reinstall the script  :(

Thanks
Fco Bosch
Fco. Bosch

Offline kwiechen

  • PixInsight Addict
  • ***
  • Posts: 186
Re: Calibration and align batch operations
« Reply #178 on: 2012 March 27 00:22:19 »
Can you give some information about the operating system and system RAM?

Kai


Offline Fco. Bosch

  • Member
  • *
  • Posts: 66
Re: Calibration and align batch operations
« Reply #179 on: 2012 March 27 04:53:26 »
Hello Kai: my system is Windows 7, 32 bits, and my Ram is 4 Gb.
I think is a "normal" configuration in a laptop. The files are all of 16.327 kb of size, and are in total 31 darks.

Thans you!

Fco Bosch
Fco. Bosch