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 <ken...@tds.net> wrote: > On Thu, Sep 3, 2009 at 9:05 AM, Jojo Mwebaze<jojo.mweb...@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 >
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor