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

Home » Public Forums » archive » POLY_2D inconsitent interpolation
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: POLY_2D inconsitent interpolation [message #49704 is a reply to message #49687] Fri, 11 August 2006 07:50 Go to previous messageGo to previous message
news.verizon.net is currently offline  news.verizon.net
Messages: 47
Registered: August 2003
Member
R>
> Is this a well known bug? Do workarounds exist? I am especially
> interested in workarounds for hastrom, since this bug shift my sources
> by 1/2 a pixel relative to the astrometry in the header depending on the
> interpolation method used.

I think the bug is well known but only as it pertains to CONGRID for
which RSI added a CENTER keyword in 2001 after numerous complaints:

; CENTER: If this keyword is set, shift the interpolation so that
points
; in the input and output arrays are assumed to lie at the
midpoint
; of their coordinates rather than at their lower-left corner.

Examing the code for CONGRID one finds that use of the CENTER keyword
alters the input parameters to POLY_2D by 0.5 for the interpolation
cases but not for the nearest neighbor, just what was found was needed
in the original posting by Craig DeForest.

It sounds like a similar fix is needed to hastrom.pro in the IDL
Astronomy Library but I don't have time to do this today (but probably
within a week). --Wayne
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: output in an array
Next Topic: slow processing of my k-nearest neighour code

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

Current Time: Sat Oct 11 17:20:42 PDT 2025

Total time taken to generate the page: 0.00961 seconds