[Tutor] how to read and transmit/send only section of the image (sub-image)

Kent Johnson kent37 at tds.net
Thu Sep 3 17:06:17 CEST 2009


On Thu, Sep 3, 2009 at 9:05 AM, Jojo Mwebaze<jojo.mwebaze at gmail.com> wrote:
> Hello Tutor
>
> I am writing Class to provide data transfer between the server and client
> processes based on simple HTTP GET/POST operations. However my interest is a
> sub-image (section of a full image). i am requesting help on how to read and
> transmit/send only section of the image (sub-image). i also prefer read the
> bytes (of the subimage) off the disk, without opening the file into memory!
>
> The images i work with are of type FITS.

I don't know much about FITS but my guess is you will have to read the
image into memory, create a new image with the sub-image you want,
then send the sub-image to the server.

PyFITS looks like a good place to start...
http://www.stsci.edu/resources/software_hardware/pyfits/

Kent


More information about the Tutor mailing list