• No results found

Identifying Gravitationally Lensed QSO Candidates with eROSITA

N/A
N/A
Protected

Academic year: 2021

Share "Identifying Gravitationally Lensed QSO Candidates with eROSITA"

Copied!
27
0
0

Loading.... (view fulltext now)

Full text

(1)

Identifying Gravitationally Lensed QSO Candidates with eROSITA

R´ ois´ın O’Rourke Brogan August 2020

1 Abstract

As of June 2020, the first all-sky X-ray survey with the eROSITA instrument aboard the spacecraft Spektr-RG has been completed. A high percentage of the 1.1 million objects included in the survey are expected to be active galactic nuclei (AGN). Such an extensive catalogue of X-ray sources offers a unique opportunity for large scale observations of distinct classes of X-ray emitters.

This report explores methods of refining the catalogue to include only candidates for lensed AGN. Of the differing types of AGN known, quasi-stellar objects, or QSOs, are some of the most luminous, meaning they are well-suited for observation over large distances. This is particularly befitting for observation of gravitationally lensed objects as, for lensing effects to take place, large distances are required over which more faint objects would not be able to be viewed. An indication of strong gravitational lensing is several images of the same object seen in close proximity on the sky. In order to reduce the data to more likely candidates, counterparts within a given radius are found in the second data release from Gaia; a survey in the optical with higher resolution than eROSITA.

An algorithm is produced which removes most likely stellar Gaia sources using their X-ray to optical flux ratios and astrometry parameters. The Gaia sources which have no neighbours within another given radius are then also removed, leaving a catalogue of potential multiply lensed QSOs. This automated script was then applied to an eROSITA catalogue and the results compared with known lenses. The remaining sources were also checked visually using Pan- STARRS optical survey data. The results seem to be promising, although a great deal further refinement is needed through visual inspection to find the most promising candidates for lensed QSOs.

2 Introduction

2.1 Quasi-stellar objects (QSOs)

QSOs are part of a group of astrophysical objects known as active galactic nuclei (AGN). They are also sometimes described as quasars, although the two terms have slightly different meanings. Quasar is a shortened version of quasi-stellar radio source as they were first discovered as counterparts to radio sources [6].

However, as more objects of this type were discovered at optical wavelengths,

(2)

the term was later generalised to quasi-stellar object, or QSOs. It is generally accepted that there is a supermassive black hole (SMBH) at the centre of every galaxy [2]. This black hole may be active, i.e. continuously accreting matter at varying rates, or dormant, like the black hole at the centre of the Milky Way, Sagittarius A* [7]. If the black hole is active and located in the centre of a galaxy this meets the criteria for an AGN. Of the 1.1 million sources contained in the eROSITA X-ray catalogue, 77% of these are expected to be AGN [10].

As well as the central engine - the SMBH - there is a surrounding structure which completes the description of an AGN. Fig. 1 shows a diagram of this structure. Around the singularity there is a accretion disc, created by the con- tinual flow of matter into the black hole. Near the accretion disc is a region of extremely fast-moving gas, known as the broad line region (BLR). It is named due to the appearance of emission lines from this region which appear in the observed spectra. These lines have large widths as a result of the high veloc- ity of this gas. Slower moving gas called the narrow line region (NLR) exists further from the centre than the BLR and causes narrower emission lines to appear in the AGN spectrum. A dusty torus encircles the inner AGN areas and depending on the orientation of the AGN with respect to the observer, this may hide the BLR so that only narrow emission lines appear in the spectrum. It has not yet been proven that the BLR exists obscured for every narrow line AGN , however [21]. This idea is part of the orientation model of AGN type unification whereby each type is the same object observed at a different angle. This theory seems to be valid for many AGN but perhaps not all [21]. Finally, AGN may display radio jets, as shown in fig. 1. If so, these AGN are termed ”radio-loud”

and if not they are ”radio-quiet”. It is still not known exactly how these jets are formed, although observations have shown some interesting jet structures in certain AGN [4] [19] [14].

Within this class of objects are many sub-classes based on different observ- able characteristics. The different types of AGN based on what direction they are viewed, the presence of radio jets and the measure of how powerful they are is shown in fig. 1. In general, type 1 refers to the presence of both broad and narrow emission lines and type 2 refers to narrow lines only. A Seyfert 1 galaxy will show both broad and narrow emission lines and no jets. Seyfert 2 galaxies are similar but without the presence of broad lines. Seyfert galaxies do not exist on a binary scale and can be classed as somewhere between 1 and 2 based on the width of specific various lines. For example, a Seyfert 1.8 has weak broad components in two hydrogen lines; Hα and Hβ. Conversely, a 1.9 type exhibits these only at Hα [23]. They are also typically found in spiral galaxies and have low luminosity - thought to be the least powerful type of the AGN zoo [27]. Radio galaxies are radio-loud and are termed BLRG with broad lines and NLRG without, usually found in elliptical host galaxies. Blazars are an extremely luminous class of AGN which are radio-loud. It is thought that their high luminosity is due to the relativistic radio jet pointing directly towards the observer. Both BL Lac objects and flat spectrum radio quasars (FSRQ) have highly variable output (FSRQs are also known as Optically Violent Variables) but BL Lac objects tend not to show emission lines in their spectra, making it difficult to find their redshift.

The last type in the diagram are type 1 and type 2 QSOs, also known as quasars, which are classified here as radio-loud, but can also be radio-quiet (the classification of AGN is not cut-and-dried by any means) [27]. They are

(3)

Figure 1: Diagram of various structures present in AGN. The labels around the edge shows the class of AGN the observer should see from that particular line of sight orientation. Credit given in image.

(4)

Figure 2: Overview of the classification of AGN compared with ”normal galax- ies” from [27].

extremely luminous and blue in the optical. Due to their high luminosity and point-like emission, QSOs can be subject to strong lensing by single galaxies.

The point-like appearance means that even images with very small separations are detectable. They are also more likely to outshine the host galaxy, making them easy to observe with out having to reduce host contamination. More importantly, for a lensed system to exist there must be a amenable ratio of distances between the source, lens and observer [8]. As a result of this, only relatively distant AGN have a good chance of being lensed. The brightness of the QSO class means that they can be observed and identified over these vast distances. A tabular summary of the main characteristics of each type is shown in fig. 2.

2.2 Gravitational lensing

The term gravitational lensing refers to the phenomenon whereby light rays travelling from a source to an observer are deflected by gravitational effects due to an massive intermediate object.

2.2.1 Types of lensing

This effect can be split into three different types of lensing based on strength and effects, known as strong lensing, weak lensing and microlensing [8]. If the lens, i.e. the object causing the light to be deflected, is above a certain critical mass, this can cause background object to be magnified, distorted and/or seen as multiple images by an observer. As the lensing is strong, the distortions will be more obvious and the frequency of occurrence less. Multiple images are the focus for the selection process of lensed QSO candidates in eROSITA. As mentioned in the previous section, QSOs can be strongly lensed by an individual galaxy. To expand on this: in the plane of the lens there are critical curves which mark locations where the magnification is infinite and in the plane of the source there are caustics, which mark where a source will generate images [28] [18]. Fig. 4 illustrates this concept. For a single galaxy the area on the sky where the background object is lensed can be extremely small, sometimes less than 1”. As QSOs are compact, multiple images can be produced, whereas for a more diffuse source covering a larger area, the effect would not be the same. Unfortunately, there needs to be a specific set of requirements for multiple images to be produced by an astrophysical lens. The configuration is important;

