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

TAG_ARR

TAG_ARR

Name


      TAG_ARR

Purpose


      Concatenate scalars from one structure into arrays in another.

Category


Calling Sequence


      tag_arr, ss, sa

Inputs


      ss = Structure with scalar values. in

Keyword Parameters


Keywords


        /INIT Initialize sa from ss. Given a structure of scalars
          create the structure of arrays sa with pointers to the
          arrays. The structure sa will be an output in this case.
          This step is automatic if sa is undefined on the first call.
        /CONVERT Free all the pointers in sa and convert to arrays.
        ERROR=err Error flag: 0=ok, 1=no concatenations done.

Outputs


      sa = Structure with array values. in, out

Common Blocks


Notes


      Notes: The Problem: A record from a data file is read into
        a structure, one record at each of a series of time steps.
        Want to end up with a structure of arrays with the time
        series for each tag. For the first time step structure sa,
        the structure with the arrays, is derived from the first
        structure ss using the keyword /INIT. If sa is undefined this
        will be automatic (else do explicitly). Then for each time
        step, the new record is sent in structure ss, with the values
        in each tag tacked on the end of the arrays in structure sa.
        Structure sa uses pointers. After the arrays are completely
        built, convert structure sa from a structure of pointers
        to a structure of arrays using the keyword /CONVERT:
          tag_arr, sa, /convert

Modification History


      R. Sterner, 2008 Dec 30
  Copyright (C) 2008, 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