Changeset 41912
- Timestamp:
- Nov 10, 2021, 3:50:26 PM (5 years ago)
- Location:
- tags/ipp-ps1-20211104/psModules/src/objects
- Files:
-
- 4 edited
-
pmSourceIO.h (modified) (1 diff)
-
pmSourceIO_CMF.c.in (modified) (1 diff)
-
pmSourceIO_Ghosts.c (modified) (5 diffs)
-
pmSourceInternal.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-ps1-20211104/psModules/src/objects/pmSourceIO.h
r41382 r41912 95 95 bool pmSourceIO_WriteGhosts (psFits *fits, pmFPA *fpa, pmConfig *config); 96 96 97 void pmSourceChipBoundsCleanup (void); 98 97 99 /// @} 98 100 # endif /* PM_SOURCE_IO_H */ -
tags/ipp-ps1-20211104/psModules/src/objects/pmSourceIO_CMF.c.in
r41892 r41912 485 485 if (!psFitsWriteTableNew(fits, header, table, extname)) { 486 486 psError(psErrorCodeLast(), false, "writing ext data %s\n", extname); 487 psFree(tableColumns); 487 488 psFree(table); 488 489 psFree(header); 489 490 return false; 490 491 } 492 psFree(tableColumns); 491 493 psFree(table); 492 494 psFree(header); -
tags/ipp-ps1-20211104/psModules/src/objects/pmSourceIO_Ghosts.c
r41892 r41912 57 57 58 58 # include "pmSourceInternal.h" 59 static psVector *chipXmin = NULL;60 static psVector *chipXmax = NULL;61 static psVector *chipYmin = NULL;62 static psVector *chipYmax = NULL;63 59 64 60 # define ESCAPE(MSG) { \ … … 243 239 244 240 //do a rudimentary check of whether the ghost is on the pixel FPA 245 if (abs(ghost->FP->y) > 21000.) continue;246 if (abs(ghost->FP->x) > 21000.) continue;241 if (abs(ghost->FP->y) > 21000.) { psFree (ghost); continue; } 242 if (abs(ghost->FP->x) > 21000.) { psFree (ghost); continue; } 247 243 248 244 //save the ghost positions … … 267 263 psArrayAdd (table, 100, row); 268 264 psFree (row); 269 270 } 271 else { 265 } else { 272 266 psMetadata *row = psMetadataAlloc (); 273 267 psMetadataAdd (row, PS_LIST_TAIL, "X_STAR_FPA", PS_DATA_F32, "x coord on focal plane", ref->FP->x); … … 290 284 psFree (row); 291 285 } 292 286 psFree (ghost); 293 287 } 294 288 } … … 366 360 } 367 361 362 static psVector *chipXmin = NULL; 363 static psVector *chipXmax = NULL; 364 static psVector *chipYmin = NULL; 365 static psVector *chipYmax = NULL; 366 367 void pmSourceChipBoundsCleanup (void) { 368 psFree (chipXmin); 369 psFree (chipXmax); 370 psFree (chipYmin); 371 psFree (chipYmax); 372 } 368 373 369 374 bool pmSourceChipBounds (pmFPA *fpa) { -
tags/ipp-ps1-20211104/psModules/src/objects/pmSourceInternal.h
r41394 r41912 55 55 bool pmSourceExtractFreeChipBounds(void); 56 56 57 58 57 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
