Page 1 of 2
Plate Solve Index stars list
Posted: Sun Mar 08, 2026 9:47 pm
by Jean-Francois
Hello Robin,
is it possible to have the list of the stars found with SharpSolve that is showed in the Deep Sky Annotation tool ?
Jean-Francois
Re: Plate Solve Index stars list
Posted: Mon Mar 09, 2026 11:10 am
by admin
Hi Jean-Francois,
no, sorry, but that is currently only available internally. I can't see any particular difficulty in making it available to scripting though, perhaps via some API like
SharpCap.GetPlateSolveStarsNear(RA, Dec)
The actual area that you get stars for is a bit arbitrary - the plate solve database is split into overlapping tiles, and you would get all the stars in the tile with the center nearest to the position given. Because of the overlap, you would pretty much be assured of getting coverage out to at least 2 degrees from the given position. Would that work for your use case?
cheers,
Robin
Re: Plate Solve Index stars list
Posted: Mon Mar 09, 2026 11:17 am
by Jean-Francois
Hello Robin,
Yes, it will be fine.
Alternative only the stars visible/found on the image or SharpCap.GetPlateSolveStarsNear(RA, Dec, radius)
Regards,
Jean-Francois
Re: Plate Solve Index stars list
Posted: Mon Mar 09, 2026 11:34 am
by admin
Hi,
I guess I could do it that way, but then the data would only be available if the user had ticked the option to show the plate solve stars and deep sky annotation was active and showing those stars, which is limiting. By giving all the data near a particular point, you have more choice about when and what to use the data for. You can filter the data by asking the PixelPositionProvider to tell you the screen co-ordinates for each star position, although this is slow and it is advisable to pre-filter the data first by maybe something like haversine distance from the star to the image center point being less than the haversine distance from image center point to the image corner.
cheers,
Robin
Re: Plate Solve Index stars list
Posted: Mon Mar 09, 2026 1:21 pm
by Jean-Francois
Hello,
OK for ...
By giving all the data near a particular point.
So it would be not necessary to have the Deep Sky Annotation tool activated.
Jean-Francois
Re: Plate Solve Index stars list
Posted: Tue Mar 10, 2026 2:45 pm
by admin
Hi,
yes, I ended up adding the following API call
Code: Select all
/// <summary>
/// Return a collection of plate solve stars near the provided position. This will usually give coverage up to at least 2 degrees distant from the position specified
/// The position of each star in the image can be calculated using the PixelPositionProvider if plate solving information is available. Note that performing this for
/// all returned stars will be slow - the returned list should be pre-filtered first, perhaps based on haversine distance to from the center point of the image.
/// </summary>
/// <param name="position"></param>
/// <returns></returns>
IEnumerable<ICatalogEntry> GetPlateSolveStarsNear([NotNull] RADecPosition position);
So you will be able to call SharpCap.GetPlateSolveStarsNear(position) and receive the stars near that position regardless of whether annotation is active or not (or whether the position is near to the current pointing of the camera).
Code: Select all
>>> from SharpCap.Base import RADecPosition
>>> from SharpCap.Base import Epoch
>>> SharpCap.GetPlateSolveStarsNear(RADecPosition(0,0, Epoch.J2000)).Count
20947
At the moment, this always uses the default plate solving index file to provide the stars, so you will typically get about 20000 near any point. Note that the plate solve database is not complete down to a particular magnitude - the stars are selected to be roughly even density over the whole sky, so in sparse areas it will go down to fainter magnitudes than in rich fields.
cheers,
Robin
Re: Plate Solve Index stars list
Posted: Tue Mar 10, 2026 6:30 pm
by Jean-Francois
Hello Robin,
OK thanks for the new function.
When you say the "default plate solving index" ... you mean not the "selected" index, but really the first index with 0.5°field.
Ideally, it will use the selected index from the Plate Solving settings window.
Jean-Francois
Re: Plate Solve Index stars list
Posted: Wed Mar 11, 2026 1:04 pm
by admin
Hi,
OK, I can change that, but one thing to note is that the 'ultra hi res' index file has smaller tiles (and more of them) than the other two lower res index files. That means that the minimum radius around any point where you are guaranteed to have coverage is smaller, probably closer to 1 degree. That's because the current approach only takes stars from the closest tile to the provided co-ordinates.
cheers,
Robin
Re: Plate Solve Index stars list
Posted: Wed Mar 11, 2026 6:20 pm
by Jean-Francois
Hello Robin,
If possible with the selected index, then please change that to the selected index.
The field of view for the occultation observation is most of the time smaller than 1 degree. It should be fine.
If necessary, the index has to be changed for the larger tiles.
Regards,
Jean-Francois
Re: Plate Solve Index stars list
Posted: Thu Mar 12, 2026 11:20 am
by admin
Hi Jean-Francois,
no problem - I have made that change so it will use the selected index. For the two higher resolution indices you will get about 80,000 stars for each request, so make sure any filtering/calculations you do on them is pretty fast!
cheers,
Robin