Astro-Wise SourceLists ans AssociateLists


What is a SourceList DataBase implementation

Store as one big table in , where

How to create a SourceList

Retrieving Sourcelists and sources

How to retrieve a SourceList:

How to find the number of sources: How to find the possible attributes of a source How to retrieve source info: Methods on SourceLists Examples Spatial associations of sources How to make an AssociateList
awe> AL = AssociateList()
awe> sl0 = (SourceList.SLID == 0)[0]
awe> sl1 = (SourceList.SLID == 1)[0]
awe> AL.input_lists.append(sl0)
awe> AL.input_lists.append(sl1)
awe> AL.make()
        
optional:
awe> AL.set_search_distance(5.0)
awe> AL.filter_for_closest_pairs = False
awe> AL.set_search_area(llra,lldec,lrra,lrdec,urra,urdec,ulra,uldec)
awe> AL.associatelisttype = 1
        
NOTE: You can give an existing AssociateList as input instead of a SourceList.

Three types of associatelists Methods on AssociateLists Examples BONUS EXERCISE

Find an associatelist which was used for a Global Astrometric Solution. Then try to find the distance between two different pointings by comparing the grid positions of associated sources i.e. sources belonging to the same association.

Hints:

Solution:

attrlist = ['Xpos', 'Ypos']
r = gasslist.associates.get_data(attrlist=attrlist,
                                 mask= 2 + 4,
                                 mode= 'INTERSECT')