thanks a lot . <div><br></div><div>cheers </div><div><br></div><div>Johnson</div><div><br></div><div><br><br><div class="gmail_quote">On Sun, Sep 6, 2009 at 4:23 PM, Kent Johnson <span dir="ltr">&lt;<a href="mailto:kent37@tds.net">kent37@tds.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Sat, Sep 5, 2009 at 10:52 AM, Jojo Mwebaze &lt;<a href="mailto:jojo.mwebaze@gmail.com">jojo.mwebaze@gmail.com</a>&gt; wrote:<br>

&gt; oooh that will be helpful,  kindly point me to how i can begin with getting<br>
&gt; a sub-image that has the same width as the<br>
&gt; original. That will be my starting point.<br>
<br>
</div>I don&#39;t know the details of FITS format, but I imagine it would be<br>
something like this:<br>
- read enough of the FITS header to figure out where the image data is<br>
in the file<br>
- seek to the start of the sub-image and read the image data<br>
- construct a new header for the sub-image<br>
- write the new header and data to a new file<br>
<br>
This will require some understanding of FITS format, or a library that<br>
supports the operations you need. You might find code in PyFITS that<br>
will help.<br>
<font color="#888888"><br>
Kent<br>
</font></blockquote></div><br></div>