there needs to be an alignment of a galaxy or galaxy cluster between the Earth

(5)

Figure 3: (a) Hubble Space Telescope image of the first gravitationally lensed source, the high-redshift quasar SBS 0957 + 561. The two nearly comparable images of the same background source are produced by the lensing effect of a foreground elliptical galaxy. (b) The remarkable ‘giant arc’ in the rich cluster of galaxies, Abell 370. The image is that of a distant galaxy distorted by the gravitational potential of the foreground cluster. Taken from [8]

Figure 4: The critical curves (left) and caustics (right) for an elliptical lens. The numbers in the right panels identify regions in the source plane that correspond to 1, 3 or 5 images, respectively. From [28].

and a QSO of suitable brightness. Further criteria are that the ratio of distances between the source, lens and observer need to be in a specific range [8]. With these stipulations in place, multiple images of lensed QSOs are fairly rare. Figure 3 shows the first gravitational lensed source and the often mentioned cluster Abell 370, which operates as a gravitational lens for source galaxies further away from Earth. More recently the CASTLES (CfA-Arizona Space Telescope LEns Survey) have compiled a catalogue of known lensed QSOs [16]. Fortunately, the advent of large scale surveys such as GAIA and eROSITA means that there are a multitude of data to work with and perhaps more can be discovered.

However, if the mass density of the lensing object is below a certain value, the configuration will exhibit weak lensing. This is observed by looking for distorted morphology in lensing candidates, such as stretching or curvature, but in more subtle manner than with strong lensing [32] [8]. A representation of this is shown in figure 5. This is much more common but harder to detect than strong lensing and is also useful for a more general mapping of dark matter in foreground lensing galaxies. The term cosmic shear has been coined to describe

(6)

Figure 5: Right : A representation of randomly distributed sources. Left : The same sources with weak lensing effects due to a typical (for our universe) dis- tribution of mass in the foreground. Taken from [32].

the weak lensing effect of the large-scale distribution along random lines of sight of dark matter.

Microlensing is a more subtle gravitational effect which occurs when either the source or both the source and the lens are unresolved. Due to the low resolution, effects like warped morphology cannot be observed. However, if there is relative motion between the source and the lens, a temporary brightening of the combined flux will be observed at passage.

2.2.2 Applications of gravitational lensing

There are several benefits of gravitational lensing phenomena beyond simply being evidence for General Relativity [8]. An important field of research that relies on gravitational lensing is the study of dark matter distribution. It is known that galaxies tend to have dark matter halos surrounding their baryonic mass distribution. When looking at observable lensing phenomena, the strength and appearance of the lensing effects can be used to find a mass distribution for all matter in the galaxy - both visible and dark. As strong lensing effects are rare, weak lensing can also be employed to look at the dark matter distri- bution of individual galaxies by stacking deeper imaging data for a particular class of object. The large-scale distribution of dark matter in the universe can be inferred from weak lensing effects, however the subtlety of the effects and technological limitations mean that this is a difficult field of research.

Another application makes use of the magnification effect a lens has on a source [8]. As the surface brightness of the object is conserved, but the observed area covered by the object is increased, the apparent flux becomes larger [32].

Therefore, both the luminosity and the angular size is increased and distant sources are both brighter and more resolvable. As light takes time to travel the vast distances from these distant and faint QSOs, study of these sources can reveal insights into the environment of the early universe and how galaxies evolve.

Lensed QSOs are also important in modern cosmology as a method for mea- suring the Hubble constant, H0 [29]. This is a measure of the expansion rate of space in kilometres per second per megaparsec and the term ”constant” is somewhat of a misnomer as, although the parameter remains constant in space,

(7)

it varies with time. Previously the best method has been to use type Ia super- novae (occurring when a white dwarf in a binary system reaches a critical mass) as they tend to have a consistent peak luminosity due to the consistent critical mass at which the event is triggered. This means that absolute distances can be determined from their light curve, i.e. the change in light intensity with time.

However, results from this method do not concur with measurement of H0 us- ing the cosmic microwave background radiation (the CMBR; radiation from the early universe which exists over all space) and as the techniques have improved the error ranges have shrunk to a point where the differing measurements be- come statistically significant. This disagreement is known as the Hubble tension.

In order to resolve this, alternative independent methods of measurement are being explored and one such avenue is to use lensed QSOs with multiple images.

As the light rays from different images of the source take differing paths towards the observer, they will pass through different areas of space and gravitational potentials to arrive at different times at the observer. With variable sources, the time delay can be measurement by noting when flux variations occur for each image. From this value a parameter known as the time delay distance can be found, which is sensitive to H0.

On the smaller end of the astrophysical scale, microlensing can be used to check for extrasolar planets orbiting stars. Usually in microlensing cases, the source, and sometimes the lens as well, are unresolved and distortions cannot be clearly seen [8]. Inspection of the light curve can indicate if this phenomenon occurs. If a star passes behind a lens and experiences microlensing, the light intensity briefly increases due to the gravitational effects of the lens. This is particularly useful when searching for exoplanets, as when the gravitational lens is a star which has a planets orbiting around it, the light curve is different from a straightforward single object lens. In fact any small dark objects in the galaxy may cause microlensing in a background star, which is useful when searching for dark matter candidates within the galaxy.

3 Data and research tools

3.1 The eROSITA all-sky survey

In 2019, the satellite Spectrum-Roentgen-Gamma (Spektr-RG), a Russian-German collaborative mission, was launched with the primary instrument eROSITA on board [9], eventually orbiting the second Lagrange point of the Sun and Earth.

Lagrange points are locations in a system of orbiting bodies where the gravi- tational forces balance such that the points can be (semi-)stably orbited. Fig.

6 shows the Lagrange points in our local system. The eROSITA instrument consists of seven identical mirror modules with a 1600 mm focal length pointed in the same direction [24]. A multiple mirror system is desirable as this means a shorter focal length, smaller mirror shells and reduced pileup (an effect where multiple X-ray photons from bright sources are detected as a single event). Fig.

7 shows a diagram of the seven modules. Each mirror module has a CCD (charged-coupled device) camera which is sensitive to X-ray radiation. These have a 10 arcsecond pixel size and a field-of-view diameter of 1 degree. The energy range as stated in [24] is between 0.2 and 12 keV, and the instrument is most sensitive in the range 0.2 to 2.3 keV.

(8)

Figure 6: A diagram of Langrange points in the Sun, Earth and Moon orbital system. L1, L2 and L3 are unstable and L4 and L5 are stable. Taken from [20].

Figure 7: The seven mirror modules with baffles in front and the seven cameras at the rear end of the optical bench. Total length of the telescope is ≈2,600mm, the diameter is ≈1,300mm. From [24]

(9)

Figure 8: The eROSITA input catalogue used in this report. The data has been uploaded and plotted using TOPCAT.

