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

Jojo Mwebaze jojo.mwebaze at gmail.com
Fri Sep 4 00:01:52 CEST 2009


thanks guys,
Currently i am using pyfits, a bit slow cause loads the file in memory,
creates a subimage and then saves the file then transmits
the file over the network! My idea is,  if there is a way of creating a file
pointer to the location on disk, where the subimage lies, reading a specific
size, and  sending only the data read (like wayne had suggested)

Do you think this possible?

Johnson






On Thu, Sep 3, 2009 at 5:06 PM, Kent Johnson <kent37 at tds.net> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090904/31b3076b/attachment.htm>


More information about the Tutor mailing list