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

TAG_FUNCT

TAG_FUNCT

Name


      TAG_FUNCT

Purpose


      Process structure elements through specified functions.

Category


Calling Sequence


      s2 = tag_funct(s)

Inputs


      s = Input structure. in

Keyword Parameters


Keywords


        PREFIX=pref This is what the first word of a structure
          element is to make the second word be applied to the
          rest of the element as a function. Default='apply'.
          May not be a number. Case ignored.
        ERROR=err Error flag: 0=ok.

Outputs


      s2 = Output structure. out

Common Blocks


Notes


      Notes: An example structure element:
        apply list2array [2,3,5,7,11,13,17,19]
        would apply the function named list2array to the rest
        of the element ([2,3,...). THE FUNCTION MUST TAKE A
        STRING INPUT and may return anything allowed as a
        structure element. For example:
          s = {aaa:'apply sqrt 16',bbb:'apply sin 1.57080'}
        would return a structure with the numeric values
        4.00000 and 1.00000 for aaa and bbb.
     
        Only string elements will be processed this way and only
        if they start with the prefix (def=apply) and have at
        least one more word to use as the function.

Modification History


      R. Sterner, 2006 Jul 10
      R. Sterner, 2010 May 07 --- Renamed from tags_funct.pro.
      R. Sterner, 2010 May 07 --- Converted arrays from () to [].
  Copyright (C) 2006, 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