Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: None
-
Labels:
-
Story Points:10
-
Epic Link:
-
Sprint:DB_S17_12, DB_S17_01
-
Team:Data Access and Database
Description
It is desirable to retrieve images by their identifiers for calexps, deepCoadd, and raw images.
Attachments
Issue Links
- mentioned in
-
Page Loading...
Most of the work for locating images by the ids used by the butler to locate the files has been done in
DM-7494. KT has provided the following formulas for breaking a single number into the individual components.field = ccdExposureId % 10000
camcol = (ccdExposureId//10000)%10
filterName = "ugriz"[(ccdExposureId//100000)%10]
run = ccdExposureId//1000000
patchY = coaddExposureId%(2**13)
patchX = (coaddExposureId//(2*13))%(2*13)
tract = coaddExposureId//(2**26)
patch = "%d,%d" % (patchX, patchY)