Changeset 9730 for trunk/psModules/src/detrend/pmFringeStats.c
- Timestamp:
- Oct 24, 2006, 12:55:05 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/detrend/pmFringeStats.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmFringeStats.c
r9615 r9730 133 133 134 134 psArray *table = psArrayAlloc(numRows); // The table 135 table->n = numRows;136 135 // Translate the vectors into the required format for psFitsWriteTable() 137 136 for (long i = 0; i < numRows; i++) { … … 205 204 psVector *y = psVectorAlloc(numRows, PS_TYPE_F32); // y position 206 205 psVector *mask = psVectorAlloc(numRows, PS_TYPE_U8); // mask 207 x->n = y->n = mask->n = numRows;208 206 regions->x = x; 209 207 regions->y = y; … … 253 251 stats->f = psVectorAlloc(numRegions, PS_TYPE_F32); 254 252 stats->df = psVectorAlloc(numRegions, PS_TYPE_F32); 255 stats->f->n = stats->df->n = numRegions;256 253 257 254 return stats; … … 365 362 // Vectors: f, df 366 363 psArray *table = psArrayAlloc(numRows); // The table 367 table->n = numRows;368 364 // Translate the vectors into the required format for psFitsWriteTable() 369 365 for (long i = 0; i < numRows; i++) { … … 527 523 scale->coeff = psVectorAlloc(nFringeFrames + 1, PS_TYPE_F32); 528 524 scale->coeffErr = psVectorAlloc(nFringeFrames + 1, PS_TYPE_F32); 529 scale->coeff->n = nFringeFrames + 1;530 scale->coeff->n = nFringeFrames + 1;531 525 532 526 return scale; … … 551 545 psImage *A = psImageAlloc(numCoeffs, numCoeffs, PS_TYPE_F64); // The least-squares matrix 552 546 psVector *B = psVectorAlloc(numCoeffs, PS_TYPE_F64); // The least-squares vector 553 B->n = numCoeffs;554 547 555 548 // Generate the least-squares matrix and vector … … 718 711 if (!regions->mask) { 719 712 regions->mask = psVectorAlloc(numRegions, PS_TYPE_U8); 720 regions->mask->n = numRegions;721 713 psVectorInit(regions->mask, 0); 722 714 } … … 725 717 unsigned int numClipped = 0; // Total number clipped 726 718 psVector *diff = psVectorAlloc(numRegions, PS_TYPE_F32); // The differences between obs. and pred. 727 diff->n = numRegions;728 719 729 720 pmFringeScale *scale = pmFringeScaleAlloc(fringes->n); // The fringe scales
Note:
See TracChangeset
for help on using the changeset viewer.
