Changeset 9730 for trunk/psModules/src/astrom/pmAstrometryDistortion.c
- Timestamp:
- Oct 24, 2006, 12:55:05 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/astrom/pmAstrometryDistortion.c
r8815 r9730 7 7 * @author EAM, IfA 8 8 * 9 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2006- 09-15 09:49:01$9 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-10-24 22:55:04 $ 11 11 * 12 12 * Copyright 2006 Institute for Astronomy, University of Hawaii … … 54 54 55 55 if (grads == NULL) { 56 grads = psArrayAlloc (100);56 grads = psArrayAllocEmpty (100); 57 57 } 58 58 … … 76 76 int Ymax = Ymin + DY; 77 77 78 psVector *L = psVectorAlloc (100, PS_TYPE_F32);79 psVector *M = psVectorAlloc (100, PS_TYPE_F32);80 psVector *dP = psVectorAlloc (100, PS_TYPE_F32);81 psVector *dQ = psVectorAlloc (100, PS_TYPE_F32);78 psVector *L = psVectorAllocEmpty (100, PS_TYPE_F32); 79 psVector *M = psVectorAllocEmpty (100, PS_TYPE_F32); 80 psVector *dP = psVectorAllocEmpty (100, PS_TYPE_F32); 81 psVector *dQ = psVectorAllocEmpty (100, PS_TYPE_F32); 82 82 int Npts = 0; 83 83 … … 121 121 psStats *stats = psStatsAlloc (PS_STAT_SAMPLE_MEDIAN | PS_STAT_SAMPLE_STDEV); 122 122 psVector *mask = psVectorAlloc (Npts, PS_TYPE_MASK); 123 mask->n = Npts;124 123 psVectorInit (mask, 0); 125 124 … … 175 174 M->data.F32[i] = grad->FP.y; 176 175 } 177 dPdL->n = dQdL->n = dPdM->n = dQdM->n = grads->n;178 L->n = M->n = grads->n;179 176 180 177 psStats *stats = psStatsAlloc (PS_STAT_SAMPLE_MEDIAN | PS_STAT_SAMPLE_STDEV); 181 178 psVector *mask = psVectorAlloc (grads->n, PS_TYPE_MASK); 182 mask->n = grads->n;183 179 psVectorInit (mask, 0); 184 180
Note:
See TracChangeset
for help on using the changeset viewer.
