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

Home » Public Forums » archive » Re: Overplot contour on previously stablished coordinates
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: Overplot contour on previously stablished coordinates [message #83417 is a reply to message #83416] Fri, 01 March 2013 11:25 Go to previous messageGo to previous message
mairan.teodoro is currently offline  mairan.teodoro
Messages: 20
Registered: June 2008
Junior Member
Hi David!

Thanks for the quick reply.

This is the part of the code that does the plot:

cgplot, findgen(100),title=strtrim(string(((w[i+j]-lref)/lref)*a.c/1 d5,form='(I10)'),2),$
xsty=1, ysty=1, charsize=0.8,$
xrange=[reform(astro[0,0,0]),reform(astro[size[1]-1,size[2]- 1,0])],$
yrange=[reform(astro[0,0,1]),reform(astro[size[1]-1,size[2]- 1,1])],$
/nodata, position=p

;;; this is my iso-velocity image
cgimage, bytscl(rot(img, 0, missing=0), min=mindisplay, max=maxdisplay), position=p, /overplot,$
xrange=[reform(astro[0,0,0]),reform(astro[size[1]-1,size[2]- 1,0])],$
yrange=[reform(astro[0,0,1]),reform(astro[size[1]-1,size[2]- 1,1])]

;;; normalized intensity colorbar
cgColorBar, position=[p[2]+0.005, p[1], p[2]+0.02, p[3]],$
/vertical, /right, charsize=0.8,$
range=[mindisplay,maxdisplay]

;;; this is just to show the axis in white in my iso-image
cgplot, findgen(100),$
xsty=1, ysty=1, xtickformat='(A1)', ytickformat='(A1)', axiscolor=cgcolor('white'),$
xrange=[reform(astro[0,0,0]),reform(astro[size[1]-1,size[2]- 1,0])],$
yrange=[reform(astro[0,0,1]),reform(astro[size[1]-1,size[2]- 1,1])],$
/nodata, /noerase, position=p, charsize=0.8

;;; this is the contour obtained from a FITS image
;;; with astrometric solution stored in header.
;;; The size and orientation are not the same as
;;; that of my iso-velocity image.
cgcontour, rot(data_img, 0.), levels=[0.9,5,8],$
color='white', background='black',$
label=0, olevels=olevels, /onimage, /missing

The result for one image can be seen in this link:

https://dl.dropbox.com/u/6573328/teodoro.png

Thanks for any help!
m.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Undocumented functions in IDL
Next Topic: JD Smith Missing

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

Current Time: Fri Oct 10 11:31:57 PDT 2025

Total time taken to generate the page: 1.67961 seconds