The aim of this instrument is to extend large range X-ray surveillance across the whole sky, as opposed to telescopes like Chandra and XMM-Newton, which collect data over a wider ranger of energies and with higher spatial resolution, but only in certain areas of the sky [24]. The method of completing this is to scan the sky in great circles intersecting at the elliptical poles, resulting in full coverage over a period of six months. The first all-sky survey has been completed as of June 2020, ensuring adequate data to test the lensed QSO candidate selection algorithm discussed in this report. The satellite also contains a Russian instrument, ART-XC. The resulting eROSITA data is divided among each participating country with data from the Northern part of the sky in the range 0 to 180 degrees being used by Russia and Germany having data rights from 180 to 360 degrees. In fig. 9 this equates to the right hand side of the image. As this report is completed in conjunction with the Leibniz Institute for Astrophysics Potsdam the data used here is taken from the German half of the sky. The number of sources totals at 383,824, with 372,363 point-like and 11,461 extended. Due to contamination from the disc of the Milky Way, a section of the sky is excluded - this is from -20 to +20 degrees galactic latitude. A plot of all the X-ray sources is shown in fig. 8.

In terms of scientific goals, there are several applications to research of a vast catalogue of X-ray sources. One such use is to observe galaxy clusters to find information on the expansion rate of the Universe, thought to be accelerated due to dark energy. This unknown component of the Universe is one of the most baffling cosmological mysteries today. Studying X-ray sources in their own right is also important for the advancement of our understanding of the high-energy Universe, such as stellar remnants like pulsars and X-ray binaries (a binary

(10)

Figure 9: The energetic universe as seen with the eROSITA X-ray telescope.

To generate this image, in which the whole sky is projected onto an ellipse (so- called Aitoff projection) with the centre of the Milky Way in the middle and the plane of the Galaxy running horizontally, photons have been colour-coded according to their energy (red for energies 0.3-0.6 keV, green for 0.6-1 keV, blue for 1-2.3 keV). Image from [10].

system where one component is a dense object such as a neutron star or black hole). Of course, as mentioned before, many of the X-ray sources will be AGN, many previously undetected. These are not only interesting their own right but the detection of lensed QSOs has further-reaching impacts. as described in the previous section.

As of August 2020, the first all sky survey in X-rays was completed and the images processed and released, as seen in figure 9. The data was collected over six months. Future projects include a deep survey and pointed observations, as well as an extragalactic survey with variable scan speeds [24].

3.2 The Gaia mission

For this project, the second Gaia data release (Gaia DR2) is used in conjunction with the eROSITA all-sky survey to select to likely lensed QSO candidates. Gaia is also an extraterrestrial observatory and orbits the Sun-Earth L2 point - the same point orbited by the Spektr-RG spacecraft [13]. It was launched in 2013 under the control of the European Space Agency (ESA) and contains three main instruments for astrometry, photometry and spectroscopy. The photometric and spectroscopic data received is in optical wavebands. The main purpose of the mission is to map the sky with unprecedented precision astrometry, i.e.

locations, measurement of distances and the movement of objects in space, alongside photometric and spectroscopic surveys, thus creating the most precise three-dimensional map of our galaxy so far. This has provided much more insight into the structure and history of the Milky Way, as Gaia is primarily designed to detect stellar output and motion. However the survey will be a collection of many different point-like sources, including the quasars used in this project. Fig. 10 shows an image of the stellar density of the Milky Way

(11)

Figure 10: This image, based on housekeeping data from ESA’s Gaia satellite, portrays the outline of the Milky Way and of its neighbouring galaxies the Mag- ellanic Clouds. It was obtained by plotting the total number of stars crossing Gaia’s focal plane per second - this is a measure of the density of stars in the region that is being scanned. Credits: ESA/Gaia-CC BY-SA 3.0 IGO

and Magellanic System created with Gaia data.

3.3 CASTLES

The CfA-Arizona Space Telescope LEns Survey (CASTLES) is a project with the aim of compiling a list of known strong gravitational lenses for use as re- search tools in astronomy [16]. These lenses can be used for many of the appli- cations already mentioned; estimation of the Hubble constant, measuring the mass to light ratio of the lenses, dark matter mapping and probing the inter- stellar medium in the lenses [11]. These are compiled using deep optical and infrared observations from the Hubble Space Telescope, in the V , I and H bands. Objects from this catalogue are compared against the candidate lensed QSO eROSITA sources. If known lensed objects appear, it is an indication that the selection process works.

4 Candidate selection method

4.1 Method outline

The selection method is a series of steps designed to remove unlikely candidates eventually leaving a catalogue of strong possibilities for new lensed QSOs that can be examined by eye. The first step is to cross-match the catalogue with Gaia data to download all Gaia sources within a certain radius of each eROSITA source. Gaia has a higher resolution than eROSITA and therefore close multiple lensed images will be resolved in the optical in this catalogue. This method will give duplicate results as a Gaia source that is within the given radius of two eROSITA sources will be assigned to both.

(12)

The combined eROSITA/Gaia catalogue is then further refined by removing likely stars through the logarithmic X-ray to optical flux ratio [17] and Gaia as- trometry to remove galactic stars with significant parallaxes or proper motions.

The reduction of data to lensed QSO candidates is then implemented. Firstly eROSITA sources with only one Gaia counterpart to only leave those with mul- tiple optical counterparts. Depending on the type of gravitational lens (i.e. how massive) multiple images can appear at different distances on the sky. With this distance stipulation as a variable input parameter, the Gaia counterpart images that have no closest neighbours within this range are then removed. This leaves a catalogue of likely candidates for optical screening by eye.

4.2 Streamlining the process

The initial selection method used involved using TOPCAT (Tool for OPerations on Catalogues And Tables) to fetch the Gaia counterparts using the integrated cross matching tool, CDS xMatch. IDL (Interactive Data Language) scripts were then used to separately remove likely stellar sources and unlikely lensed multiple images. IDL is a programming language used for manipulating scien- tific data and images applicable to scientific fields which require visualisation of large amounts of data, such as astronomy, medical imaging or statistics [26].

However, Python has increased in popularity as the scientific programming lan- guage of choice over recent years, meaning that for widespread use and general applicability, a translation and streamlining of the code into Python is desirable [25] [15]. Python is also extremely adept at handling large databases of not only numerical data, but also mixed data types, through the use of various packages with in-built functions specific to the type of data being analysed. The Astropy package is specifically engineered to manipulate astronomical data.

4.2.1 Cross-identifying sources

In order to query Gaia DR2 and download the relevant counterparts, a service called CDS xMatch was used. This is a tool developed by the University of Strasbourg to efficiently match within a certain radius uploaded lists of coordi- nates to catalogue sources or to cross-identify sources between large catalogues (again, with a maximum radius stipulated) [3]. The data is downloaded from the VizieR database, which contains thousands of astronomical catalogues [22].

The matching service can be performed on all sources or in a certain area of the sky. A list of the available catalogues can be found in [3]. Drawbacks to this service include a time-out for datasets with a large number of rows and a maximum search radius, depending on the type of query.

There are several ways this service can be used; on their website, through TOPCAT or called as a function as part of a script in various coding languages.

The ideal way to streamline this is to include it as part of the Python script so all steps in the process are contained within a single script. This way the process is fully automated and data doesn’t have to be manually input into a database. The requisite code is outlined in the CDS xMatch documentation [3]

and can be seen used in the full script in appendix A.

