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






      Get 2D slices from a results files and return as a 3D array.


Calling Sequence

      resget_slice, name, val


      name = string with name of slices to get. in
        May be truncated but will return first match.
        Case insensitive. Do not include the slice index.
        Example: For items named ustk_000, ustk_001, ustk_002,

Keyword Parameters


        XRAN=xran, YRAN=yran, ZRAN=zran Indices in X,Y,Z.
          2-D array like XRAN=[ixlo,ixhi]. Default is full range.
          Any out of range indices are clipped to be in range.
        FD=fd Optional file descriptor. Allows multiple res
          files to be used at once.
        ERROR = e error code:
          0 = OK. Value returned normally.
          5 = Name not found.
          6 = Invalid array type specified in header.
          7 = No results file open.


      ustk_003 access by resget_slice, 'ustk', out
      val = variable to contain results. out

Common Blocks



      Notes: one of the results file utilities.
        See also resopen, resput, rescom, resclose.
        Must use resopen to open the file for read before
        using resget. Also must use resclose to close file.

Modification History

      R. Sterner, 2005 Jul 19
  Copyright (C) 2005, 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.

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