[lsst-dm-stack-users] Changes to make sub-images less clunky
Robert Lupton the Good
rhl at astro.princeton.edu
Tue Jan 29 14:02:23 PST 2013
FYI, after the SLAC demo I felt really embarrassed by
subIm = im.Factory(afwGeom.BoxI(afwGeom.PointI(10, 20), afwGeom.PointI(20, 30)))
to get a subimage. I realised that this wasn't necessary, and the latest afw supports
subIm = im[10:20, 20:30]
or
im[12:15, :] = -1
A side effect is that
im[10, 20] = 10
and
print float(im[20, 30])
also work.
R
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://listserv.lsstcorp.org/pipermail/dm-users/attachments/20130129/40031937/attachment.sig>
More information about the dm-users
mailing list