In [1]:
from lsst.daf.butler import Butler

In [2]:
butler = Butler("/project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA", collection="shared/ci_hsc_output")

In [183]:
butler.registry.getAllCollections()


Out[183]:
{'calib/hsc',
 'masks/hsc',
 'raw/hsc',
 'ref_cats',
 'shared/ci_hsc_output',
 'skymaps'}

The API is very similar to the Gen2. We can butler.get with a dict of data IDs like before


In [184]:
exp = butler.get("calexp", {"visit":903334, "detector":22, "instrument":"HSC"})
print(exp.getWcs())
wcs = butler.get("calexp.wcs", {"visit":903334, "detector":22, "instrument":"HSC"})
print(wcs)
vinfo = butler.get("calexp.visitInfo", {"visit":903334, "detector":22, "instrument":"HSC"})
print(vinfo)


FITS standard SkyWcs:
Sky Origin: (320.921403, -0.286257)
Pixel Origin: (934.627, 2742.18)
Pixel Scale: 0.158394 arcsec/pixel
FITS standard SkyWcs:
Sky Origin: (320.921403, -0.286257)
Pixel Origin: (934.627, 2742.18)
Pixel Scale: 0.158394 arcsec/pixel
VisitInfo(exposureId=180666822, exposureTime=30, darkTime=30, date=2013-06-17T13:29:27.267000000, UT1=nan, ERA=1.88512 rad, boresightRaDec=(320.249933, +0.000019), boresightAzAlt=(157.958889, +68.807106), boresightAirmass=1.07239, boresightRotAngle=4.71239 rad, rotType=1, observatory=-155.477W, 19.8256N  4139, weather=Weather(0.6, 62130, 72.5))

We can get all data IDs/Dimensions. Note that ref.dataId is no longer a simple dict; it's a ExpandedDataCoordinate


In [185]:
for ref in butler.registry.queryDatasets("calexp", collections=['shared/ci_hsc_output']):
    print(ref.dataId)


{'instrument': 'HSC', 'detector': 22, 'visit': 903334}
{'instrument': 'HSC', 'detector': 16, 'visit': 903334}
{'instrument': 'HSC', 'detector': 16, 'visit': 903986}
{'instrument': 'HSC', 'detector': 5, 'visit': 903344}
{'instrument': 'HSC', 'detector': 10, 'visit': 904010}
{'instrument': 'HSC', 'detector': 100, 'visit': 904010}
{'instrument': 'HSC', 'detector': 16, 'visit': 903988}
{'instrument': 'HSC', 'detector': 100, 'visit': 903986}
{'instrument': 'HSC', 'detector': 23, 'visit': 903986}
{'instrument': 'HSC', 'detector': 100, 'visit': 903334}
{'instrument': 'HSC', 'detector': 18, 'visit': 903338}
{'instrument': 'HSC', 'detector': 12, 'visit': 903346}
{'instrument': 'HSC', 'detector': 6, 'visit': 903346}
{'instrument': 'HSC', 'detector': 4, 'visit': 903342}
{'instrument': 'HSC', 'detector': 17, 'visit': 903336}
{'instrument': 'HSC', 'detector': 6, 'visit': 904014}
{'instrument': 'HSC', 'detector': 4, 'visit': 904010}
{'instrument': 'HSC', 'detector': 0, 'visit': 903344}
{'instrument': 'HSC', 'detector': 24, 'visit': 903336}
{'instrument': 'HSC', 'detector': 1, 'visit': 904014}
{'instrument': 'HSC', 'detector': 24, 'visit': 903988}
{'instrument': 'HSC', 'detector': 1, 'visit': 903346}
{'instrument': 'HSC', 'detector': 23, 'visit': 903334}
{'instrument': 'HSC', 'detector': 100, 'visit': 903342}
{'instrument': 'HSC', 'detector': 25, 'visit': 903990}
{'instrument': 'HSC', 'detector': 25, 'visit': 903338}
{'instrument': 'HSC', 'detector': 11, 'visit': 903344}
{'instrument': 'HSC', 'detector': 10, 'visit': 903342}
{'instrument': 'HSC', 'detector': 22, 'visit': 903986}
{'instrument': 'HSC', 'detector': 18, 'visit': 903990}
{'instrument': 'HSC', 'detector': 17, 'visit': 903988}
{'instrument': 'HSC', 'detector': 23, 'visit': 903988}
{'instrument': 'HSC', 'detector': 12, 'visit': 904014}

