Author Topic: Image Plate Solver vs Pinpoint on Non Ideal subs  (Read 971 times)

Offline peabody1998

  • Newcomer
  • Posts: 10
Image Plate Solver vs Pinpoint on Non Ideal subs
« on: 2019 November 03 14:23:14 »
At least for me, the Image Plate Solver Script works at best intermittently as compared to PinPoint in Maxim DL which works nearly all the time -- even with poor subs. I attached a very low quality jpg of the stretched sub as I can only upload a max 512k file. I have purposely attached an example of an imperfect sub (with elongated stars and imperfect focus) which PinPoint solves immediately but Plate Solver fails to solve. I also attached my script settings and included outputs from both PinPoint and the Image Solver Script. I have tried changing star sensitivity and noise with no change in outcome. Am I doing something wrong?? Any help is appreciated. If it would be helpful I could share the actual fits file on dropbox.

--Rich
PS: I realize the sub is NOT good but PinPoint solves it easily.

=============================================================
Pinpoint Results:
Locating stars in image
Solving using 2024 image and 157 catalog stars
Looking up stars in catalog
Solving using 2024 image and 157 catalog stars
Matched 91 of 2024 image and 157 catalog stars;
Average residual 0.2 arcsec; order 4
RA 20h 58m 38.3s,  Dec +43° 55' 10.0"
Pos Angle +00° 03.4', FL 1563.6 mm, 0.50"/Pixel

========================================================


run --execute-mode=auto "C:/Program Files/PixInsight/src/scripts/AdP/ImageSolver.js"

Processing script file: C:/Program Files/PixInsight/src/scripts/AdP/ImageSolver.js

********************************
Processing image C:/Users/xxx/Desktop/TestImage.fit

Reading image:
C:/Users/xxx/Desktop/TestImage.fit
** Warning: Deprecated format: FITS
56 FITS keywords extracted.
Reading FITS image: 16-bit integers, 1 channel(s), 4656x3520 pixels: done
* Using an automatically calculated limit magnitude of 15.68.
* Using the automatically selected GaiaDR2 catalog.
Seed parameters for plate solving:
   Image coordinates: RA = 20 58 34.000, Dec = +43 53 20.00
   Resolution: 0.499 as/px
Starting StarAlignment iteration
Catalog Gaia DR2 already loaded.
Catalog Gaia DR2 size: 4255 objects

Using the triangle similarity star matching algorithm.

StarAlignment: Processing view: TestImage1
C:/Users/xxx/AppData/Local/Temp/stars.csv:
Scanning star data: done
682 stars.
TestImage1:
Structure map: done
Detecting stars: done
Fitting 122 stars: done
34 PSF fits.
Matching stars: done
28 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #2
useScaleDifferences=true
Matching stars: done
23 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #3
useScaleDifferences=false
* Reference image: Limiting to 250 brightest stars.
Matching stars: done
26 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #4
useScaleDifferences=true
* Reference image: Limiting to 250 brightest stars.
Matching stars: done
28 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #5
useScaleDifferences=false
* Reference image: Limiting to 125 brightest stars.
Matching stars: done
25 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #6
useScaleDifferences=true
* Reference image: Limiting to 125 brightest stars.
Matching stars: done
21 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #7
useScaleDifferences=false
* Reference image: Limiting to 60 brightest stars.
Matching stars: done
19 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #8
useScaleDifferences=true
* Reference image: Limiting to 60 brightest stars.
Matching stars: done
16 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #9
useScaleDifferences=false
* Reference image: Limiting to 30 brightest stars.
* Target image: Limiting to 30 brightest stars.
Matching stars: done
12 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #10
useScaleDifferences=true
* Reference image: Limiting to 30 brightest stars.
* Target image: Limiting to 30 brightest stars.
Matching stars: done
11 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #11
useScaleDifferences=false
* Reference image: Limiting to 15 brightest stars.
* Target image: Limiting to 15 brightest stars.
Matching stars: done
*** 3 star pair matches found - need at least six matched stars.
* Previous attempt failed - this is try #12
useScaleDifferences=true
* Reference image: Limiting to 15 brightest stars.
* Target image: Limiting to 15 brightest stars.
Matching stars: done
*** 0 star pair matches found - need at least six matched stars.
* Previous attempt failed - this is try #13
useScaleDifferences=false
* Reference image: Limiting to 8 brightest stars.
* Target image: Limiting to 8 brightest stars.
Matching stars: done
*** 0 star pair matches found - need at least six matched stars.
* Previous attempt failed - this is try #14
useScaleDifferences=true
* Reference image: Limiting to 8 brightest stars.
* Target image: Limiting to 8 brightest stars.
Matching stars: done
*** 0 star pair matches found - need at least six matched stars.
* Previous attempt failed - this is try #15
useScaleDifferences=false
* Reference image: Limiting to 500 brightest stars.
Matching stars: done
26 putative star pair matches.
Performing RANSAC: done
* Previous attempt failed - this is try #16
useScaleDifferences=true
* Reference image: Limiting to 500 brightest stars.
Matching stars: done
22 putative star pair matches.
Performing RANSAC: done
*** Error: Unable to find an initial set of putative star pair matches.
<* failed *>
*** Error: The image could not be aligned with the reference star field
Please check the following items:
The initial coordinates should be inside the image.
The initial resolution should be within a factor of 2 from the correct value.
Adjust the star detection sensitivity parameter, so that the script can detect most of the stars in the image without mistaking noise for stars.
The catalog should be matched to the image. Choose the appropriate catalog and magnitude filter, so that the number of stars extracted from the catalog can be similar to the number of stars detected in the image.
*** Error: Unable to plate solve the image: Alignment failed
This is usually because the initial parameters are too far from the real metadata of the image.

