On Thu, Jun 21, 2012 at 10:53 AM, Andy Gibb <[log in to unmask]> wrote:
> I'm running into some issues with NDF sections.
>
> I was under the impression that specifying a section like this:
>
> myfile(~11,~11)
>
That's relative to the middle of the array.
> was the same as
>
> myfile(-5:5,-5:5)
>
> but I'm find that's not the case. If I am explicit about the position
> then it's fine, ie:
>
> myfile(0~11,0~11)
That's relative to pixel 0,0.
>
> Have I been doing it wrong all this time? I'm sure it used to work :-)
>
probably. See SUN/95 (amazingly SUN/33 does not mention section syntax).
--
Tim Jenness
|