In Gen3, we can also get the WCS and the file URI without dumping the images as Python objects, for example


In [191]:
for ref in butler.registry.queryDatasets("calexp.wcs", collections=['shared/ci_hsc_output']):
    wcs = butler.get(ref)
    uri = butler.datastore.getUri(ref)
    print("calexp has ", wcs, "\nand the file is at \n", uri)


calexp has  FITS standard SkyWcs:
Sky Origin: (320.921403, -0.286257)
Pixel Origin: (934.627, 2742.18)
Pixel Scale: 0.158394 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903334/calexp_r_HSC-R_903334_22_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.746067, -0.390681)
Pixel Origin: (1033.9, 2212.6)
Pixel Scale: 0.161463 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903334/calexp_r_HSC-R_903334_16_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.745734, -0.391748)
Pixel Origin: (1049.18, 2208.14)
Pixel Scale: 0.16141 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/903986/calexp_i_HSC-I_903986_16_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.801904, -0.331817)
Pixel Origin: (1074.12, 1999.91)
Pixel Scale: 0.160804 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903344/calexp_r_HSC-R_903344_5_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.751343, -0.232759)
Pixel Origin: (1066.8, 1924.27)
Pixel Scale: 0.159492 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/904010/calexp_i_HSC-I_904010_10_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.892422, -0.149188)
Pixel Origin: (845.16, 1288.51)
Pixel Scale: 0.157358 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/904010/calexp_i_HSC-I_904010_100_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.996760, -0.389738)
Pixel Origin: (1005.37, 2186.65)
Pixel Scale: 0.161441 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/903988/calexp_i_HSC-I_903988_16_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.888502, -0.400388)
Pixel Origin: (756.674, 1295.04)
Pixel Scale: 0.157471 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/903986/calexp_i_HSC-I_903986_100_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.746671, -0.292526)
Pixel Origin: (983.796, 2227.91)
Pixel Scale: 0.162814 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/903986/calexp_i_HSC-I_903986_23_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.886619, -0.403896)
Pixel Origin: (703.182, 1381.66)
Pixel Scale: 0.157489 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903334/calexp_r_HSC-R_903334_100_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.835930, -0.393335)
Pixel Origin: (981.693, 2216.5)
Pixel Scale: 0.166058 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903338/calexp_r_HSC-R_903338_18_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.852488, -0.239197)
Pixel Origin: (1080.38, 2104.3)
Pixel Scale: 0.164449 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903346/calexp_r_HSC-R_903346_12_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.849890, -0.336568)
Pixel Origin: (1026.55, 2057.72)
Pixel Scale: 0.162401 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903346/calexp_r_HSC-R_903346_6_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.730394, -0.320637)
Pixel Origin: (1216.98, 1505.3)
Pixel Scale: 0.157811 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903342/calexp_r_HSC-R_903342_4_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.795021, -0.394790)
Pixel Origin: (1049.61, 2168.61)
Pixel Scale: 0.164592 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903336/calexp_r_HSC-R_903336_17_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.849897, -0.336957)
Pixel Origin: (1003.25, 2064.85)
Pixel Scale: 0.162343 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/904014/calexp_i_HSC-I_904014_6_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.729727, -0.320569)
Pixel Origin: (1206.33, 1500.6)
Pixel Scale: 0.157779 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/904010/calexp_i_HSC-I_904010_4_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.793194, -0.416102)
Pixel Origin: (1265.16, 1850.09)
Pixel Scale: 0.158475 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903344/calexp_r_HSC-R_903344_0_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.795999, -0.294760)
Pixel Origin: (988.524, 2170.39)
Pixel Scale: 0.165818 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903336/calexp_r_HSC-R_903336_24_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.846793, -0.426530)
Pixel Origin: (1078.9, 2013.84)
Pixel Scale: 0.159901 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/904014/calexp_i_HSC-I_904014_1_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.796721, -0.294347)
Pixel Origin: (972.43, 2145.88)
Pixel Scale: 0.165791 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/903988/calexp_i_HSC-I_903988_24_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.846452, -0.425738)
Pixel Origin: (1112.67, 1998.76)
Pixel Scale: 0.159978 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903346/calexp_r_HSC-R_903346_1_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.746593, -0.291777)
Pixel Origin: (976.113, 2240.56)
Pixel Scale: 0.162855 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903334/calexp_r_HSC-R_903334_23_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.891766, -0.150806)
Pixel Origin: (820.366, 1313.48)
Pixel Scale: 0.15739 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903342/calexp_r_HSC-R_903342_100_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.835942, -0.296470)
Pixel Origin: (996.631, 2212.95)
Pixel Scale: 0.167161 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/903990/calexp_i_HSC-I_903990_25_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.837474, -0.296213)
Pixel Origin: (995.374, 2186.89)
Pixel Scale: 0.167184 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903338/calexp_r_HSC-R_903338_25_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.807261, -0.237807)
Pixel Origin: (1063.31, 2077.54)
Pixel Scale: 0.162838 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903344/calexp_r_HSC-R_903344_11_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.751540, -0.233835)
Pixel Origin: (1054.39, 1919.33)
Pixel Scale: 0.159532 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903342/calexp_r_HSC-R_903342_10_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.921055, -0.285706)
Pixel Origin: (912.244, 2738.79)
Pixel Scale: 0.158366 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/903986/calexp_i_HSC-I_903986_22_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.836451, -0.393474)
Pixel Origin: (980.945, 2197.73)
Pixel Scale: 0.166016 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/903990/calexp_i_HSC-I_903990_18_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.796197, -0.394794)
Pixel Origin: (1043.19, 2133.27)
Pixel Scale: 0.164532 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/903988/calexp_i_HSC-I_903988_17_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.998146, -0.294462)
Pixel Origin: (1027.25, 2194.58)
Pixel Scale: 0.162767 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/903988/calexp_i_HSC-I_903988_23_HSC_7.fits
calexp has  FITS standard SkyWcs:
Sky Origin: (320.852769, -0.239087)
Pixel Origin: (1069.02, 2116.78)
Pixel Scale: 0.164394 arcsec/pixel 
and the file is at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/904014/calexp_i_HSC-I_904014_12_HSC_7.fits

