xpipe.xhandle.parbins.field_cut¶
- xpipe.xhandle.parbins.field_cut(ra, dec, borders)[source]¶
Applies RA, DEC cut based on DES field boundaries
- Parameters
ra (np.array) – right ascension
dec (np.array) – declination
borders (dict) – dictionary with rectangular boundaries of the selected area
Notes
Define borders like:
spt = { "dec_top" : -30., "dec_bottom" : -60., "ra_left" : 0., "ra_right" : 360., }
- Returns
bool array indexing the objects within the selected area
- Return type
np.array