Site Map

Matching photometry and spectra.

Introduction

This page details how we determine which photometric objects match each spectrum. This task is nontrivial because the original runs used to target the SDSS spectra differs in many areas from the "primary" runs covering thus areas in the final data set. Even in those cases where the primary and targeting runs were the same, the photometric data has since been reanalyzed, and object detections and identifier have changed.

There are two versions of matching photometry for each spectrum: a positional match within 2 arcsec, and a flux-based match that tells you which object contributed the most light to the spectrum. These two matches differ about 0.5% of the time.

Position-based matches are stored in the spectroscopic catalog as origobjid, and are most appropriate for spectrophotometry. Flux-based matches are stored as bestobjid (the usual default), and are superior if you primarily want redshifts; in particular, they recover a number of nearby galaxy much better than the position-based match.

If you know for a fact that the spectrum you are interested in is of a point source (e.g. it is a star), then the position-based matches are sufficient; that is, in such cases, the flux-based match is unlikely to be appropriate. However, in such cases, if the position-based match and flux-based match disagree (origobjid!=bestobjid) then with great certainty the photometry and astrometry of the position-based match is incorrect and should be used with great caution.

Position-based matches

Position-based matches are best to use if you are primarily interested in the fiber fluxes, for example for spectrophotometry. In addition, if you are certain that your sources of interest are point sources, the position-based match may be of interest (though take great care if it differs from the flux-based match).

The position-based match simply finds the primary photometric object closest to the location of the spectrum within 2 arcsec. Note that for some number of objects, there is no such match (either the target object does not exist in the latest version of the imaging at that location, or the original target was a "sky" fiber).

In the flatfiles, the information about this match is stored in the photoMatchPlate file (in the columns labeled with "orig"), and the detailed photometric information compiled in the photoPosPlate file.

In the CAS database, the objid of the position-matched photometric object is stored in origobjid in the specObj tables.

Flux-based matches

The flux-based match is usually appropriate and typically more accurate for large, nearby galaxies. In particular, the latest photometric pipeline version deblends parent objects into children differently than the version used for targeting. Therefore, the spectrum we took of a galaxy might be significantly away from the location that we now deem to be the "center." The "flux-based" matches recover many such cases.

The flux-based match is determined as follows:

About 0.5% of all spectra have flux-based matches that differ from the position-based matches. Typically, half of these are cases where the photometry is irretreivably bad in some way (such as a long satellite trail or airplane). The other half are cases where by-eye the flux-based match appears more appropriate; that is, where the redshift of the spectrum should be associated with the flux-based match in the photometric catalog.

In the flatfiles, the information about the flux-based match is stored in the photoMatchPlate file, and the detailed photometric information compiled in the photoPlate file.

In the CAS database, the objid of the flux-based matched photometric object is stored in bestobjid in the specObj tables.

Examples

Below are shown two illustrative examples, one (A) a "success" of the flux-based matching, and the other (B) a "failure".

In Example A, we targeted the HII region of a nearby galaxy (marked with a red star at center). This spectrum matched a detected object in the final photometric catalog within 2 arcsec, yielding a position-based match (marked with a blue cross). However, most of the light at that location is actually contributed by the galaxy as a whole, in particular the child whose center is shown as the green box. Thus, the "flux-based" match is to the child that basically corresponds best to the galaxy, and this is normally the match one would want. (Of course, sometimes you actually do just want the position-based match, which we therefore also provide.

In Example B, we targeted a galaxy (marked with a red star at center) that happens to be close to a very bright star. The position-based match correctly finds the match in the final photometric catalog. Because photo's deblender can misbehave in cases like this, most of the light from this galaxy is actually assigned to the bright star, not to the galaxy. Thus, the flux-based match is to the bright star, which is not appropriate. However, in cases such as this, the position-based match is of limited use in any case, because the photometry of the galaxy in question is clearly highly flawed.

Other cases exist where the flux-based match does unexpected things (such as for passing satellites accidentally targeted for spectroscopy). In most such cases, achieving a meaningful and scientifically useful match to a quality photometric object is in fact impossible.

Example A Example B
Flux-based Success Flux-based Failure