With the DatasetRef, we may also use butler.getDirect


In [187]:
rows = butler.registry.queryDatasets("calexp", collections=['shared/ci_hsc_output'])
ref = list(rows)[0]  # Just to get the first DatasetRef
exp = butler.getDirect(ref)
exp.getWcs()


Out[187]:
FITS standard SkyWcs:
Sky Origin: (320.921403, -0.286257)
Pixel Origin: (934.627, 2742.18)
Pixel Scale: 0.158394 arcsec/pixel

In [ ]:


In [ ]:


In [3]:
import lsst.geom as geom

In [4]:
for ref in butler.registry.queryDatasets("calexp", collections=['shared/ci_hsc_output']):#, where="detector = 22"):
    uri = butler.datastore.getUri(ref)
    print("==== For the file of ", ref.dataId, "at \n", uri)
    exp = butler.getDirect(ref)
    wcs = exp.getWcs()

    print("dimensions:", exp.getDimensions())
    print("pixel scale:", wcs.getPixelScale().asArcseconds())
    
    imageBox = geom.Box2D(exp.getBBox())
    corners = [wcs.pixelToSky(pix) for pix in imageBox.getCorners()]
    imageCenter = wcs.pixelToSky(imageBox.getCenter())
    
    print("ra and dec for the center:", imageCenter.getRa().asDegrees(), imageCenter.getDec().asDegrees())
    print("ra and dec for the corners:")
    [print(corner) for corner in corners]


