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
radechhmmssddmmssj2000aperturematched_idxmatched_tile
float64float64str12str11str20int64int64str6
173.6688-21.0562511:34:40.512-21:03:22.5J113440.51-21-322.5000T12180

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
radechhmmssddmmssj2000aperturematched_idxmatched_tile
float64float64str11str12str21int64int64str6
166.63937499999997-18.35671944444444711:06:33.45-18:21:24.19J110633.45-18-2124.1900T12965

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
radechhmmssddmmssj2000aperturematched_idxmatched_tile
float64float64str12str11str20int64int64str6
173.6688-21.0562511:34:40.512-21:03:22.5J113440.51-21-322.5000T12180

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
radechhmmssddmmssj2000aperturematched_idxmatched_tile
float64float64str12str12str21int64int64str6
173.6688-21.0562511:34:40.512-21:03:22.5J113440.51-21-322.5000T12180
166.63937499999997-18.35671944444444711:06:33.45-18:21:24.19J110633.45-18-2124.1901T12965

Matched tile information

[7]:
T.tile_table
[7]:
Table length=2
idradecra1dec1ra2dec2ra3dec3ra4dec4matched_idxdistance_to_boundaryoverlapped_areais_within_boundary
str6float64float64float64float64float64float64float64float64float64float64int64float64int64bool
T12180173.79310344827587-21.226415094339615174.52835458030515-20.767318019947634174.53292925678073-21.682308083156066173.05327763977098-21.682308083156066173.05785231624662-20.76731801994763400.28893198005236441True
T12965166.46616541353384-18.679245283018858167.18993430784832-18.220354589450892167.1938524736855-19.135347060918647165.73847835338216-19.135347060918647165.74239651921934-18.22035458945089210.136364854993555441True

Visualize the tiles

[8]:
T.visualize_tiles()
../_images/examples_tiles_15_0.png
[ ]: