Not knowing anything about how GAIA is structured internally, or
indeed much about Tk, but wouldn't another option be just to rotate
the relevant Tk canvas items rather than regridding the data? I
presume this is how the current zoom options function. It would be
faster than resampling the data.
Another point about using REGRID is that the image projection will be
changed from whatever it was (TAN usually) to CAR.
David
2008/9/19 Brad Cavanagh <[log in to unmask]>:
> On Sep 18, 2008, at 1:19 PM, Paul Hirst wrote:
>>
>> Depends on "a while". I think it would need to be able to handle
>> something of order 6000x4000 pixels (ie a GMOS image) in not more than
>> say 4 seconds on a reasonably modern machine.
>
> Paul sent me a sample GMOS image, and just running it through KAPPA/REGRID
> using nearest neighbour interpolation took under a second on my machine
> (dual-core 3.0GHz Xeon with 8GB of RAM).
>
> Brad.
>
--
Note my change of e-mail address. Please send e-mail to
[log in to unmask] from now on.
|