The input catalogue must be in a VOTtable format, which is a file format commonly used in astronomy able to contain multiple tables. It is similar to a FITS file, specifically created to collate astronomical data. This stands for

(13)

Flexible Image Transport System and can contain multiple data arrays and subject-specific requirements such as information on coordinate systems and calibration information [1]. Unfortunately, as mentioned in the previous para- graph, too large an input file will take too long to process and a time-out will occur. For this reason, the script includes code which splits the input tables into several smaller VOTable files, saves them, reads them into a list and performs the cross-match service on each file individually, returning several results files.

Written into the code is an option to define an integer, n, which is the number of rows each input catalogue sub-table will contain. The final sub-table does not need to equal n and can be any length less than n. In order to analysis the data all at once, the results files are then appended sequentially to give a full catalogues of the sources and their Gaia counterparts.

The Python Requests library is imported as advised in [3]. The CDS xMatch webpage is then specified as well as the search radius (distMaxArcsec), output format, the catalogue of potential counterparts, the column names of the coor- dinates and input file. There is also an option to return the nearest counterpart or all within the radius. As this process is designed to retrieve multiple images, all counterparts within the desired range are returned. In the code in appendix A, the maximum distance is given as 12 arcseconds. This value was chosen through a previous analysis of ideal matching parameters for eROSITA sources.

Fig. 11 shows two plots with the spread of distances between eROSITA sources and the ALLWISE catalogue. ALLWISE is is a comprehensive data release from the Wide-field Infrared Survey Explorer [30] [31]. The plot on the left shows the distribution of separations between best (nearest) matches and the eROSITA sources. Of course, it makes sense that at very large radii a counterpart would be found but a cut-off point is needed to ensure it is, in fact the same object.

The other plot in fig. 11 shows the separation distribution for all matches. It can be seen that 12” is a compromise chosen between always returning a coun- terpart and avoiding contamination from spurious sources. This is a parameter that can be altered in the code depending on the catalogue the researcher wishes to return.

4.2.2 Contamination by stars

The next section of the code reduces the data by removing sources likely to be stars rather than AGN. Binary stellar systems or chance alignment of foreground stars is a common contaminant when searching for multiply imaged QSOs. It is for this reason that the stars should be removed before attempting to catalogue close counterparts. The approach is twofold, firstly the ratio of X-ray to optical flux is used as AGN are vastly larger and more powerful, therefore will have a higher energy output and towards the high frequency end of the electromagnetic spectrum. In Maccacaro et al (1988) [17] the logarithmic X-ray to optical flux ratio is defined as:

log (fX/fV) = log fX+mV

2.5 + 5.37 (1)

Fig. 12 shows an nomograph, i.e. a visual representation of a mathemat- ical relationship. If a straight line is drawn between the object’s X-ray flux and its visual magnitude, it will pass through the central line at the value of log (fX/fV). The classifications are also shown on this nomograph going from

(14)

Figure 11: Top: Cumulative distribution of separations between eROSITA X- ray sources and their nearest ALLWISE infrared counterparts. At a separation of 12”, a counterpart is found in apporximately 90% of searches. Bottom: The distribution of separations between eROSITA X-ray sources and all ALLWISE counterparts. The peak at around 3” indicates the real counterparts and the upturn after about 10” is created by spurious matches. Credit: Dr. G. Lamer, The Leibniz Institute for Astrophysics Potsdam

(15)

Figure 12: Nomograph to compute the log (fX/fV), given the X-ray flux and the visual magnitude of a source. The correspondence between the various classes of X-ray sources and their typical log (fX/fV) is also indicated [17].

low X-ray luminosity stellar classes B-F to BL Lac Objects with much higher X-ray luminosities. The minimum value for a source to be classed as an AGN is given as log (fX/fV) = −1.5 and therefore this is the critical value used in the script to discard likely stellar sources.

The second approach is to use Gaia astrometry to discard nearby objects.

The astrometry parameters used, where available, are the proper motions and parallaxes of the sources. Proper motion refers to change in the observed posi- tion of a source and is measured in mas (milliarcsecond) per year in the Gaia catalogue [5]. There is an entry for the proper motion in the directions of right ascension and declination. Parallax describes the half angle displacement in apparent position of sources when viewed from two different points. For small angles the distance to the source in parsecs is the reciprocal of the parallax.

Diagrams of these measurements are shown in fig. 13.

For use in the selection process, the proper motions (in directions RA and Dec) and the parallaxes are first normalised by dividing by their given errors.

The parameter astrom param is then defined in the script as the sum of the square of each of the normalised parameters. In order to use astrometry to discard as many galactic stars as possible whilst retaining QSOs, some informa- tion but be known about the likely measurements for such objects. The QSOs will not be measured as having any proper motion or parallax, however, due to errors in measurement these value will not be exactly 0.0 but scatter around this point. As well as QSOs, distant galactic stars can also have an approximate (within the error margin) 0.0 consistent values for parallax and proper motion.

If the desired objects have each astrometry value below the 2σ limit, the limit- ing value for astrom param is 12 (22+ 22+ 22= 12) and those with a value

(16)

Figure 13: Diagrams of distance measures used in the Gaia catalogue. Top: the proper motion of a star across the celestial sphere from A to B along position angle θ. Bottom: stellar parallax p of a star when viewed at two different positions of Earth’s solar orbit. The small angle approximation is used to give d = p”1 pc

(17)

larger than this are removed. Another way of describing this is that the three error normalised parameters lie within a sphere of radius √

12 ≈ 3.46. These two steps should leave a catalogue of extra-galactic non-stellar sources and the reduction of the data to candidates for multiply imaged QSOs can proceed.

It should be noted that some sources do not have astrometry data available in their Gaia DR2 entries. In order for Gaia sources to have astrometry data several requirements must be met [12]. Firstly, the source must be observed at least five times and with at least six visibility periods (distinct observation group separated by four days or more). Then the noise and uncertainties in the measurement must be of a certain level. Furthermore the source must have a magnitude brighter than 21 in the G filter. If these stipulations are not met the source will have only coordinate information but no proper motion or parallax.

As there is a chance some of these sources are lensed QSOs, they are left in the catalogue for further inspection.

4.3 Gaia photometry

In addition to the flux ratio and astrometry parameter, Gaia colours for each source are also calculated by taking the difference between the mean source magnitudes in adjacent passbands. There are three passbands, G, GBP and GRP

as shown in fig. 14, and therefore two colours can be calculated; G − GRP and GBP − G. Although not used in the current iteration of the selection process, these could become useful for further refinement of the catalogues. Usually, when looking for multiple images from gravitational lensing, the images tend to have the same or similar colours. However, this is not a strict rule [28]. Effects such as intervening dust, contamination of the photometry by the lensing galaxy or a time delay between the observed radiation from the images could cause a colour shift. Therefore at this early stage of catalogue compilation, it is best not to discount too many candidates.

4.4 Removing isolated Gaia sources

The final step in the process is to select sources with close multiples as optical counterparts. This is achieved using the Astropy Python package. The first step is to group the Gaia counterparts by the eROSITA source that they are linked to. There is a ’group by’ function in Astropy which can be use to create an hierarchical structure where one can call up each group iteratively as well as each individual object. This is performed using the eROSITA DETUID column.

Once the catalogue is divided into groups these can be analysed individually.

