comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Zoom out of astronomical image preserving header info
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Zoom out of astronomical image preserving header info [message #42611] Thu, 17 February 2005 10:51 Go to next message
mperrin+news is currently offline  mperrin+news
Messages: 81
Registered: May 2001
Member
burkina <stebia@inwind.it> wrote:
> Ciao,
>
> I need to zoom out an astronomical image, in order to make it visible a
> part of the sky which is NOT included in the image itself. In other
> words, I need to display the original image in a smaller region of the
> picture and the rest is black. BUT, I need to preserve the RA and DEC
> coordinates in the black part of the picture, because I have to draw a
> box at certain coordinates to show that it is well outside the original
> image. Moreover, I need to put RA and DEC axis (as it's done with
> imcontour), BUT for all the total picture, not only the original image.
> I hope it's clear! In any case, I've done it succesfully with ds9, so
> that I can show what I want to you, but in IDL the result can be much
> better!

There are a number of routines in the Goddard idlastro library for
manipulating images and their FITS astrometry headers at the same time.
In particular, you can use HREBIN for resizing (zooming out). Then you can
use imcontour for the axes labels - just set /noerase and /nodata when
calling it.

- Marshall
Re: Zoom out of astronomical image preserving header info [message #42686 is a reply to message #42611] Fri, 18 February 2005 03:19 Go to previous message
burkina is currently offline  burkina
Messages: 32
Registered: February 2005
Member
Thank you Marshall for your reply.

The problem with hrebin (and hcongrid) is that they don't zoom the
image out as I need (like atv for example). They will produce an image
with that number of pixels, so that if the zoom factor is 2, an
original image of, say, 300x300, will become 600x600. This means a lot
of time in processing the image when you need a very large zoom factor
(as in my case) and enormous image files. That's not what I need. I
actually need a costant image size, but with the original image
shrinked to the desired dimension.
In practice, I need a functionality completely equivalent to the ATV
zoom, together with the possibility to re-center the final image where
I want. I need space outside the image with the correct RA and DEC
coordinates. ATV does it, but it can't do other things I need. That's
why I can't use it directly.
I'm sure it's easy....

Stefano
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: textures and direct graphics ?
Next Topic: 2D plots of a spectrum / color strips

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 10:51:48 PDT 2025

Total time taken to generate the page: 1.04121 seconds