==== For the file of  {'instrument': 'HSC', 'detector': 22, 'visit': 903334} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903334/calexp_r_HSC-R_903334_22_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.15839415126949158
ra and dec for the center: 320.94931370489684 -0.28952700960859995
ra and dec for the corners:
(321.038074, -0.241236)
(321.035198, -0.332304)
(320.858064, -0.337951)
(320.860040, -0.245224)
==== For the file of  {'instrument': 'HSC', 'detector': 16, 'visit': 903334} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903334/calexp_r_HSC-R_903334_16_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.16146344831556486
ra and dec for the center: 320.7516564075301 -0.39008487855662477
ra and dec for the corners:
(320.845034, -0.341677)
(320.842442, -0.433390)
(320.656949, -0.438273)
(320.658582, -0.345423)
==== For the file of  {'instrument': 'HSC', 'detector': 16, 'visit': 903986} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/903986/calexp_i_HSC-I_903986_16_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.1614096713046216
ra and dec for the center: 320.7511395995935 -0.3904685661871828
ra and dec for the corners:
(320.844519, -0.342108)
(320.841884, -0.433788)
(320.656433, -0.438615)
(320.658101, -0.345793)
==== For the file of  {'instrument': 'HSC', 'detector': 5, 'visit': 903344} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903344/calexp_r_HSC-R_903344_5_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.16080446432965265
ra and dec for the center: 320.805826122932 -0.33396240054743864
ra and dec for the corners:
(320.710083, -0.380575)
(320.711403, -0.290170)
(320.901113, -0.286591)
(320.898477, -0.376190)
==== For the file of  {'instrument': 'HSC', 'detector': 10, 'visit': 904010} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/904010/calexp_i_HSC-I_904010_10_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.15949240066081147
ra and dec for the center: 320.7585053247946 -0.23446410213511057
ra and dec for the corners:
(320.664215, -0.282418)
(320.666446, -0.191059)
(320.851471, -0.186111)
(320.847978, -0.276160)
==== For the file of  {'instrument': 'HSC', 'detector': 100, 'visit': 904010} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/904010/calexp_i_HSC-I_904010_100_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.1573582460031382
ra and dec for the center: 320.8988102887463 -0.1843250283932101
ra and dec for the corners:
(320.857474, -0.092605)
(320.945671, -0.090055)
(320.938144, -0.273475)
(320.851134, -0.277660)
==== For the file of  {'instrument': 'HSC', 'detector': 16, 'visit': 903988} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/903988/calexp_i_HSC-I_903988_16_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.16144107251082665
ra and dec for the center: 321.0011618584579 -0.3904561611048949
ra and dec for the corners:
(321.094528, -0.342100)
(321.091900, -0.433772)
(320.906445, -0.438594)
(320.908122, -0.345761)
==== For the file of  {'instrument': 'HSC', 'detector': 100, 'visit': 903986} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/903986/calexp_i_HSC-I_903986_100_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.15747124703278179
ra and dec for the center: 320.89870731586933 -0.43510101073048985
ra and dec for the corners:
(320.857389, -0.343386)
(320.945600, -0.340845)
(320.937901, -0.524187)
(320.851011, -0.528458)
==== For the file of  {'instrument': 'HSC', 'detector': 23, 'visit': 903986} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/903986/calexp_i_HSC-I_903986_23_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.1628139648162523
ra and dec for the center: 320.75292942666334 -0.29424048409860654
ra and dec for the corners:
(320.846436, -0.246073)
(320.844437, -0.338882)
(320.658003, -0.342372)
(320.659311, -0.248485)
==== For the file of  {'instrument': 'HSC', 'detector': 100, 'visit': 903334} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903334/calexp_r_HSC-R_903334_100_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.1574885651151795
ra and dec for the center: 320.89926684814884 -0.4346801302608859
ra and dec for the corners:
(320.857906, -0.342956)
(320.946142, -0.340379)
(320.938573, -0.523841)
(320.851590, -0.528085)
==== For the file of  {'instrument': 'HSC', 'detector': 18, 'visit': 903338} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903338/calexp_r_HSC-R_903338_18_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.16605806355678593
ra and dec for the center: 320.8419181337854 -0.3952280374895748
ra and dec for the corners:
(320.939097, -0.347759)
(320.938346, -0.441322)
(320.744815, -0.442133)
(320.744815, -0.348370)
==== For the file of  {'instrument': 'HSC', 'detector': 12, 'visit': 903346} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903346/calexp_r_HSC-R_903346_12_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.1644489163329659
ra and dec for the center: 320.85169794311287 -0.24176738359792233
ra and dec for the corners:
(320.755059, -0.288088)
(320.755053, -0.195651)
(320.948490, -0.194699)
(320.947534, -0.286908)
==== For the file of  {'instrument': 'HSC', 'detector': 6, 'visit': 903346} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903346/calexp_r_HSC-R_903346_6_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.16240134933169806
ra and dec for the center: 320.8512576775659 -0.3366934371211467
ra and dec for the corners:
(320.755153, -0.382150)
(320.755169, -0.291451)
(320.947613, -0.290282)
(320.946415, -0.380741)
==== For the file of  {'instrument': 'HSC', 'detector': 4, 'visit': 903342} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903342/calexp_r_HSC-R_903342_4_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.1578114724444554
ra and dec for the center: 320.75569108216666 -0.32811474175871885
ra and dec for the corners:
(320.661804, -0.375738)
(320.664573, -0.286216)
(320.848321, -0.279895)
(320.843977, -0.367869)
==== For the file of  {'instrument': 'HSC', 'detector': 17, 'visit': 903336} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903336/calexp_r_HSC-R_903336_17_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.1645924878910245
ra and dec for the center: 320.7987580475813 -0.393555016165322
ra and dec for the corners:
(320.894780, -0.345555)
(320.893190, -0.438467)
(320.702160, -0.441165)
(320.702949, -0.347636)
==== For the file of  {'instrument': 'HSC', 'detector': 6, 'visit': 904014} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/904014/calexp_i_HSC-I_904014_6_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.16234335146001297
ra and dec for the center: 320.8509439841831 -0.33605441608917935
ra and dec for the corners:
(320.754848, -0.381487)
(320.754891, -0.290814)
(320.947290, -0.289672)
(320.946060, -0.380093)
==== For the file of  {'instrument': 'HSC', 'detector': 4, 'visit': 904010} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/904010/calexp_i_HSC-I_904010_4_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.15777851222487604
ra and dec for the center: 320.7552414382677 -0.3275815180113383
ra and dec for the corners:
(320.661363, -0.375173)
(320.664146, -0.285668)
(320.847870, -0.279377)
(320.843588, -0.367371)
==== For the file of  {'instrument': 'HSC', 'detector': 0, 'visit': 903344} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903344/calexp_r_HSC-R_903344_0_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.15847472569964413
ra and dec for the center: 320.80360002666123 -0.42621933624222097
ra and dec for the corners:
(320.708428, -0.471992)
(320.710071, -0.383813)
(320.898400, -0.379456)
(320.895135, -0.466665)
==== For the file of  {'instrument': 'HSC', 'detector': 24, 'visit': 903336} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903336/calexp_r_HSC-R_903336_24_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.16581806029566487
ra and dec for the center: 320.7998008930342 -0.29633921154703974
ra and dec for the corners:
(320.896014, -0.248292)
(320.894784, -0.342256)
(320.702917, -0.344178)
(320.703570, -0.249617)
==== For the file of  {'instrument': 'HSC', 'detector': 1, 'visit': 904014} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/904014/calexp_i_HSC-I_904014_1_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.15990063243980954
ra and dec for the center: 320.8501331153388 -0.4288982470306382
ra and dec for the corners:
(320.754683, -0.473211)
(320.754776, -0.384709)
(320.945936, -0.383387)
(320.944398, -0.471605)
==== For the file of  {'instrument': 'HSC', 'detector': 24, 'visit': 903988} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/903988/calexp_i_HSC-I_903988_24_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.16579071119636576
ra and dec for the center: 320.7993846835717 -0.2966773643372627
ra and dec for the corners:
(320.895590, -0.248667)
(320.894338, -0.342609)
(320.702507, -0.344479)
(320.703190, -0.249937)
==== For the file of  {'instrument': 'HSC', 'detector': 1, 'visit': 903346} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903346/calexp_r_HSC-R_903346_1_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.15997795683696603
ra and dec for the center: 320.8504698018376 -0.42956128591021064
ra and dec for the corners:
(320.755008, -0.473895)
(320.755081, -0.385364)
(320.946287, -0.384026)
(320.944757, -0.472249)
==== For the file of  {'instrument': 'HSC', 'detector': 23, 'visit': 903334} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903334/calexp_r_HSC-R_903334_23_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.16285498283311642
ra and dec for the center: 320.75341449221895 -0.2938315975775528
ra and dec for the corners:
(320.846923, -0.245619)
(320.844963, -0.338450)
(320.658481, -0.342003)
(320.659759, -0.248093)
==== For the file of  {'instrument': 'HSC', 'detector': 100, 'visit': 903342} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903342/calexp_r_HSC-R_903342_100_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.15738951565413184
ra and dec for the center: 320.89926229166673 -0.18480003819637875
ra and dec for the corners:
(320.857909, -0.093069)
(320.946136, -0.090499)
(320.938487, -0.273971)
(320.851589, -0.278179)
==== For the file of  {'instrument': 'HSC', 'detector': 25, 'visit': 903990} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/903990/calexp_i_HSC-I_903990_25_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.16716061193984486
ra and dec for the center: 320.8417854649225 -0.2977020465807283
ra and dec for the corners:
(320.939225, -0.250000)
(320.938608, -0.344567)
(320.744329, -0.345013)
(320.744405, -0.250267)
==== For the file of  {'instrument': 'HSC', 'detector': 25, 'visit': 903338} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903338/calexp_r_HSC-R_903338_25_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.16718437855145926
ra and dec for the center: 320.84210375373726 -0.2975042776408223
ra and dec for the corners:
(320.939547, -0.249761)
(320.938953, -0.344346)
(320.744651, -0.344853)
(320.744697, -0.250084)
==== For the file of  {'instrument': 'HSC', 'detector': 11, 'visit': 903344} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903344/calexp_r_HSC-R_903344_11_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.16283812145881266
ra and dec for the center: 320.8076834366383 -0.23958661531769004
ra and dec for the corners:
(320.711434, -0.286716)
(320.712597, -0.194539)
(320.903396, -0.191910)
(320.901196, -0.283365)
==== For the file of  {'instrument': 'HSC', 'detector': 10, 'visit': 903342} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/r/HSC-R/903342/calexp_r_HSC-R_903342_10_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.15953193431936752
ra and dec for the center: 320.7589400363591 -0.2349823446096058
ra and dec for the corners:
(320.664633, -0.282962)
(320.666848, -0.191590)
(320.851913, -0.186600)
(320.848432, -0.276661)
==== For the file of  {'instrument': 'HSC', 'detector': 22, 'visit': 903986} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/903986/calexp_i_HSC-I_903986_22_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.15836594576981178
ra and dec for the center: 320.94878859223405 -0.2899981521985735
ra and dec for the corners:
(321.037597, -0.241731)
(321.034682, -0.332764)
(320.857540, -0.338386)
(320.859554, -0.245679)
==== For the file of  {'instrument': 'HSC', 'detector': 18, 'visit': 903990} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/903990/calexp_i_HSC-I_903990_18_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.16601626204298697
ra and dec for the center: 320.8415650962545 -0.3954050704103327
ra and dec for the corners:
(320.938744, -0.347985)
(320.937974, -0.441539)
(320.744471, -0.442268)
(320.744493, -0.348529)
==== For the file of  {'instrument': 'HSC', 'detector': 17, 'visit': 903988} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/903988/calexp_i_HSC-I_903988_17_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.16453210538169424
ra and dec for the center: 320.79830837929717 -0.39387185034989963
ra and dec for the corners:
(320.894332, -0.345916)
(320.892716, -0.438818)
(320.701720, -0.441440)
(320.702528, -0.347923)
==== For the file of  {'instrument': 'HSC', 'detector': 23, 'visit': 903988} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/903988/calexp_i_HSC-I_903988_23_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.1627670879312325
ra and dec for the center: 321.00294543760134 -0.29421698192250906
ra and dec for the corners:
(321.096448, -0.246060)
(321.094461, -0.338864)
(320.908010, -0.342342)
(320.909322, -0.248470)
==== For the file of  {'instrument': 'HSC', 'detector': 12, 'visit': 904014} at 
 file:///project/hchiang2/ci_hsc_gen3/w_2019_43/ci_hsc_gen3/DATA/shared/ci_hsc_output/calexp/i/HSC-I/904014/calexp_i_HSC-I_904014_12_HSC_7.fits
dimensions: (2048, 4176)
pixel scale: 0.16439449483465435
ra and dec for the center: 320.8514046990481 -0.24114706988884685
ra and dec for the corners:
(320.754770, -0.287439)
(320.754798, -0.195033)
(320.948198, -0.194117)
(320.947212, -0.286304)

In [ ]: