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

Home » Public Forums » archive » Re: axes on an image(FAQ?)
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: axes on an image(FAQ?) [message #3054] Tue, 08 November 1994 09:50 Go to next message
tonym is currently offline  tonym
Messages: 14
Registered: May 1994
Junior Member
I had to do this for our global maps. I think the way I did
it was to use the plot routine. The plot routine sets up the
relationship between the physical coordinates and the screen
coordinates (note: the axis routine alone will not do this).

Use the plot routine with the /NODATA keyword to set up the
axes. Then, simply place your image within the axes. The
IDL system variables can tell you where the limits of the
graph are (both in normalized or pixels or convert using
convert_coord etc). Look at the various !p variables.
Note that you will want to make the image size match the
plot size.

As I recall, you will have to manually place the image
where you want it. This is part of the TVSCL routine:
two of the keywords can be used to specify the lower left
corner of the image (pixel units = physical coords).

-Tony
tonym@lurleen.jpl.nasa.gov
How to calculate z=f(x,y) with loops [message #3151 is a reply to message #3054] Wed, 09 November 1994 00:31 Go to previous message
buteau is currently offline  buteau
Messages: 9
Registered: September 1992
Junior Member
I need to calculate the value of z=f(x,y) .
Z is a 2D array (fltarr(n,n)).
X and Y are the X and Y indices of this array.

I'd like to calculate :

for y=0,n-1 do begin
for x=0,n-1 do begin
z(x,y)=...a function of X and Y (the function can be
of any kind)
endfor
endfor



But I'would like to do it without (or with only one ) for loops
for performance consideration.


Has somebody an idea ??
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL on an Intel Solaris 2.x box
Next Topic: Surface fit or 3d interpolation

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

Current Time: Fri Oct 10 16:31:17 PDT 2025

Total time taken to generate the page: 1.36255 seconds