IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 24, 2006, 12:55:05 PM (20 years ago)
Author:
Paul Price
Message:

Following today's meeting, we agreed that psVectorAlloc (and therefore
psArrayAlloc also) shall set the number of elements in use to equal the
number of elements allocated. We introduce new functions,
psVectorAllocEmpty and psArrayAllocEmpty, that allocate a vector and set
the length to zero.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFitsImage.c

    r9538 r9730  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2006-10-13 21:13:47 $
     9 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-10-24 22:52:55 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    519519    if (nAxis == 2) {
    520520        psArray *images = psArrayAlloc(1); // Single image plane
    521         images->n = 1;
    522521        images->data[0] = psFitsReadImage(fits, region, 0);
    523522        return images;
     
    533532
    534533        psArray *images = psArrayAlloc(nAxes[2]); // Array of image planes
    535         images->n = nAxes[2];
    536534        for (int i = 0; i < nAxes[2]; i++) {
    537535            images->data[i] = psFitsReadImage(fits, region, i);
Note: See TracChangeset for help on using the changeset viewer.