Tiles
[1]:
from supy.tiles import Tiles
[2]:
T = Tiles()
Provide the list of ra and dec
Method 1
[3]:
ra, dec = 173.6688, -21.05625
T.find_overlapping_tiles(ra=ra, dec=dec, list_aperture = 0,
match_tolerance_minutes=4, fraction_overlap_lower= 0.1 )
T.target_table
[3]:
Table length=1
| ra | dec | hhmmss | ddmmss | j2000 | aperture | matched_idx | matched_tile |
|---|---|---|---|---|---|---|---|
| float64 | float64 | str12 | str11 | str20 | int64 | int64 | str6 |
| 173.6688 | -21.05625 | 11:34:40.512 | -21:03:22.5 | J113440.51-21-322.50 | 0 | 0 | T12180 |
Method 2
[4]:
j2000 = 'J110633.45-182124.19'
T.find_overlapping_tiles(j2000=j2000, list_aperture = 0,
match_tolerance_minutes=4, fraction_overlap_lower= 0.1 )
T.target_table
[4]:
Table length=1
| ra | dec | hhmmss | ddmmss | j2000 | aperture | matched_idx | matched_tile |
|---|---|---|---|---|---|---|---|
| float64 | float64 | str11 | str12 | str21 | int64 | int64 | str6 |
| 166.63937499999997 | -18.356719444444447 | 11:06:33.45 | -18:21:24.19 | J110633.45-18-2124.19 | 0 | 0 | T12965 |
Method 3
[5]:
loc = [173.6688, -21.05625]
T.find_overlapping_tiles(loc=loc, list_aperture = 0,
match_tolerance_minutes=4, fraction_overlap_lower= 0.1 )
T.target_table
[5]:
Table length=1
| ra | dec | hhmmss | ddmmss | j2000 | aperture | matched_idx | matched_tile |
|---|---|---|---|---|---|---|---|
| float64 | float64 | str12 | str11 | str20 | int64 | int64 | str6 |
| 173.6688 | -21.05625 | 11:34:40.512 | -21:03:22.5 | J113440.51-21-322.50 | 0 | 0 | T12180 |
List of localizations
[6]:
loc = [[173.6688, -21.05625], 'J110633.45-182124.19']
T.find_overlapping_tiles(loc=loc,
match_tolerance_minutes=4, fraction_overlap_lower= 0.1 )
T.target_table
[6]:
Table length=2
| ra | dec | hhmmss | ddmmss | j2000 | aperture | matched_idx | matched_tile |
|---|---|---|---|---|---|---|---|
| float64 | float64 | str12 | str12 | str21 | int64 | int64 | str6 |
| 173.6688 | -21.05625 | 11:34:40.512 | -21:03:22.5 | J113440.51-21-322.50 | 0 | 0 | T12180 |
| 166.63937499999997 | -18.356719444444447 | 11:06:33.45 | -18:21:24.19 | J110633.45-18-2124.19 | 0 | 1 | T12965 |
Matched tile information
[7]:
T.tile_table
[7]:
Table length=2
| id | ra | dec | ra1 | dec1 | ra2 | dec2 | ra3 | dec3 | ra4 | dec4 | matched_idx | distance_to_boundary | overlapped_area | is_within_boundary |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| str6 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | int64 | float64 | int64 | bool |
| T12180 | 173.79310344827587 | -21.226415094339615 | 174.52835458030515 | -20.767318019947634 | 174.53292925678073 | -21.682308083156066 | 173.05327763977098 | -21.682308083156066 | 173.05785231624662 | -20.767318019947634 | 0 | 0.2889319800523644 | 1 | True |
| T12965 | 166.46616541353384 | -18.679245283018858 | 167.18993430784832 | -18.220354589450892 | 167.1938524736855 | -19.135347060918647 | 165.73847835338216 | -19.135347060918647 | 165.74239651921934 | -18.220354589450892 | 1 | 0.13636485499355544 | 1 | True |
Visualize the tiles
[8]:
T.visualize_tiles()
[ ]: