Skip to content

Commit

Permalink
Update portal-intro.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
Madejski authored Dec 17, 2024
1 parent f824913 commit 65f7817
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions data-access-analysis-tools/portal-intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Determining the ``diaObjectId`` can be accomplished via the Portal Aspect of th
Only the spatial constraints need to be entered on the left, with the 62.1479038, -35.7991348 - and a 2 arcseconds radius using the "cone Shape" ("Temporal" constraints button needs to be unchecked).
For the "Output Column Selection" only the ``diaObjectId`` and ``gPSFluxNdata`` need to be checked.
(The ``gPSFluxNdata`` will return the number of observations in the ``g`` band, and if there are multiple objects in the search radius - the one with a larger mumber of data points needs to be selected.)
Pressing the "search" button will return two ``diaObjectId``. The one with a larger number of data points is 1651589610221862935.
Pressing the "search" button will return a few ``diaObjectId`` values. The one with a larger number of data points is 1651589610221862935.

The ``ForcedSourceOnDiaObject`` contains fluxes of individual objects, but it does not contain the observation epochs; however, the table ``CcdVisit`` does.
Obtaining the visit epochs will require joining two tables - specifically ``ForcedSourceOnDiaObject`` and ``CcdVisit`` on the common meta entry of ``ccdVisitId``.
Expand All @@ -53,13 +53,12 @@ Again, the exposure time midpoint modified julian date for all visits is extract
SELECT fsodo.coord_ra, fsodo.coord_dec,
fsodo.diaObjectId, fsodo.ccdVisitId, fsodo.band,
fsodo.psfDiffFlux, fsodo.psfFlux, fsodo.psfDiffFluxErr,
fsodo.psfFlux, fsodo.psfFluxErr,
cv.expMidptMJD
FROM dp02_dc2_catalogs.ForcedSourceOnDiaObject as fsodo
JOIN dp02_dc2_catalogs.CcdVisit as cv
ON cv.ccdVisitId = fsodo.ccdVisitId
WHERE fsodo.diaObjectId = 125222059873455621
AND fsodo.band = 'i'
WHERE fsodo.diaObjectId = 1651589610221862935
**Note:** The ``ForcedSourceOnDiaObject`` table contains forced photometry on both the difference image, ``psfDiffFlux``, and the processed visit image (PVI; "direct" image), ``psfFlux``.
Both are extracted via the query above.
Expand Down

0 comments on commit 65f7817

Please sign in to comment.