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

Home » Public Forums » archive » Re: Fractional Pixels Origin?
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: Fractional Pixels Origin? [message #47642 is a reply to message #47547] Thu, 16 February 2006 23:50 Go to previous message
Wayne Landsman is currently offline  Wayne Landsman
Messages: 117
Registered: January 1997
Senior Member
> I must be the only one *reading* Wayne's article. :-(
>
> Let me quote it again:
>
> "I'll say that the FITS convention is
> that [0,0] locates the center of the pixel."
>
> This whole thing just get curiousier and curiousier. :-)

Well, you must not take Wayne too literally. The correct statement is that
the FITS convention is that [1,1] locates the center of the pixel. My
conversion of the "first pixel is [1,1]" in FITS (or FORTRAN) to "first
pixel is [0,0]"
of IDL is so automatic that I hardly think about it, and I was just pointing
out that in FITS an integer value refers to the center of the pixel (whereas
in a "ruler" convention it refers to a corner of a pixel).

The main reason this matters in astronomy is for conversion between the X,Y
pixel centroid of a star to longitude, latitude. So I suppose the
poster's original question is also relevant for the MAP_PROJ_INVERSE,
MAP_PROJ_FORWARD routines in IDL.

--Wayne
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: naming PS plots: variable+ string?
Next Topic: IDLWAVE 6.0 -- idlwave.org

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

Current Time: Wed Oct 08 11:09:43 PDT 2025

Total time taken to generate the page: 0.00500 seconds