************************************ Extracting point sources from Slices ************************************ We again start out with having a project open called proj:: >>> proj = GMOSMOSProject(dbname, work_dir=work_dir, echo=False) Calculating Slice Geometries ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TODO Sources in the Database ^^^^^^^^^^^^^^^^^^^^^^^ For this to work the database has to be constructed and has linked the science sets together. Each slice is associated with a number of MOSPointSources. These objects hold information about the priority and the slit position for the current slice. Having a slice object it is easy to access the associated MOS Point Sources:: >>> slice = proj.science_sets[0].slices[0] >>> mos_ps = slice.mos_point_sources[0] >>> mos_ps >>> mos_ps.slices []