IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 24, 2006, 2:27:29 PM (20 years ago)
Author:
Paul Price
Message:

Changed definition of psVectorAlloc and psArrayAlloc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/stac/src/stacScales.c

    r8783 r9740  
    2323    psVector *values = psVectorAlloc(numSamples + 1, PS_TYPE_F32); // Vector containing sub-sample
    2424    psVector *mask = psVectorAlloc(numSamples + 1, PS_TYPE_U8); // Mask for sample
    25     values->n = numSamples + 1;
    26     mask->n = numSamples + 1;
    2725
    2826    int offset = 0;                     // Offset from start of the row
     
    9088    } else {
    9189        scales = psVectorAlloc(images->n, PS_TYPE_F32);
    92         scales->n = images->n;
    9390        *scalesPtr = scales;
    9491    }
     
    10097    } else {
    10198        offsets = psVectorAlloc(images->n, PS_TYPE_F32);
    102         offsets->n = images->n;
    10399        *offsetsPtr = offsets;
    104100    }
     
    130126        // Transform the stellar positions to match the transformed reference frame
    131127        psArray *starCoordsTransformed = psArrayAlloc(starCoords->n); // Transformed positions
    132         starCoordsTransformed->n = starCoords->n;
    133128        // Fix up difference between map and output frame
    134129        starMap->x->coeff[0][0] -= xMapDiff;
     
    141136        psArray *stars = psArrayAlloc(images->n); // Array of stellar photometry vectors
    142137        psArray *masks = psArrayAlloc(images->n); // Array of masks for stars
    143         stars->n = images->n;
    144         masks->n = images->n;
    145138
    146139        // Set scales relative to the first image
     
    155148            psVector *photometry = psVectorAlloc(starCoords->n, PS_TYPE_F32); // Photometry of the stars
    156149            psVector *mask = psVectorAlloc(starCoords->n, PS_TYPE_U8); // Mask for the photometry
    157             photometry->n = starCoords->n;
    158             mask->n = starCoords->n;
    159150            for (int j = 0; j < starCoordsTransformed->n; j++) {
    160151                psPlane *coords = starCoordsTransformed->data[j]; // The coordinates of the star
Note: See TracChangeset for help on using the changeset viewer.