Changeset 10825 for trunk/psModules/src/astrom/pmAstrometryDistortion.c
- Timestamp:
- Dec 22, 2006, 11:23:06 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/astrom/pmAstrometryDistortion.c
r10603 r10825 7 7 * @author EAM, IfA 8 8 * 9 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-12- 10 02:06:47$9 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-12-22 21:23:06 $ 11 11 * 12 12 * Copyright 2006 Institute for Astronomy, University of Hawaii … … 187 187 for (int i = 0; i < fpa->toTPA->x->nX; i++) { 188 188 for (int j = 0; j < fpa->toTPA->x->nY; j++) { 189 if (fpa->toTPA->x->mask[i][j] [0][0]) {189 if (fpa->toTPA->x->mask[i][j]) { 190 190 localX->mask[i-1][j] = 1; 191 191 localY->mask[i][j-1] = 1; … … 203 203 204 204 // update fpa->toTP distortion terms 205 fpa->toTPA->x->coeff[0][0] [0][0]= 0;205 fpa->toTPA->x->coeff[0][0] = 0; 206 206 for (int i = 1; i < fpa->toTPA->x->nX; i++) { 207 if (!fpa->toTPA->x->mask[i][0] [0][0]) {208 fpa->toTPA->x->coeff[i][0] [0][0]= localX->coeff[i-1][0] / i;207 if (!fpa->toTPA->x->mask[i][0]) { 208 fpa->toTPA->x->coeff[i][0] = localX->coeff[i-1][0] / i; 209 209 } 210 210 } 211 211 for (int j = 1; j < fpa->toTPA->x->nY; j++) { 212 if (!fpa->toTPA->x->mask[0][j] [0][0]) {213 fpa->toTPA->x->coeff[0][j] [0][0]= localY->coeff[0][j-1] / j;212 if (!fpa->toTPA->x->mask[0][j]) { 213 fpa->toTPA->x->coeff[0][j] = localY->coeff[0][j-1] / j; 214 214 } 215 215 } 216 216 for (int i = 1; i < fpa->toTPA->x->nX; i++) { 217 217 for (int j = 1; j < fpa->toTPA->x->nY; j++) { 218 if (!fpa->toTPA->x->mask[i][j] [0][0]) {219 fpa->toTPA->x->coeff[i][j] [0][0]= 0.5*(localX->coeff[i-1][j] / i + localY->coeff[i][j-1] / j);218 if (!fpa->toTPA->x->mask[i][j]) { 219 fpa->toTPA->x->coeff[i][j] = 0.5*(localX->coeff[i-1][j] / i + localY->coeff[i][j-1] / j); 220 220 } 221 221 } … … 232 232 for (int i = 0; i < fpa->toTPA->y->nX; i++) { 233 233 for (int j = 0; j < fpa->toTPA->y->nY; j++) { 234 if (fpa->toTPA->y->mask[i][j] [0][0]) {234 if (fpa->toTPA->y->mask[i][j]) { 235 235 localX->mask[i-1][j] = 1; 236 236 localY->mask[i][j-1] = 1; … … 259 259 260 260 // update fpa->toTP distortion terms 261 fpa->toTPA->y->coeff[0][0] [0][0]= 0;261 fpa->toTPA->y->coeff[0][0] = 0; 262 262 for (int i = 1; i < fpa->toTPA->y->nX; i++) { 263 if (!fpa->toTPA->y->mask[i][0] [0][0]) {264 fpa->toTPA->y->coeff[i][0] [0][0]= localX->coeff[i-1][0] / i;263 if (!fpa->toTPA->y->mask[i][0]) { 264 fpa->toTPA->y->coeff[i][0] = localX->coeff[i-1][0] / i; 265 265 } 266 266 } 267 267 for (int j = 1; j < fpa->toTPA->y->nY; j++) { 268 if (!fpa->toTPA->y->mask[0][j] [0][0]) {269 fpa->toTPA->y->coeff[0][j] [0][0]= localY->coeff[0][j-1] / j;268 if (!fpa->toTPA->y->mask[0][j]) { 269 fpa->toTPA->y->coeff[0][j] = localY->coeff[0][j-1] / j; 270 270 } 271 271 } 272 272 for (int i = 1; i < fpa->toTPA->y->nX; i++) { 273 273 for (int j = 1; j < fpa->toTPA->y->nY; j++) { 274 if (!fpa->toTPA->y->mask[i][j] [0][0]) {275 fpa->toTPA->y->coeff[i][j] [0][0]= 0.5*(localX->coeff[i-1][j] / i + localY->coeff[i][j-1] / j);274 if (!fpa->toTPA->y->mask[i][j]) { 275 fpa->toTPA->y->coeff[i][j] = 0.5*(localX->coeff[i-1][j] / i + localY->coeff[i][j-1] / j); 276 276 } 277 277 }
Note:
See TracChangeset
for help on using the changeset viewer.
