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

Home » Public Forums » archive » Re: FITS image with RA and DEC axis
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: FITS image with RA and DEC axis [message #41934 is a reply to message #41933] Tue, 30 November 2004 10:42 Go to previous message
Wayne Landsman is currently offline  Wayne Landsman
Messages: 117
Registered: January 1997
Senior Member
Stefano Bianchi wrote:
>
> I have a simple practical task to perform.
> I have a fits astronomical image. I just want to zoom it as I like and
> then overplot on it x and y axis with the correct RA and DEC
> coordinates as read from the header.


You might use the procedure IMCONTOUR in the IDL Astronomy Library.
This procedure provide a contour with astronomical labeling, but by
providing the /NODATA keyword you can skip the contour and just do the
astronomical labeling. You should display the image using one of the
display program that recognize plot coordinates such as David Fanning's
TVIMAGE. For example, given a FITS image, im, and header, h, the
following two lines displays the image with astronomical labeling (RA
and Dec).

IDL> tvimage,im,/keep_aspect, position = pos
IDL> imcontour,im,h,/nodata,/Noerase,/TYPE,position = pos

To work with zoomed images, use the procedures hextract.pro, hrebin.pro
and hcongrid.pro which will, respectively, extract a subimage, REBIN or
CONGRID an image while updating the FITS header so that the astrometry
remains correct.

It would certainly be nice if a lot more of this work were automated
(e.g. incorporated into ATV), but there haven't been any volunteers yet ;-)

Cheers, --Wayne
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cluster analysis
Next Topic: Re: idl and licenses

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

Current Time: Wed Oct 08 14:11:20 PDT 2025

Total time taken to generate the page: 0.00484 seconds