[lsst-dm-stack-users] Changes to make sub-images less clunky

Michael Wood-Vasey wmwv at pitt.edu
Tue Jan 29 14:31:14 PST 2013


Thank you!!!!  That is really a huge step in usability.

 - Michael

On Jan 29, 2013, at 17:02, Robert Lupton the Good <rhl at astro.princeton.edu> wrote:

> 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
> 
> _______________________________________________
> lsst-dm-stack-users mailing list
> lsst-dm-stack-users at lsstcorp.org
> http://listserv.lsstcorp.org/mailman/listinfo/lsst-dm-stack-users





More information about the dm-users mailing list