If any group is of length one, it is marked with a ’1’ in a new groupsize column. Then the sky coordinate functionality of Astropy is used to mark the coordinate entries of each source as coordinates in the International Celestial Reference System (ICRS). Each Gaia source in the group is checked against the other sources in the group to return the nearest neighbouring source and the separation between them in arcseconds. If the separation is less than a certain angular distance, the object is labelled with ’-1’ in the groupsize column. If not, ’2’ is inserted- The current iteration of the code in appendix A uses 5” as an example radius. This is the approximate maximum separation of a point source lensed by a single galaxy [27]. This is another variable input parameter which can be altered to suit the researcher.

(18)

Figure 14: The coloured lines in the figure show the revised passbands for G, GBP and GRP (green: G; blue: GBP; red: GRP), defining the Gaia DR2 pho- tometric system. The thin, grey lines show the nominal, pre-launch passbands published in Jordi et al. 2010, used for Gaia DR1. Credits: ESA/Gaia/DPAC, P. Montegriffo, F. De Angeli, C. Cacciari

The objects with groupsize less than one are then removed and the remain- ing catalogue should be candidates for strongly lensed QSOs, ready for visual inspection. There is an optional line of code at this stage which can remover duplicate entries. However, if looking at images within the vicinity of each in- dividual eROSITA source this duplication is not a problem. The final result is then written to a comma separated values (CSV) file for further analysis.

5 Visual inspection of candidates

Having used the catalogue parameters to reduce the catalogue to viable ob- jects, this resultant catalogue could then be uploaded to TOPCAT and sent to Aladin, an interactive sky atlas where the user can inspect survey data at different sky coordinates. The survey that is most suited to this inspection is the Panoramic Survey Telescope and Rapid Response System (Pan-STARRS), an optical and near infrared survey which is located at Haleakala Observatory in Hawaii. This survey has good coverage in the area of interest and decent resolution for multiple image inspection. The Sloan Digital Sky Survey (SDSS) can also be employed, however data is not always available in this part of the sky.

As a check of the success of the candidate catalogue, TOPCAT is used to cross-match the CASTLES catalogue of 100 objects with the output file of 39,043 objects. When best match is stipulated and with a radius of 10”

(the maximum image separation of the catalogue according to [11]), the pairing function returns 13 objects which appear in both. The CASTLES catalogue of known lensed QSOs have only one set of coordinates per group of images so in reality, several of the Gaia sources will match one CASTLES object. Fig.

15 shows TOPCAT-generated sky maps of both the CASTLES catalogue and

(19)

Figure 15: A sky map generated by TOPCAT containing one hundred known gravitationally lensed QSOs from the CASTLES survey (blue circles) and the results of running the lensed QSO candidates selection algorithm on eROSITA X-ray sources (green points). Objects that appear in both catalogues are marked with red points. The two clumps of eROSITA sources seen in the plot on the right are the Large and Small Magellanic Clouds which have remained through- out the selection process due to their high density of stars in the Gaia catalogue and their large distance (not removed by the astrometry criterion).

the candidate catalogue from two different angles. The eROSITA sources are concentrated in the Southern half of the sky, with an empty section due to the galactic plane, whereas the CASTLES objects are more spread. Bearing this in mind, a return of a small amount of matching sources makes sense.

Looking at fig. 16 gives an idea of the kind of characteristics to look for when visually searching for lensed QSOs. In Wambsganss (1998) [28] several things t look for when searching for multiply imaged QSOs: there should be two or more point-like images with similar colours in the visual; the redshift should be almost exactly the same; the spectra should also be nearly identical; a lensing galaxy with a lower redshift is in the foreground; and any light curves for variable lensed objects should also match. With just optical photometry available, this reduces the checks to similar colours and a potential lens in the foreground.

The first object, fig. 16a, shows four distinct close images of similar colour.

The more images there are, the more likely the object is to be gravitationally lensed [28]. No lensing galaxy can be seen in the foreground. An example of a multiple image with the lensing galaxy clearly seen is shown in fig. 17. The second object, fig. 16b, shows three images, two of which fainter and perhaps a different colour. As discussed, ideally the images would all be the same colour but the path the light takes to the observer differs from image to image and the environment travelled through can alter this characteristic. Fig. 16c does not show the images as fully resolved but the bluer image on the right looks to be distorted. The redder image on the left may be the lensing galaxy.

As a final inspection of the results of the algorithm, some unconfirmed ob- jects will be selected for examination and discussion. Fig. 18 shows the Pan- STARRS optical data along with the coordinates of one of the Gaia sources in the group. Fig. 18a shows two blue sources observed through a red elliptical

(20)

(a) RA: 69.56 Dec: -12.29

(b) RA: 169.6 Dec: 7.766

(c) RA: 172.96487 Dec: -12.53271

Figure 16: Three confirmed lensed QSOs which appear in both the CASTLES survey and an output of the eROSITA lensed candidate selection process.

Figure 17: An example for the identification of the lensing galaxy in a double quasar system. The left panel shows an infrared (J -band) observation of the two images of double quasar HE 1104-1825 (zQ= 2.316, ∆θ = 3.2 arcsec). The right panel obtained with a deconvolution technique reveals the lensing galaxy (at zG

= 1.66) between the quasar images. Credit: European Southern Observatory, taken from [28].

(21)

(a) (b) (c)

(d) (e) (f)

Figure 18: Six objects from the results catalogue, viewed in Aladin with Pan- STARRS images.

galaxy in the foreground. The galactic bulge shows some saturation effects.

This could be a faint lensed images as they are of a similar colour and there is a galaxy in the foreground. Fig. 18b is a good candidate; it is a known QSO and the two images are very close and of similar optical colour. Fig 18c shows another very close pair of similar colour. Fig. 18d shows two object of similar colour close to each other but they look diffuse rather than point-like, suggesting that these are simply a pair of galaxies. Fig 18e shows two point-like sources in a galaxy cluster with what looks like a lensing galaxy in the foreground. Lastly, fig. 18f is another close pair with a blue optical colour and therefore another likely candidate.

6 Summary and conclusion

This report has described the method and tools used to refine a selection pro- cedure used on eROSITA sources. This process searches for potential multiple images (an observable indication of strong lensing) and will produce a list of viable candidates for new lensed QSOs. The algorithm looks at multiple Gaia optical counterparts which can be assigned to eROSITA X-ray sources, the ma- jority of which are expected to be AGN. Likely stars are filtered out through their logarithmic X-ray to optical flux ratio and Gaia astrometry. Due to Gaia’s higher resolution, potential multiple images within a given error radius of the eROSITA source can be examined more closely and those who have no neigh- bours within a given radius discarded. This leaves a catalogue of Gaia sources matched to eROSITA sources in groups of two or more with a given maximum separation.

(22)

The variable parameters when implementing this process are:

• n, the maximum size of the files the input file is split up into before being uploaded to CDS xMatch

• distMaxArcsec, the minimum radius in arcseconds of the area around eROSITA sources in which to search for Gaia counterparts

• The maximum separation allowed for a Gaia counterpart’s nearest neigh- bour (in function gaiamatch)

It can be seen where to input these values in the script in appendix A.

