Changeset 1785
- Timestamp:
- Sep 10, 2004, 1:41:45 PM (22 years ago)
- Location:
- trunk/psLib/src/astronomy
- Files:
-
- 2 edited
-
psAstrometry.c (modified) (2 diffs)
-
psAstrometry.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astronomy/psAstrometry.c
r1665 r1785 8 8 * @author George Gusciora, MHPCC 9 9 * 10 * @version $Revision: 1.2 7$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-09- 01 00:57:48$10 * @version $Revision: 1.28 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-09-10 23:41:45 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 206 206 /*****************************************************************************/ 207 207 208 209 /* 210 * 211 * XXX: Verify that you interpreted the SDR correctly. 212 * 213 * XXX: Must add memory deallocater. 214 */ 215 psFixedPattern *psFixedPatternAlloc(double x0, 216 double y0, 217 double xScale, 218 double yScale, 219 const psImage *x, 220 const psImage *y) 221 { 222 psFixedPattern *tmp; 223 int i; 224 int j; 225 226 tmp = (psFixedPattern *) psAlloc(sizeof(psFixedPattern)); 227 tmp->nX = x->numRows * x->numCols; 228 tmp->nY = y->numRows * y->numCols; 229 tmp->x0 = x0; 230 tmp->y0 = y0; 231 tmp->xScale = xScale; 232 tmp->yScale = yScale; 233 tmp->x = (double **) psAlloc(x->numRows * sizeof(float *)); 234 for (i=0;i<x->numRows;i++) { 235 (tmp->x)[i] = (double *) psAlloc(x->numCols * sizeof(float)); 236 } 237 for (i=0;i<x->numRows;i++) { 238 for (j=0;j<x->numRows;j++) { 239 (tmp->x)[i][j] = x->data.F64[i][j]; 240 } 241 } 242 243 tmp->y = (double **) psAlloc(y->numRows * sizeof(float *)); 244 for (i=0;i<y->numRows;i++) { 245 (tmp->y)[i] = (double *) psAlloc(y->numCols * sizeof(float)); 246 } 247 for (i=0;i<y->numRows;i++) { 248 for (j=0;j<y->numRows;j++) { 249 (tmp->y)[i][j] = y->data.F64[i][j]; 250 } 251 } 252 return(tmp); 253 } 254 255 208 256 psExposure* psExposureAlloc(double ra, double dec, double hourAngle, 209 257 double zenith, double azimuth, double localTime, float date, -
trunk/psLib/src/astronomy/psAstrometry.h
r1665 r1785 8 8 * @author George Gusciora, MHPCC 9 9 * 10 * @version $Revision: 1.2 3$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-09- 01 00:57:48$10 * @version $Revision: 1.24 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-09-10 23:41:45 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 83 83 psFixedPattern; 84 84 85 psFixedPattern *psFixedPatternAlloc(double x0, ///< X Position of 0,0 corner on focal plane 86 double y0, ///< Y Position of 0,0 corner on focal plane 87 double xScale, ///< Scale of the grid in x direction 88 double yScale, ///< Scale of the grid in x direction 89 const psImage *x, ///< The grid of offsets in x 90 const psImage *y ///< The grid of offsets in y 91 ); 92 85 93 /** Readout data structure. 86 94 *
Note:
See TracChangeset
for help on using the changeset viewer.
