Replies: 2 comments 1 reply
-
And some of the sample maps that I generate...
The overlay rectangles on the DSO field plots are for my wide eyepiece, and the Unistellar eQuinox2, Seestar S50, and Seestar S30 (the "fleet"). |
Beta Was this translation helpful? Give feedback.
-
All right, I'm starting a new thread, separate from your nice images, to discuss the efficiency issue. My first question is about this line:
Is it running in a reasonable amount of time? If so then you could do the filtering as the next step, because that line of code is doing the computation you want: it's figuring out how far every star is from the RA and dec of the center position. But instead of returning the distance from the target as a single angle, it's returning it decomposed into So I can imaging two approaches. First, you could use Pythagoras to compute a distance from Or you could be even more direct. If you know the
That would select only the stars that will fit within the bounding box of the plot, so your call to Matplotlib wouldn't be given any stars that would wind up off of the plot. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So I have a bunch of routines that generate maps. But the part that plunks down stars for any of them is REALLY inefficient:
So - the problem is the `scatter = ax.scatter( things... ) call since it's basically plotting the entire sky even if the scale of the actual plotting window is only a few degrees. So this slows things down (not an insane amount but I'm trying to make things more efficient overall).
Can anyone suggest how I might add code, along the lines of:
I know I could deliberately send an ra_range and dec_range but that stuff gets really messy (crossing 0h, over the poles, etc.) - generating some kind of angular_distance_from_coords column would be ideal because then it's just
proximate_stars = (stars.angular_distance_from_coords < whatever_my_desired_radius_is)
:-)Note: I'm SLOWLY ramping up on a github repo that has the whole kitchen sink for setting up and logging observing (both SSOs and DSOs) that I've been using for about 3 years (gee - since I discovered Skyfield!). It uses quite a bit of this library's features (thank you thank you thank you for aiding me in NOT reinventing the wheel!).
Beta Was this translation helpful? Give feedback.
All reactions