cmateu / galstreams

Milky Way Streams Footprint Library and Toolkit for Python
BSD 3-Clause "New" or "Revised" License
46 stars 17 forks source link

Polygon Footprints in 4d (or more) #23

Open claudius-krause opened 2 years ago

claudius-krause commented 2 years ago

Right now, the polygon footprints create a mask in the two-dimensional space ra&dec, as you illustrate in plot_guide_1.ipynb. Is there a way to create the mask get_mask_in_poly_footprint() also taking the proper motions into account, so selecting stars that are close in all 4 coordinates, not just the spatial ones?

cmateu commented 2 years ago

Hi Claudius. Currently, no, but I agree this would be a useful feature. I'll try to implement it soon. For the time being you can do this by creating a mask that evaluates whether a point is within a given tolerance of the pm-track and combining this with the spatial mask provided.