I wish to use some function from the PixelPositionProvider.
I remark some variation of the output of the calculation.
With the following script:
Code: Select all
import time
from SharpCap.Interfaces import PlateSolvePurpose
from System.Threading import CancellationToken
print("Plates Solve result:")
result = SharpCap.SafeGetAsyncResult(SharpCap.BlindSolver.SolveAsync(PlateSolvePurpose.Annotation, CancellationToken()))
print(result)
P = SharpCap.PixelPositionProvider.MapPixel(PointF(float(res[0])/2, float(res[1])/2))
print(P)
print(SharpCap.PixelPositionProvider.Orientation_UpDegreesEastOfNorth, "UpDegreesEastOfNorth")
print()
print("Map Coordinate of Plates Solve result:")
print(SharpCap.PixelPositionProvider.MapCoordinate(result))
time.sleep(1)
print(SharpCap.PixelPositionProvider.MapCoordinate(result))
time.sleep(1)
print(SharpCap.PixelPositionProvider.MapCoordinate(result))
time.sleep(1)
print(SharpCap.PixelPositionProvider.MapCoordinate(result))- I use the GSS Telescope Simulator
- I use the Test Camera 1 (Deep Sky) with the M42 image
- I connect the GSS Telescope Simulator
- I perform a GOTO to Target M42
- I start the preceding script
- I disconnect the GSS Telescope Simulator
- I restart the script
- I reconnect the GSS Telescope Simulator, but do not perform a GOTO to M42 (the mount is still at the Home position)
- I restart the script
Here the results:
>>>
Plates Solve result:
RA=05:35:21.0,Dec=-05:18:27
RA=05:35:21.0,Dec=-05:18:27
272.86781119025409 UpDegreesEastOfNorth
Map Coordinate of Plates Solve result:
{X=639.99945, Y=480.00537}
{X=639.9852, Y=479.96814}
{X=639.97577, Y=479.9702}
{X=639.9565, Y=480.04028}
>>>
Plates Solve result:
RA=05:35:21.0,Dec=-05:18:27
RA=05:35:21.0,Dec=-05:18:27
272.86781119025409 UpDegreesEastOfNorth
Map Coordinate of Plates Solve result:
{X=639.99945, Y=480.00537}
{X=639.99945, Y=480.00537}
{X=639.99945, Y=480.00537}
{X=639.99945, Y=480.00537}
>>>
Plates Solve result:
RA=05:35:21.0,Dec=-05:18:27
None
272.86781119025409 UpDegreesEastOfNorth
Map Coordinate of Plates Solve result:
None
None
None
None
>>>
It seems that the function "SharpCap.PixelPositionProvider.MapCoordinate()" ask some information from the mount.
Is that correct ?
Additional question ... UpDegreesEastOfNorth ??
I changed the orientation of the image with the Flip (Horiz, Vert, Both). The image of M42 is flipped.
The result of SharpCap.PixelPositionProvider.Orientation_UpDegreesEastOfNorth seems to be calculated only if a mount is connected and pointing near the image coordinates.
The angle result is the same with or without an horizontal flip.
Flip None:
Solution : RA=05:35:20.7,Dec=-05:18:31 (J2000)
Orientation : up is 272.8 degrees E of N
Flip Horizontal:
Solution : RA=05:35:21.0,Dec=-05:18:27 (J2000)
Orientation : up is 272.9 degrees E of N
But how to determine the image orientation ? (where is the North and the East direction ? if the result is always "up is 272.8 degrees E of N")
Regards,
Jean-Francois