The output has been tested against the CASTLES catalogue of known lenses and overlaps, indicating the candidate list is feasible. However, the final cata- logue needs further inspection to narrow the list of potential lensed QSOs. This is realised through uploading the catalogue to Aladin via TOPCAT and visual inspection with Pan-STARRS or SDSS data where available. It is difficult to say for sure which candidates are indeed lensed point sources without redshift and spectral data, however an educated guess may be made by looking for char- acteristics typical of lensed QSOs. These characteristics are two or more close point sources of similar optical colours, ideally with a lensing foreground galaxy visible too. Some examples of optical images of the grouped counterparts are included and discussed in this report.

In conclusion, the original selection process has been improved by making sure manual input is not needed and all steps are automated in the script.

The different refining processes have also been consolidated into one piece of code and translated into Python, which is widely used in modern astronomy.

Depending on the type of research, the parameters can be altered according to the researcher’s wishes. This algorithm, when used on the slew of data coming from eROSITA now and over the course of the survey’s lifetime, should discard irrelevant objects in the search for new lensed QSOs. This narrows down the possibilities for lensing to a more manageable amount which can then be further reduced through visual inspection and additional data. Hopefully this will speed up the investigation and aid with the discovery of new lensing systems.

These can improve our understanding of the lensing systems themselves but also be used in a variety of research areas such as cosmology and high-redshift astronomy.

(23)

References

[1] S. Allen. MIME Sub-type Registrations for Flexible Image Transport Sys- tem (FITS). 2005.

[2] Volker Beckmann and Chris Shrader. Active Galactic Nuclei. John Wiley and Sons, Incorporated, Somerset, 2012. isbn: 9783527666812.

[3] T. Boch, F.-X Pineau, and S. Derriere. CDS xMatch service documenta- tion. 2016.

[4] Britzen, S. et al. “A cosmic collider: was the IceCube neutrino generated in a precessing jet-jet interaction in TXS 0506+056?” In: Astronomy and Astrophysics 630 (2019), A103. doi: 10.1051/0004- 6361/201935422.

url: https://doi.org/10.1051/0004-6361/201935422.

[5] Bradley W. Carrol and Dale A. Ostlie. An Introduction to Modern Astro- physics. 2007.

[6] Hong-Yee Chiu. “Gravitational Collapse”. In: Physics Today 17.5 (Jan.

1964), p. 21. doi: 10.1063/1.3051610.

[7] J. Cuadra, S. Nayakshin, and R. Sunyaev. “Bright stars and an optically thick inactive disk in Sgr A and other dormant galaxy centers”. In: As- tronomy and Astrophysics 411 (Dec. 2003), pp. 405–416. doi: 10.1051/

0004-6361:20031350. arXiv: astro-ph/0304533 [astro-ph].

[8] R. S. Ellis. “Gravitational lensing: a unique probe of dark matter and dark energy”. In: Philosophical Transactions of the Royal Society of London Series A 368.1914 (Feb. 2010), pp. 967–987. doi: 10.1098/rsta.2009.

0209.

[9] Max Planck Institute for Extraterrestrial Physics. eROSITA. 2020. url:

https://www.mpe.mpg.de/eROSITA.

[10] Max Planck Institute for Extraterrestrial Physics. Presskit for the eROSITA First All-Sky Survey. 2020. url: http://www.mpe.mpg.de/7461950/

erass1-presskit.

[11] Emilio Falco et al. About the CASTLe Survey. 2020. url: https://www.

cfa.harvard.edu/castles/about.html.

[12] Gaia Collaboration et al. “Gaia Data Release 2 - Summary of the contents and survey properties”. In: Astronomy and Astrophysics 616 (2018), A1.

doi: 10.1051/0004-6361/201833051. url: https://doi.org/10.1051/

0004-6361/201833051.

[13] Gaia Collaboration et al. “The Gaia mission”. In: Astronomy and Astro- physics 595, A1 (Nov. 2016), A1. doi: 10.1051/0004-6361/201629272.

arXiv: 1609.04153 [astro-ph.IM].

[14] Kazuhiro Hada et al. “Collimation, Acceleration, and Recollimation Shock in the Jet of Gamma-Ray Emitting Radio-loud Narrow-line Seyfert 1 Galaxy 1H 0323+342”. In: The Astrophysical Journal 860.2 (2018), p. 141.

doi: 10.3847/1538-4357/aac49f. arXiv: 1805.08299 [astro-ph.HE].

[15] Kelle. IDL vs. Python. 2009. url: https://www.astrobetter.com/blog/

2009/05/04/idl-vs-python/.

(24)

[16] C. S. Kochanek et al. “Results from the CASTLES survey of gravitational lenses”. In: The 9th astrophysics conference: After the dark ages, when galaxies were young (the Universe at 2¡Z¡5) (1999). doi: 10 . 1063 / 1 . 58598. url: http://dx.doi.org/10.1063/1.58598.

[17] Tommaso Maccacaro et al. “The X-Ray Spectra of the Extragalactic Sources in the Einstein Extended Medium-Sensitivity Survey”. In: The Astrophysical Journal 326 (Mar. 1988), p. 680. doi: 10.1086/166127.

[18] Massimo Meneghetti. Introduction to Gravitational Lensing. 2006.

[19] Yosuke Mizuno et al. “Recollimation Shocks in Magnetized Relativistic Jets”. In: The Astrophysical Journal 809.1 (2015), p. 38. doi: 10.1088/

0004-637x/809/1/38.

[20] NASA. What is a Lagrange Point? 2020. url: https://solarsystem.

nasa.gov/resources/754/what-is-a-lagrange-point/.

[21] Hagai Netzer. “Revisiting the Unified Model of Active Galactic Nuclei”.

In: Annual Review of Astronomy and Astrophysics 53.1 (2015), pp. 365–

408. doi: 10.1146/annurev-astro-082214-122302.

[22] F. Ochsenbein, P. Bauer, and J. Marcout. “The VizieR database of as- tronomical catalogues”. In: Astronomy and Astrophysics Supplement Se- ries 143.1 (Apr. 2000), pp. 23–32. issn: 1286-4846. doi: 10.1051/aas:

2000169. url: http://dx.doi.org/10.1051/aas:2000169.

[23] B. M. Peterson. An Introduction to Active Galactic Nuclei. Cambridge University Press, 1997.

[24] P. Predehl et al. “eROSITA”. In: Martin J.L. Turner, G¨unther Hasinger:

Space Telescopes and Instrumentation II: Ultraviolet to Gamma Ray, The International Society for Optical Engineering, 62660P-1-62660P-10 (2006) 6266 (June 2006). doi: 10.1117/12.670249.

[25] David Robinson. The Incredible Growth of Python. 2017. url: https : //stackoverflow.blog/2017/09/06/incredible-growth-python/.

[26] Mike Schienle. IDL FAQ. 1991. url: https://faculty.virginia.edu/

rwoclass/astr511/IDLresources/idl-faq-ivsoft-v4.html.

[27] Peter Schneider. Extragalactic Astronomy and Cosmology: An Introduc- tion. 2006.

[28] Joachim Wambsganss. “Gravitational Lensing in Astronomy”. In: Living Reviews in Relativity 1.1 (Nov. 1998). issn: 1433-8351. doi: 10.12942/

lrr-1998-12. url: http://dx.doi.org/10.12942/lrr-1998-12.

