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






      Modify a structure using given functions.


Calling Sequence

      tag_modify, s, txt


      txt = Modify text with functions to use. in
            Each line in txt is of the form tag = f(_value)
            where tag is one of the structure tags and
            f() is some function of that value of that tag.
            _value is replaced by the initial value of s.tag,
            so this really means: s.tag=f(s.tag)
            See Notes below for examples.

Keyword Parameters


        ERROR=err Error flag: 0=ok.
        COUNT=cnt Number of structure tags modified.
        /INIT means extract the modify lines from txt first.
              They will between lines bounded by
              <modify> and (each on separate lines).


      s = Structure to modify. in, out
          May be a structure array.

Common Blocks


      Notes: Some example modify lines:
                sat_lat = _value/8192.*!radeg
                sat_lon = _value/8192.*!radeg
                sath_angle = _value/8192.*!radeg
                sat_cross_angle = _value/8192.*!radeg
                sat_altitude = _value/1000.
                Eph_timecode = _value/1024.
                Sensor_timecode = _value/1024.
              Only the given tags will be modified (if found).
              The modify functions could call other routines
              (functions) if needed.

Modification History

      R. Sterner, 2011 Aug 26
  Copyright (C) 2011, 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