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

TAG_ADD

TAG_ADD

Name


      TAG_ADD

Purpose


      Add or update a tag in a structure.

Category


Calling Sequence


      tag_add, ss, tag, val

Inputs


      ss = given structure. in
        Created if undefined.
      tag = given tag. in
      val = Value for tag. in
        The new value may be a different data type from the old.

Keyword Parameters


Keywords


        MINLEN=mn Minimum tag length to match (def=exact match).
          SS may have the tag abbreviated down to mn characters.
          (But tag must be at least as long as appears in ss).
        AFTER=aft If tag is new then add it after tag aft.
          aft='^' to add at front, aft='$' to add at end (default).
          This keyword is ignored if the tag is in the structure,
          in which case it is updated with the new value.
        FLAG=flag 0=added, 1=updated.

Outputs


Common Blocks


Notes


      Notes: If ss does not contain the tag it is added.
      GIVEN TAG MUST BE AS BIG OR BIGGER than the tag to match
      in ss or it will be considered a new tag and added.

Modification History


      R. Sterner, 2006 Sep 27
      R. Sterner, 2007 Dec 18 --- Upgraded to not require matching type.
      R. Sterner, 2007 Dec 18 --- Added keyword AFTER=aft.
      R. Sterner, 2008 Nov 20 --- New structure created if undefined.
  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.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us