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

Home » Public Forums » archive » Re: Contour overlay - control orientation?
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: Contour overlay - control orientation? [message #84133] Fri, 26 April 2013 10:25
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Gurd writes:

> I make the contours with cgContour.
> ...are you suggesting to apply a rotation to the points of the contour lines?

Yes, this is what I was afraid of. I think the answer is probably
"rotate the image".

If you look at the PATH*** keywords to the CONTOUR command (which can
also be used with cgContour), you will see that is is possible to obtain
the individual points that make up a contour line. I am suggesting it
might be fairly easy to rotate those points with respect to the current
axis system, then draw the rotated points yourself (using, say cgPlotS
or cgColorFill, depending on what you are doing).

But, if you don't understand what I am talking about, I think the answer
is "rotate the image." :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: Contour overlay - control orientation? [message #84135 is a reply to message #84133] Fri, 26 April 2013 10:08 Go to previous message
DAVIDE LENA is currently offline  DAVIDE LENA
Messages: 22
Registered: September 2011
Junior Member
On Friday, April 26, 2013 12:04:37 PM UTC-4, David Fanning wrote:
> Gurd writes:
>
>
>
>> I wander if it possible to make a contour plot, than change the orientation and overlay it on another image.
>
>> In other words: I have two images of the same object at different wavelengths. One of the two has no WCS, but I know the relative orientation. Instead of going through the process rotating one of the images it would be nice to change just the contours orientation. Is it possible?
>
>
>
> I suppose it depends on what you mean by "I have the contours". If you
>
> mean you know the points that make up a contour line (ie, you obtained
>
> the contour by means of ISOCONTOUR or the PATH** keywords to the CONTOUR
>
> command), then it is fairly easy to "rotate" them.

I make the contours with cgContour.
...are you suggesting to apply a rotation to the points of the contour lines?

> It is probably harder
>
> to decide upon which point they should be "rotated" about. :-)
>
>
>
> If this is not what you mean, I think it would be easier to rotate the
>
> image.
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: Contour overlay - control orientation? [message #84139 is a reply to message #84135] Fri, 26 April 2013 09:04 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Gurd writes:

> I wander if it possible to make a contour plot, than change the orientation and overlay it on another image.
> In other words: I have two images of the same object at different wavelengths. One of the two has no WCS, but I know the relative orientation. Instead of going through the process rotating one of the images it would be nice to change just the contours orientation. Is it possible?

I suppose it depends on what you mean by "I have the contours". If you
mean you know the points that make up a contour line (ie, you obtained
the contour by means of ISOCONTOUR or the PATH** keywords to the CONTOUR
command), then it is fairly easy to "rotate" them. It is probably harder
to decide upon which point they should be "rotated" about. :-)

If this is not what you mean, I think it would be easier to rotate the
image.

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: high quality videos with idlffvideowrite?
Next Topic: Re: netCDF adding variable to an existing file

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

Current Time: Wed Oct 08 15:47:45 PDT 2025

Total time taken to generate the page: 0.00421 seconds