Changeset 13373 for trunk/psModules/src/objects/pmSourcePhotometry.c
- Timestamp:
- May 14, 2007, 3:39:40 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSourcePhotometry.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourcePhotometry.c
r13034 r13373 3 3 * @author EAM, IfA; GLG, MHPCC 4 4 * 5 * @version $Revision: 1.2 4$ $Name: not supported by cvs2svn $6 * @date $Date: 2007-0 4-26 01:20:29$5 * @version $Revision: 1.25 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2007-05-14 13:39:40 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 382 382 383 383 const psImage *Pi = Mi->pixels; 384 assert (Pi != NULL); 384 385 const psImage *Pj = Mj->pixels; 386 assert (Pj != NULL); 385 387 386 388 const psImage *Wi = Mi->weight; 389 if (!unweighted_sum) { 390 assert (Wi != NULL); 391 } 387 392 388 393 const psImage *Ti = Mi->maskObj; 394 assert (Ti != NULL); 389 395 const psImage *Tj = Mj->maskObj; 396 assert (Tj != NULL); 390 397 391 398 Xs = PS_MAX (Pi->col0, Pj->col0); … … 438 445 439 446 const psImage *Pi = Mi->pixels; 447 assert (Pi != NULL); 440 448 const psImage *Pj = Mj->pixels; 449 assert (Pj != NULL); 441 450 442 451 const psImage *Wi = Mi->weight; 452 if (!unweighted_sum) { 453 assert (Wi != NULL); 454 } 443 455 444 456 const psImage *Ti = Mi->maskObj; 457 assert (Ti != NULL); 445 458 const psImage *Tj = Mj->maskObj; 459 assert (Tj != NULL); 446 460 447 461 Xs = PS_MAX (Pi->col0, Pj->col0); … … 489 503 490 504 const psImage *Pi = Mi->pixels; 505 assert (Pi != NULL); 491 506 const psImage *Wi = Mi->weight; 507 if (!unweighted_sum) { 508 assert (Wi != NULL); 509 } 492 510 const psImage *Ti = Mi->maskObj; 511 assert (Ti != NULL); 493 512 494 513 // note that this is addressing the same image pixels, … … 559 578 560 579 const psImage *Pi = Mi->modelFlux; 580 assert (Pi != NULL); 561 581 const psImage *Wi = Mi->weight; 582 if (!unweighted_sum) { 583 assert (Wi != NULL); 584 } 562 585 const psImage *Ti = Mi->maskObj; 586 assert (Ti != NULL); 563 587 564 588 for (int yi = 0; yi < Pi->numRows; yi++) { … … 607 631 608 632 const psImage *Pi = Mi->modelFlux; 633 assert (Pi != NULL); 609 634 const psImage *Pj = Mj->modelFlux; 635 assert (Pj != NULL); 610 636 611 637 const psImage *Wi = Mi->weight; 638 if (!unweighted_sum) { 639 assert (Wi != NULL); 640 } 612 641 613 642 const psImage *Ti = Mi->maskObj; 643 assert (Ti != NULL); 614 644 const psImage *Tj = Mj->maskObj; 645 assert (Tj != NULL); 615 646 616 647 Xs = PS_MAX (Pi->col0, Pj->col0); … … 663 694 664 695 const psImage *Pi = Mi->pixels; 696 assert (Pi != NULL); 665 697 const psImage *Pj = Mj->modelFlux; 698 assert (Pj != NULL); 666 699 667 700 const psImage *Wi = Mi->weight; 701 if (!unweighted_sum) { 702 assert (Wi != NULL); 703 } 668 704 669 705 const psImage *Ti = Mi->maskObj; 706 assert (Ti != NULL); 670 707 const psImage *Tj = Mj->maskObj; 708 assert (Tj != NULL); 671 709 672 710 Xs = PS_MAX (Pi->col0, Pj->col0);
Note:
See TracChangeset
for help on using the changeset viewer.
