Changeset 2212 for trunk/psLib/src/astronomy/psAstrometry.c
- Timestamp:
- Oct 27, 2004, 10:07:17 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astronomy/psAstrometry.c (modified) (21 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astronomy/psAstrometry.c
r2211 r2212 8 8 * @author George Gusciora, MHPCC 9 9 * 10 * @version $Revision: 1.4 5$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-10-27 19:58:54$10 * @version $Revision: 1.46 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-10-27 20:07:17 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 59 59 { 60 60 int i = 0; 61 PS_ CHECK_NULL_PTR(transform, 0);61 PS_PTR_CHECK_NULL(transform, 0); 62 62 63 63 for (i=2;i<(transform->x->nX);i++) { … … 114 114 double F = transform->y->coeff[0][1]; 115 115 116 PS_ CHECK_NULL_PTR(transform, NULL);116 PS_PTR_CHECK_NULL(transform, NULL); 117 117 psPlaneTransform *out = psAlloc(sizeof(psPlaneTransform)); 118 118 … … 286 286 const psObservatory* observatory) 287 287 { 288 PS_ CHECK_NULL_PTR(observatory, NULL);288 PS_PTR_CHECK_NULL(observatory, NULL); 289 289 psExposure* exp = psAlloc(sizeof(psExposure)); 290 290 … … 463 463 psGrommit* psGrommitAlloc(const psExposure* exp) 464 464 { 465 PS_ CHECK_NULL_PTR(exp, NULL);465 PS_PTR_CHECK_NULL(exp, NULL); 466 466 467 467 double date = psTimeToMJD(exp->time); … … 493 493 const psFPA* FPA) 494 494 { 495 PS_ CHECK_NULL_PTR(fpaCoord, NULL);496 PS_ CHECK_NULL_PTR(FPA, NULL);495 PS_PTR_CHECK_NULL(fpaCoord, NULL); 496 PS_PTR_CHECK_NULL(FPA, NULL); 497 497 psChip* tmpChip = NULL; 498 498 psPlane chipCoord; … … 517 517 const psFPA* FPA) 518 518 { 519 PS_ CHECK_NULL_PTR(fpaCoord, NULL);520 PS_ CHECK_NULL_PTR(FPA, NULL);521 PS_ CHECK_NULL_PTR(FPA->chips, NULL);519 PS_PTR_CHECK_NULL(fpaCoord, NULL); 520 PS_PTR_CHECK_NULL(FPA, NULL); 521 PS_PTR_CHECK_NULL(FPA->chips, NULL); 522 522 psArray* chips = FPA->chips; 523 523 psS32 nChips = chips->n; … … 545 545 const psChip* chip) 546 546 { 547 PS_ CHECK_NULL_PTR(chipCoord, NULL);548 PS_ CHECK_NULL_PTR(chip, NULL);547 PS_PTR_CHECK_NULL(chipCoord, NULL); 548 PS_PTR_CHECK_NULL(chip, NULL); 549 549 550 550 psPlane cellCoord; … … 588 588 const psCell* cell) 589 589 { 590 PS_ CHECK_NULL_PTR(inCoord, NULL);591 PS_ CHECK_NULL_PTR(cell, NULL);590 PS_PTR_CHECK_NULL(inCoord, NULL); 591 PS_PTR_CHECK_NULL(cell, NULL); 592 592 593 593 return (psPlaneTransformApply(outCoord, cell->toChip, inCoord)); … … 598 598 const psChip* chip) 599 599 { 600 PS_ CHECK_NULL_PTR(inCoord, NULL);601 PS_ CHECK_NULL_PTR(chip, NULL);600 PS_PTR_CHECK_NULL(inCoord, NULL); 601 PS_PTR_CHECK_NULL(chip, NULL); 602 602 603 603 return (psPlaneTransformApply(outCoord, chip->toFPA, inCoord)); … … 610 610 const psFPA* fpa) 611 611 { 612 PS_ CHECK_NULL_PTR(inCoord, NULL);613 PS_ CHECK_NULL_PTR(fpa, NULL);612 PS_PTR_CHECK_NULL(inCoord, NULL); 613 PS_PTR_CHECK_NULL(fpa, NULL); 614 614 615 615 return(psPlaneDistortApply(outCoord, fpa->toTangentPlane, inCoord, … … 624 624 const psGrommit* grommit) 625 625 { 626 PS_ CHECK_NULL_PTR(tpCoord, NULL);627 PS_ CHECK_NULL_PTR(grommit, NULL);626 PS_PTR_CHECK_NULL(tpCoord, NULL); 627 PS_PTR_CHECK_NULL(grommit, NULL); 628 628 629 629 double AOB = 0.0; … … 644 644 const psCell* cell) 645 645 { 646 PS_ CHECK_NULL_PTR(cellCoord, NULL);647 PS_ CHECK_NULL_PTR(cell, NULL);646 PS_PTR_CHECK_NULL(cellCoord, NULL); 647 PS_PTR_CHECK_NULL(cell, NULL); 648 648 649 649 return (psPlaneTransformApply(fpaCoord, cell->toFPA, cellCoord)); … … 656 656 const psCell* cell) 657 657 { 658 PS_ CHECK_NULL_PTR(cellCoord, NULL);659 PS_ CHECK_NULL_PTR(cell, NULL);658 PS_PTR_CHECK_NULL(cellCoord, NULL); 659 PS_PTR_CHECK_NULL(cell, NULL); 660 660 661 661 psPlane* fpaCoord = NULL; … … 688 688 const psCell* cell) 689 689 { 690 PS_ CHECK_NULL_PTR(cellCoord, NULL);691 PS_ CHECK_NULL_PTR(cell, NULL);690 PS_PTR_CHECK_NULL(cellCoord, NULL); 691 PS_PTR_CHECK_NULL(cell, NULL); 692 692 693 693 psPlane *tpCoord = NULL; … … 724 724 const psGrommit* grommit) 725 725 { 726 PS_ CHECK_NULL_PTR(in, NULL);727 PS_ CHECK_NULL_PTR(grommit, NULL);726 PS_PTR_CHECK_NULL(in, NULL); 727 PS_PTR_CHECK_NULL(grommit, NULL); 728 728 729 729 char* type = "RA"; … … 745 745 const psFPA* fpa) 746 746 { 747 PS_ CHECK_NULL_PTR(tpCoord, NULL);748 PS_ CHECK_NULL_PTR(fpa, NULL);747 PS_PTR_CHECK_NULL(tpCoord, NULL); 748 PS_PTR_CHECK_NULL(fpa, NULL); 749 749 750 750 return (psPlaneDistortApply(fpaCoord, fpa->fromTangentPlane, … … 756 756 const psChip* chip) 757 757 { 758 PS_ CHECK_NULL_PTR(fpaCoord, NULL);759 PS_ CHECK_NULL_PTR(chip, NULL);760 PS_ CHECK_NULL_PTR(chip->parent, NULL);758 PS_PTR_CHECK_NULL(fpaCoord, NULL); 759 PS_PTR_CHECK_NULL(chip, NULL); 760 PS_PTR_CHECK_NULL(chip->parent, NULL); 761 761 762 762 chipCoord = psPlaneTransformApply(chipCoord, chip->fromFPA, fpaCoord); … … 768 768 const psCell* cell) 769 769 { 770 PS_ CHECK_NULL_PTR(chipCoord, NULL);771 PS_ CHECK_NULL_PTR(cell, NULL);772 PS_ CHECK_NULL_PTR(cell->parent, NULL);770 PS_PTR_CHECK_NULL(chipCoord, NULL); 771 PS_PTR_CHECK_NULL(cell, NULL); 772 PS_PTR_CHECK_NULL(cell->parent, NULL); 773 773 774 774 cellCoord = psPlaneTransformApply(cellCoord, cell->fromChip, chipCoord); … … 782 782 const psCell* cell) 783 783 { 784 PS_ CHECK_NULL_PTR(skyCoord, NULL);785 PS_ CHECK_NULL_PTR(cell, NULL);784 PS_PTR_CHECK_NULL(skyCoord, NULL); 785 PS_PTR_CHECK_NULL(cell, NULL); 786 786 787 787 psChip *parChip = cell->parent; … … 813 813 const psCell* cell) 814 814 { 815 PS_ CHECK_NULL_PTR(skyCoord, NULL);816 PS_ CHECK_NULL_PTR(cell, NULL);815 PS_PTR_CHECK_NULL(skyCoord, NULL); 816 PS_PTR_CHECK_NULL(cell, NULL); 817 817 818 818 psPlane *tpCoord = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.
