Changeset 18163 for trunk/psModules/src/camera/pmFPAWrite.c
- Timestamp:
- Jun 17, 2008, 12:16:38 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAWrite.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAWrite.c
r18027 r18163 128 128 static bool cellWrite(pmCell *cell, // Cell to write 129 129 psFits *fits, // FITS file to which to write 130 p sDB *db, // Database handle for "concepts" update130 pmConfig *config, // Configuration 131 131 bool blank, // Write a blank PHU? 132 132 fpaWriteType type // Type to write … … 178 178 static bool chipWrite(pmChip *chip, // Chip to write 179 179 psFits *fits, // FITS file to which to write 180 p sDB *db, // Database handle for "concepts" update180 pmConfig *config, // Configuration 181 181 bool blank, // Write a blank PHU? 182 182 bool recurse, // Recurse to lower levels? … … 228 228 for (int i = 0; i < cells->n; i++) { 229 229 pmCell *cell = cells->data[i]; // The cell of interest 230 if (!cellWrite(cell, fits, db, false, type)) {230 if (!cellWrite(cell, fits, config, false, type)) { 231 231 psError(PS_ERR_IO, false, "Unable to write Chip.\n"); 232 232 return false; … … 242 242 static bool fpaWrite(pmFPA *fpa, // FPA to write 243 243 psFits *fits, // FITS file to which to write 244 p sDB *db, // Database handle for "concepts" update244 pmConfig *config, // Configuration 245 245 bool blank, // Write a blank PHU? 246 246 bool recurse, // Recurse to lower levels? … … 291 291 for (int i = 0; i < chips->n; i++) { 292 292 pmChip *chip = chips->data[i]; // The chip of interest 293 if (!chipWrite(chip, fits, db, false, true, type)) {293 if (!chipWrite(chip, fits, config, false, true, type)) { 294 294 psError(PS_ERR_IO, false, "Unable to write FPA.\n"); 295 295 return false; … … 372 372 373 373 374 bool pmCellWrite(pmCell *cell, psFits *fits, p sDB *db, bool blank)374 bool pmCellWrite(pmCell *cell, psFits *fits, pmConfig *config, bool blank) 375 375 { 376 376 PS_ASSERT_PTR_NON_NULL(cell, false); 377 377 PS_ASSERT_PTR_NON_NULL(fits, false); 378 return cellWrite(cell, fits, db, blank, FPA_WRITE_TYPE_IMAGE);379 } 380 381 bool pmChipWrite(pmChip *chip, psFits *fits, p sDB *db, bool blank, bool recurse)378 return cellWrite(cell, fits, config, blank, FPA_WRITE_TYPE_IMAGE); 379 } 380 381 bool pmChipWrite(pmChip *chip, psFits *fits, pmConfig *config, bool blank, bool recurse) 382 382 { 383 383 PS_ASSERT_PTR_NON_NULL(chip, false); 384 384 PS_ASSERT_PTR_NON_NULL(fits, false); 385 return chipWrite(chip, fits, db, blank, recurse, FPA_WRITE_TYPE_IMAGE);386 } 387 388 bool pmFPAWrite(pmFPA *fpa, psFits *fits, p sDB *db, bool blank, bool recurse)385 return chipWrite(chip, fits, config, blank, recurse, FPA_WRITE_TYPE_IMAGE); 386 } 387 388 bool pmFPAWrite(pmFPA *fpa, psFits *fits, pmConfig *config, bool blank, bool recurse) 389 389 { 390 390 PS_ASSERT_PTR_NON_NULL(fpa, false); 391 391 PS_ASSERT_PTR_NON_NULL(fits, false); 392 return fpaWrite(fpa, fits, db, blank, recurse, FPA_WRITE_TYPE_IMAGE);393 } 394 395 396 bool pmCellWriteMask(pmCell *cell, psFits *fits, p sDB *db, bool blank)392 return fpaWrite(fpa, fits, config, blank, recurse, FPA_WRITE_TYPE_IMAGE); 393 } 394 395 396 bool pmCellWriteMask(pmCell *cell, psFits *fits, pmConfig *config, bool blank) 397 397 { 398 398 PS_ASSERT_PTR_NON_NULL(cell, false); 399 399 PS_ASSERT_PTR_NON_NULL(fits, false); 400 return cellWrite(cell, fits, db, blank, FPA_WRITE_TYPE_MASK);401 } 402 403 bool pmChipWriteMask(pmChip *chip, psFits *fits, p sDB *db, bool blank, bool recurse)400 return cellWrite(cell, fits, config, blank, FPA_WRITE_TYPE_MASK); 401 } 402 403 bool pmChipWriteMask(pmChip *chip, psFits *fits, pmConfig *config, bool blank, bool recurse) 404 404 { 405 405 PS_ASSERT_PTR_NON_NULL(chip, false); 406 406 PS_ASSERT_PTR_NON_NULL(fits, false); 407 return chipWrite(chip, fits, db, blank, recurse, FPA_WRITE_TYPE_MASK);408 } 409 410 bool pmFPAWriteMask(pmFPA *fpa, psFits *fits, p sDB *db, bool blank, bool recurse)407 return chipWrite(chip, fits, config, blank, recurse, FPA_WRITE_TYPE_MASK); 408 } 409 410 bool pmFPAWriteMask(pmFPA *fpa, psFits *fits, pmConfig *config, bool blank, bool recurse) 411 411 { 412 412 PS_ASSERT_PTR_NON_NULL(fpa, false); 413 413 PS_ASSERT_PTR_NON_NULL(fits, false); 414 return fpaWrite(fpa, fits, db, blank, recurse, FPA_WRITE_TYPE_MASK);415 } 416 417 418 bool pmCellWriteWeight(pmCell *cell, psFits *fits, p sDB *db, bool blank)414 return fpaWrite(fpa, fits, config, blank, recurse, FPA_WRITE_TYPE_MASK); 415 } 416 417 418 bool pmCellWriteWeight(pmCell *cell, psFits *fits, pmConfig *config, bool blank) 419 419 { 420 420 PS_ASSERT_PTR_NON_NULL(cell, false); 421 421 PS_ASSERT_PTR_NON_NULL(fits, false); 422 return cellWrite(cell, fits, db, blank, FPA_WRITE_TYPE_WEIGHT);423 } 424 425 bool pmChipWriteWeight(pmChip *chip, psFits *fits, p sDB *db, bool blank, bool recurse)422 return cellWrite(cell, fits, config, blank, FPA_WRITE_TYPE_WEIGHT); 423 } 424 425 bool pmChipWriteWeight(pmChip *chip, psFits *fits, pmConfig *config, bool blank, bool recurse) 426 426 { 427 427 PS_ASSERT_PTR_NON_NULL(chip, false); 428 428 PS_ASSERT_PTR_NON_NULL(fits, false); 429 return chipWrite(chip, fits, db, blank, recurse, FPA_WRITE_TYPE_WEIGHT);430 } 431 432 bool pmFPAWriteWeight(pmFPA *fpa, psFits *fits, p sDB *db, bool blank, bool recurse)429 return chipWrite(chip, fits, config, blank, recurse, FPA_WRITE_TYPE_WEIGHT); 430 } 431 432 bool pmFPAWriteWeight(pmFPA *fpa, psFits *fits, pmConfig *config, bool blank, bool recurse) 433 433 { 434 434 PS_ASSERT_PTR_NON_NULL(fpa, false); 435 435 PS_ASSERT_PTR_NON_NULL(fits, false); 436 return fpaWrite(fpa, fits, db, blank, recurse, FPA_WRITE_TYPE_WEIGHT);436 return fpaWrite(fpa, fits, config, blank, recurse, FPA_WRITE_TYPE_WEIGHT); 437 437 } 438 438
Note:
See TracChangeset
for help on using the changeset viewer.
