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

Home » Public Forums » archive » How to find the pixel position
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: How to find the pixel position [message #70682 is a reply to message #70640] Thu, 29 April 2010 08:18 Go to previous messageGo to previous message
jeanh is currently offline  jeanh
Messages: 79
Registered: November 2009
Member
On 29/04/2010 2:40 AM, sid wrote:
> Hi,
> I did like this
> raw=readfits('filename.fits')
> b=where(raw eq 2832.90)
> I know that it occurs at raw(5,5)
> so now if I do
> print,b
> it should print 5,

on top of what the other have said, b should not be equal to 5.
It should be equal to 5 * dim_X + 5
So if your image is 100*100, the index of position 5;5 is 505

Jean
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SSW Coordinate Conversions
Next Topic: Plotting spherical slice surfaces

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

Current Time: Fri Oct 10 14:22:48 PDT 2025

Total time taken to generate the page: 0.31617 seconds