** Warning: Process finished with errors:
  TestImage.fit: The image could not be plate solved

Offline peabody1998

  • Newcomer
  • Posts: 10
Re: Image Plate Solver vs Pinpoint on Non Ideal subs
« Reply #1 on: 2019 November 03 14:36:49 »
I added the original fits file to dropbox if this helps:

https://www.dropbox.com/s/c3vxnx1amj7ycid/TestImage.fit?dl=1

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Image Plate Solver vs Pinpoint on Non Ideal subs
« Reply #2 on: 2019 November 03 15:21:22 »
i'm guessing that this has to do with the new PSF fitting feature in StarAlignment. Juan said he was going to revert that change so that by default it is off.

your image solved OK with an older version of PI so i think that's what's going on - ImageSolver has to call StarAlignment on the image it's solving and probably since the PSF fit is by default on, SA can't find any stars.

rob

Offline peabody1998

  • Newcomer
  • Posts: 10
Re: Image Plate Solver vs Pinpoint on Non Ideal subs
« Reply #3 on: 2019 November 03 17:46:43 »
Thanks for the quick response. Is there a way to turn the PSF fitting feature off when solving?

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Image Plate Solver vs Pinpoint on Non Ideal subs
« Reply #4 on: 2019 November 04 06:54:16 »
I have tested your image, and I can confirm that the problem is the new PSF fitting in StarAligment that the latest version of PI uses by default.
When I have some free time I will add an option for deactivating it, but it be a few days or weeks.

Andrés.

Offline peabody1998

  • Newcomer
  • Posts: 10
Re: Image Plate Solver vs Pinpoint on Non Ideal subs
« Reply #5 on: 2019 November 04 07:24:42 »
Thank you for the prompt and informative response.
I will await the fix.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Image Plate Solver vs Pinpoint on Non Ideal subs
« Reply #6 on: 2019 November 04 07:36:12 »
The image can be solved without problems in the new version 1.8.8 of PixInsight:

Image Plate Solver script version 5.4.1
===============================================================================
Referentiation matrix (world[ra,dec] = matrix * image[x,y]):
 -1.39286535e-04  -1.46192891e-07  +3.24455613e-01
 +1.73784065e-07  -1.39272028e-04  +2.44739361e-01
WCS transformation ....... Linear
Projection ............... Gnomonic
Projection origin ........ [2327.563722 1760.180119] px -> [RA: 20 58 38.282  Dec: +43 55 09.93]
Resolution ............... 0.501 arcsec/px
Rotation ................. 0.069 deg
Observation start time ... 2019-10-21 00:42:57 UTC
Observation end time ..... 2019-10-21 00:52:57 UTC
Geodetic coordinates .....  80 04 51 W  40 34 14 N
Focal distance ........... 1563.22 mm
Pixel size ............... 3.80 um
Field of view ............ 38' 54.5" x 29' 24.9"
Image center ............. RA: 20 58 38.262  Dec: +43 55 10.02
Image bounds:
   top-left .............. RA: 21 00 26.831  Dec: +44 09 47.77
   top-right ............. RA: 20 56 49.863  Dec: +44 09 50.69
   bottom-left ........... RA: 21 00 25.769  Dec: +43 40 22.99
   bottom-right .......... RA: 20 56 50.582  Dec: +43 40 25.89


This is with the ImageSolver script without modification.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline peabody1998

  • Newcomer
  • Posts: 10
Re: Image Plate Solver vs Pinpoint on Non Ideal subs
« Reply #7 on: 2019 November 04 09:28:22 »
Great news! Any idea when 1.8.8 will be released?

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Image Plate Solver vs Pinpoint on Non Ideal subs
« Reply #8 on: 2019 November 04 09:59:28 »
It is imminent. The Linux version is now finished. I am working on the rest of platforms right now. The official release should happen within 2-3 days.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/