[29] Kenneth C Wong et al. “H0LiCOW XIII. A 2.4% measurement of H0from lensed quasars: 5.3σ tension between early and late-Universe probes”. In:

Monthly Notices of the Royal Astronomical Society (June 2020). issn:

1365-2966. doi: 10.1093/mnras/stz3094. url: http://dx.doi.org/10.

1093/mnras/stz3094.

[30] Edward L. Wright et al. “THE FIRST ALLWISE PROPER MOTION DISCOVERY: WISEA J070720.50+170532.7”. In: The Astronomical Jour- nal 147.3 (Feb. 2014), p. 61. issn: 1538-3881. doi: 10.1088/0004-6256/

147/3/61. url: http://dx.doi.org/10.1088/0004-6256/147/3/61.

(25)

[31] Edward L. Wright et al. “THE WIDE-FIELD INFRARED SURVEY EXPLORER (WISE): MISSION DESCRIPTION AND INITIAL ON- ORBIT PERFORMANCE”. In: The Astronomical Journal 140.6 (Nov.

2010), pp. 1868–1881. issn: 1538-3881. doi: 10.1088/0004-6256/140/6/

1868. url: http://dx.doi.org/10.1088/0004-6256/140/6/1868.

[32] Erik Zackrisson. Physics of Galaxies 2019, Lecture 7: Groups, clusters and lensing. 2019.

A Python code

1 i m p o r t r e q u e s t s

2 i m p o r t p a n d a s as pd

3 i m p o r t n u m p y as np

4 f r o m a s t r o p y . t a b l e i m p o r t unique , Table , C o l u m n

5 f r o m a s t r o p y . c o o r d i n a t e s i m p o r t S k y C o o r d , m a t c h _ c o o r d i n a t e s _ s k y

6 i m p o r t a s t r o p y . u n i t s as u

7 f r o m a s t r o p y . io i m p o r t a s c i i

8 f r o m a s t r o p y . io . v o t a b l e i m p o r t parse , f r o m _ t a b l e , w r i t e t o

9 i m p o r t m a t h

10 i m p o r t g l o b

11

12 def v o t a b l e _ t o _ p a n d a s ( v o t a b l e _ f i l e ) : # f u n c t i o n t h a t r e a d s in V O T a b l e and c o n v e r t s to p a n d a s d a t a f r a m e

13 v o t a b l e = p a r s e ( v o t a b l e _ f i l e )

14 t a b l e = v o t a b l e . g e t _ f i r s t _ t a b l e () . t o _ t a b l e ( u s e _ n a m e s _ o v e r _ i d s = T r u e )

15 r e t u r n t a b l e . t o _ p a n d a s ()

16

17 d a t a = v o t a b l e _ t o _ p a n d a s (" / h o m e / r o i s i n / g r a v l e n s / d a t a /

e r a s s 1 _ 2 0 0 6 1 5 _ c o r r _ m p e _ l a t 2 0 _ s h o r t _ v 3 . vot ") # p e r f o r m f u n c t i o n on i n p u t f i l e

18

19 n = 1 0 0 0 0 0 # d e f i n e c h u n k s i z e

20

21 if len ( d a t a ) > n : # t a k e s the m a x i m u m

a m o u n t of n - s i z e d c h u n k s and s a v e s as V O T a b l e s

22 for m in r a n g e ( m a t h .f l o o r( len ( d a t a ) / n ) ) :

23 c h u n k = d a t a [0: n ]

24 c h u n k = T a b l e . f r o m _ p a n d a s ( c h u n k )

25

26 d a t a = d a t a . d r o p ( d a t a . i n d e x [0: n ])

27

28 v o t a b l e = f r o m _ t a b l e ( c h u n k )

29 w r i t e t o ( votable , ’ s i z e d _ d a t a / i n p u t ’ + str ( m ) + ’ . vot ’)

30

31 r e m a i n d e r = d a t a # t a k e the r e m a i n d i n g

r o w s and s a v e as f i n a l V O T a b l e

32 r e m a i n d e r = T a b l e . f r o m _ p a n d a s ( r e m a i n d e r )

33 v o t a b l e = f r o m _ t a b l e ( r e m a i n d e r )

34 w r i t e t o ( votable , ’ s i z e d _ d a t a / i n p u t _ e n d . vot ’)

35

36 i n p u t _ f i l e s = ( g l o b . g l o b (’ s i z e d _ d a t a / i n p u t *. vot ’) ) # r e a d all i n p u t f i l e s i n t o a l i s t

37

38 for a , i n p u t _ f i l e in e n u m e r a t e ( i n p u t _ f i l e s ) : # i t e r a t e t h r o u g h i n p u t f i l e s and p e r f o r m CDS X m a t c h f u n c t i o n

39 r = r e q u e s t s . p o s t (’ h t t p :// c d s x m a t c h . u - s t r a s b g . fr / x m a t c h / api / v1 / s y n c ’, d a t a = {’ r e q u e s t ’: ’ x m a t c h ’, ’ d i s t M a x A r c s e c ’: 12 , R E S P O N S E F O R M A T ’: ’ csv ’, ’ c a t 2 ’: ’ v i z i e r : I / 3 4 5 / g a i a 2 ’, ’ c o l R A 1 ’:

(26)

’ R A _ C O R R ’, ’ c o l D e c 1 ’: ’ D E C _ C O R R ’, ’ s e l e c t i o n ’: ’ all ’} , f i l e s = {’ c a t 1 ’: o p e n ( i n p u t _ f i l e , ’ r ’) })

40

41 h = o p e n (’ r e s u l t s / r e s u l t s ’ + str ( a ) + ’ . csv ’, ’ w ’) # s a v e r e s u l t s f i l e s

42 h . w r i t e ( r .t e x t)

43 h .c l o s e()

44

45 r e s u l t _ f i l e s = ( g l o b . g l o b (’ r e s u l t s / r e s u l t s *. csv ’) ) # r e a d r e s u l t s f i l e s i n t o a l i s t

46 cat = pd . D a t a F r a m e () # e m p t y p a n d a s

d a t a f r a m e to a p p e n d r e s u l t s to

47

48 for b , r e s u l t in e n u m e r a t e ( r e s u l t _ f i l e s ) : # i t e r a t e t h r o u g h r e s u l t s f i l e s

49 d a t a = pd . r e a d _ c s v ( r e s u l t ) # c r e a t e p a n d a s

df f r o m e a c h r e s u l t s f i l e

50 cat = cat . a p p e n d ( d a t a ) # a p p e n d e a c h

d a t a f r a m e one by one to the c a t a l o g u e d a t a f r a m e

51

52 # b e g i n m a n i p u l a t i n g c a t a l o g u e d a t a

53

54 # c a l c u l a t e l o g a r i t h m i c X - ray to o p t i c a l f l u x r a t i o " f x _ f o p t " ( d e f i n i t i o n by M a c c a c a r o et al 1 9 8 8 )

55 cat [’ f x _ f o p t ’] = np .l o g 1 0( cat [’ M L _ F L U X _ 0 ’]) + cat [’ p h o t _ g _ m e a n _ m a g ’ ] / 2 . 5 + 5 . 3 7

56

57 # c a l c u l a t e G A I A c o l o u r s

