>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  CONGRID2

CONGRID2

CONGRID2

Name


      CONGRID2

Purpose


      Alternate (and limited) congrid using interpolate.

Category


Calling Sequence


      z2 = congrid2(z,mx,my)

Inputs


      z = input 2-d array. in
      mx, my = requested output array size. in

Keyword Parameters


Keywords


        /INTERPOLATE means do bilinear interpolation.
          Default is nearest neighbor.
        /CENTERED means assume pixels centered. This means
          the pixel at (0,0) is clipped to 1/4 size.
          Default is that pixel start (not center) is at index.

Outputs


      z2 = resulting array. out

Common Blocks


Notes


      Notes: tries to correct problems in congrid. Result may
        look odd due to extrapolation. For example, using
        /CENT and /INTERP gives results with magnified pixels
        not all the same size.

Modification History


      R. Sterner, 1996 Dec 2
      R. Sterner, 2010 May 03 --- Converted arrays from () to [].
  Copyright (C) 1996, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us