IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 27, 2005, 4:38:01 PM (21 years ago)
Author:
desonia
Message:

added support for writing psVectors to tables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/fits/tst_psFits.c

    r5147 r5164  
    66*  @author Robert DeSonia, MHPCC
    77*
    8 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2005-09-27 19:54:52 $
     8*  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2005-09-28 02:38:01 $
    1010*
    1111*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    201201                      str);
    202202        psFree(str);
     203
     204        psVector* vec = psVectorAlloc(5,PS_TYPE_S32);
     205        for (int x=0; x < 5; x++) {
     206            vec->data.S32[x] = x*2;
     207        }
     208        psMetadataAdd(header,PS_LIST_TAIL, "MYVEC",
     209                      PS_DATA_VECTOR,
     210                      "psVector Item",
     211                      vec);
     212        psFree(vec);
    203213
    204214        table->data[row] = header;
Note: See TracChangeset for help on using the changeset viewer.