Author Topic: New Versions of StarAlignment and StarGenerator + ImageSolver Script  (Read 9595 times)

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Hi all,

We have just released new versions of the standard StarGenerator and StarAlignment tools as an update for all supported platforms. These tools can now work with comma-separated value (CSV) text files.

In its new Generate CSV Text File working mode, StarGenerator writes a CSV file encoded in 8-bit ASCII format, instead of rendering a synthetic star field as a new image. The generated CSV file has a first row with the projection dimensions (width,height). Subsequent text lines provide data for the set of stars within the projection coordinates (xPos,yPos,flux). These are the first 16 lines of an example CSV file:

Code: [Select]
4096,4096
4043.59,3980.36,1.5129e-04
4043.54,3980.13,1.2017e-04
3954.77,4027.85,6.3649e-05
3896.12,4052.81,1.0962e-02
3886.20,4074.14,3.0187e-04
3861.86,4065.13,1.4448e-04
3829.01,3976.81,1.0960e-04
3819.04,4039.27,1.2241e-04
3763.50,4044.26,5.6473e-04
3721.76,3998.48,2.4650e-04
3703.09,4067.60,6.3066e-05
3653.61,4004.56,8.3138e-05
3637.62,3969.14,7.5822e-05
3586.79,4032.09,6.9151e-05
3561.83,4044.34,1.1798e-04

In these files, coordinates are expressed in pixels and the third column of each star line represents the star's flux scaled linearly. For each star, the flux value is computed as:

2.512Mmin - Mstar

where Mmin is the catalog's minimum stellar magnitude (corresponding to -1.5, or the approximate visual magnitude of Sirius) and Mstar is the catalog star magnitude.

The new version of the StarAlignment tool can use these CSV files as alignment references. When a CSV file is selected as reference, the corresponding star data are acquired in a very fast and accurate way, without requiring any access to the original image.

The main advantages of CSV star lists are:

* Execution of StarGenerator instances is extremely fast in CSV file generation mode.

* StarAlignment acquires reference star positions much more accurately than by exploring a synthetic star field image.

* StarAlignment's execution is faster because the initial structure detection phase is not performed for the reference image.

With these improvements, we have released an official version of Andres Pozo's ImageSolver script with the following enhancements:

* Works with CSV star lists, which removes the bottleneck of image generation with the StarGenerator tool.

* StarAlignment is more accurate because it now reads positional and brightness data directly from the original catalog, without the degradation involved in representing the data as an image. In addition, StarAlignment execution is also faster.

* Since the script is now much faster, more iterations can be performed (4 or 5), which leads to more accurate plate solvings.

Thanks to Andres Pozo for writing and releasing his ImageSolver script. This script is a nice example of an extremely useful and well designed tool implemented with PixInsight's JavaScript runtime.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
CSV? You couldn't come up with some custom XML or JSON file?

Seriously, I'm glad you used a simple yet effective format.

 :D
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 Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Besides simple and efficient, CSV has a vintage feeling that I love :)
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
"vintage", I like that :)
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 RBA

  • PixInsight Guru
  • ****
  • Posts: 511
    • DeepSkyColors
Can I create one of such CSV files from StarAlignment?
If yes, how? If not, I'd _LOVE_ to have that functionality!!

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Quote
Can I create one of such CSV files from StarAlignment?

Nope, but you can create it with StarGenerator. The good news is that now you can generate a huge star list in CSV format to cover your entire mosaic. This is super fast. With previous versions of SG, you had to generate a monster image and wait for ages to get it completed. You can select the CSV file as your reference 'image' in StarAlignment (see the last file type in the file selection dialog). Then you can generate your aligned mosaic frames with much less memory requirements, faster and more accurately, perhaps with the help of previews (especially if you have 54 frames...) :)
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline RBA

  • PixInsight Guru
  • ****
  • Posts: 511
    • DeepSkyColors
A bit too late (and a purchase of 16GB of RAM later) , but I'll definitely check it out next time!!

You may consider - as a non-urgent thing - adding that, or similar, functionality to StarAlignment in the future as well.

Offline jmtanous

  • PixInsight Addict
  • ***
  • Posts: 155
Hi,

Very interesting...

I have generated a CSV file from SG, however I don't know how to load this file to SA. If I chose file for 'Reference Image' the CSV file is grayed out...

Any idea?

Cheers,

Jose

Offline jmtanous

  • PixInsight Addict
  • ***
  • Posts: 155
Hi,

Very interesting...

I have generated a CSV file from SG, however I don't know how to load this file to SA. If I chose file for 'Reference Image' the CSV file is grayed out...

Any idea?

Cheers,

Jose

OK, I found how to do it... This thing is ultra fast!

Thanks!

Jose