58 cat [’ g _ g m r ’] = cat [’ p h o t _ g _ m e a n _ m a g ’] - cat [’ p h o t _ r p _ m e a n _ m a g ’ ]

59 cat [’ g _ b m g ’] = cat [’ p h o t _ b p _ m e a n _ m a g ’] - cat [’ p h o t _ g _ m e a n _ m a g ’ ]

60

61 # c a l c u l a t e e r r o r n o r m a l i z e d p r o p e r m o t i o n s and p a r a l l a x e s

62 cat [’ p m r _ n o r m ’] = cat [’ p m r a ’]/ cat [’ p m r a _ e r r o r ’]

63 cat [’ p m d _ n o r m ’] = cat [’ p m d e c ’]/ cat [’ p m d e c _ e r r o r ’]

64 cat [’ p l x _ n o r m ’] = cat [’ p a r a l l a x ’]/ cat [’ p a r a l l a x _ e r r o r ’]

65

66 # M e r g e the n o r m a l i z e d v a l u e s i n t o p a r a m t e r " a s t r o m _ p a r a m "

67 cat [’ a s t r o m _ p a r a m ’] = ( cat [’ p m r _ n o r m ’]) **2 + ( cat [’ p m d _ n o r m ’]) **2 + ( cat [’ p l x _ n o r m ’]) **2

68

69 # R e m o v e l i k e l y s t a r s u s i n g f x _ f o p t

70 r e m o v e _ s t a r s 1 = cat [’ f x _ f o p t ’] > -1.5

71 cat = cat [ r e m o v e _ s t a r s 1 ]

72

73 cat = cat . f i l l n a (0) # R e p l a c e e m p t y

a s t r o m _ p a r a m c e l l s w i t h 0

74

75 cat = T a b l e . f r o m _ p a n d a s ( cat ) # c o n v e r t to a s t r o p y t a b l e

76

77 for h in r a n g e ( len ( cat ) ) :

78 if cat [’ a s t r o m _ p a r a m ’][ h ] == 0: # p a s s o v e r n u l l v a l u e a s t r o m _ p a r a m c e l l s

79 p a s s

80 e l i f cat [’ a s t r o m _ p a r a m ’][ h ] > 1 2 . 0 : # m a r k a s t r o m _ p a r a m c e l l s u n d e r 12

81 cat [’ a s t r o m _ p a r a m ’][ h ] = 999

82

83 r e m o v e _ s t a r s 2 = cat [’ a s t r o m _ p a r a m ’] != 999 # r e m o v e a s t r o m _ p a r a m c e l l s u n d e r 12

(27)

84 cat = cat [ r e m o v e _ s t a r s 2 ]

85

86 cat [’ g r o u p s i z e ’] = 0 # a d d i t i o n a l c o l u m n s a d d e d to m a r k g r o u p s i z e and c l o s e s t d i s t a n c e

87 cat [’ n e a r d i s t ’] = 0.0

88

89 c a t _ b y _ d e t u i d = cat . g r o u p _ b y (’ D E T U I D ’) # c o p y of cat w h e r e d a t a is g r o u p e d by e R O S I T A D E T U I D

90

91 def g a i a m a t c h ( g r o u p ) : # d e f i n e f u n c t i o n to m a r k o b j e c t s w w i t h no n e i g h b o u r s w i t h i n 5"

92 if len ( g r o u p ) == 1:

93 g r o u p [’ g r o u p s i z e ’] = 1 # m a r k o b j e c t s in one o b j e c t g r o u p s

94 e l s e:

95 for s in r a n g e ( len ( g r o u p ) ) :

96 c = S k y C o o r d ( g r o u p [ s ][’ r a _ e p o c h 2 0 0 0 ’]* u . degree , g r o u p [ s ][’ d e c _ e p o c h 2 0 0 0 ’]* u . degree , f r a m e =’ i c r s ’)

97 g r o u p c o o r d s = S k y C o o r d ( g r o u p [’ r a _ e p o c h 2 0 0 0 ’]* u . degree , g r o u p [’ d e c _ e p o c h 2 0 0 0 ’]* u . degree , f r a m e =’ i c r s ’)

98 idx , sep2d , d i s t 3 d = m a t c h _ c o o r d i n a t e s _ s k y ( c , g r o u p c o o r d s , n t h n e i g h b o r = 2)

99 if s e p 2 d . a r c s e c o n d > 5:

100 g r o u p [ s ][’ g r o u p s i z e ’] = -1 # m a r k o b j e c t s w i t h no o t h e r o b j e c t s in a 5" r a d i u s

101 g r o u p [ s ][’ n e a r d i s t ’] = s e p 2 d . a r c s e c o n d

102 e l s e:

103 g r o u p [ s ][’ g r o u p s i z e ’] = 2

104 g r o u p [ s ][’ n e a r d i s t ’] = s e p 2 d . a r c s e c o n d

105 r e t u r n g r o u p

106

107 for j in r a n g e ( len ( c a t _ b y _ d e t u i d . g r o u p s ) ) :

108 g a i a m a t c h ( c a t _ b y _ d e t u i d . g r o u p s [ j ]) # i m p l e m e n t f u n c t i o n on all g r o u p s

109

110 r e m o v e _ o b j s = c a t _ b y _ d e t u i d [’ g r o u p s i z e ’] > 1 # c r e a t e b o o l e a n m a s k

111 c a t _ b y _ d e t u i d = c a t _ b y _ d e t u i d [ r e m o v e _ o b j s ] # use m a s k to r e m o v e m a r k e d o b j e c t s

112 cat = c a t _ b y _ d e t u i d # r e d e f i n e c a t a l o g u e

113

114 # cat = u n i q u e ( cat , k e y s = ’ s o u r c e _ i d ’) # r e m o v e d u p l i c a t e s u s i n g G A I A s o u r c e _ i d

115

116 a s c i i . w r i t e ( cat , ’ c a n d i d a t e s . csv ’, f o r m a t = ’ csv ’, o v e r w r i t e = T r u e ) # w r i t e a s t r o p y t a b l e to f i l e

References

Related documents

The successful application of the phase referencing tech- nique to the source 1422+202 allowed the detection of two components with absolute positions, relative to OQ 208,

Just like the personal experience, which never forms itself in a linear way but rather consists of different parts or wanderings here and there that correspond to each other, the

Auster Paul, Orakelnatten, översättning Ulla Roseen, Månpocket Albert Bonniers Förlag, 2006 Auster Paul, ”Vita rymder”, Kris Nr 43–44, 1991 Benesch Henric, Kroppar under

Till exempel kan en metod som leder till en dialogisk situation, hämtad från konsten, vara den metod som lämpar sig bäst för att påstå något om påståendet ”the sky

nificant event.’ With the only historical osteological remains of the blue antelope represented by the skull frag- ments in Leiden, the horns in Uppsala, and some phalanges within

Supplementary Figure S9 The cranium and mandible of a male specimen formerly labeled as blue antelope (ZMB MAM 8860) from the Mammal Collection of the Museum für Naturkunde,

The analysis of responsibilities of senior software product managers and soft- ware product managers revealed that senior product managers tend to be respon- sible for the

Distribution of number of SDSS photometry epochs for confirmed SNe of all types (dashed) and for SNe Ia (solid) for the 2005 and 2006 seasons, based on the on-mountain