Changeset 25274
- Timestamp:
- Sep 4, 2009, 11:09:23 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/psphot/src/psphotVisual.c
r24636 r25274 14 14 # if (HAVE_KAPA) 15 15 # include <kapa.h> 16 17 bool pmVisualLimitsFromVectors (Graphdata *graphdata, psVector *xVec, psVector *yVec); 16 18 17 19 // functions used to visualize the analysis as it goes … … 448 450 overlay[Noverlay].dx = 2.0*axes.major; 449 451 overlay[Noverlay].dy = 2.0*axes.minor; 452 450 453 overlay[Noverlay].angle = -axes.theta * PS_DEG_RAD; // XXXXXXXX the axes angle is negative to display of object on kapa 454 // XXX fixed?? 455 451 456 overlay[Noverlay].text = NULL; 452 457 Noverlay ++; … … 1624 1629 if (source->type != PM_SOURCE_TYPE_STAR) continue; 1625 1630 if (!isfinite (source->crNsigma)) continue; 1631 if (!isfinite (source->peak->flux)) continue; 1632 if (source->peak->flux < 0) continue; 1626 1633 1627 1634 x->data.F32[n] = -2.5*log10(source->peak->flux); … … 1679 1686 if (source->type != PM_SOURCE_TYPE_STAR) continue; 1680 1687 if (!isfinite (source->extNsigma)) continue; 1688 if (!isfinite (source->peak->flux)) continue; 1689 if (source->peak->flux < 0) continue; 1681 1690 1682 1691 x->data.F32[n] = -2.5*log10(source->peak->flux); … … 1828 1837 psWarning("Unable to read option"); 1829 1838 } 1839 return true; 1840 } 1841 1842 bool psphotVisualShowPetrosian (pmSource *source, pmPetrosian *petrosian) { 1843 1844 KiiOverlay overlay[2]; 1845 1846 if (source == NULL) return true; 1847 1848 if (!pmVisualIsVisual()) return true; 1849 1850 if (kapa == -1) { 1851 fprintf (stderr, "kapa not opened, skipping\n"); 1852 return false; 1853 } 1854 1855 overlay[0].type = KII_OVERLAY_CIRCLE; 1856 overlay[0].x = source->peak->xf; 1857 overlay[0].y = source->peak->yf; 1858 overlay[0].dx = 2.0*petrosian->petrosianRadius; 1859 overlay[0].dy = 2.0*petrosian->petrosianRadius*petrosian->axes.minor/petrosian->axes.major; 1860 overlay[0].angle = petrosian->axes.theta * PS_DEG_RAD; 1861 overlay[0].text = NULL; 1862 1863 overlay[1].type = KII_OVERLAY_CIRCLE; 1864 overlay[1].x = source->peak->xf; 1865 overlay[1].y = source->peak->yf; 1866 overlay[1].dx = 4.0*petrosian->petrosianRadius; 1867 overlay[1].dy = 4.0*petrosian->petrosianRadius*petrosian->axes.minor/petrosian->axes.major; 1868 overlay[1].angle = petrosian->axes.theta * PS_DEG_RAD; 1869 overlay[1].text = NULL; 1870 1871 KiiLoadOverlay (kapa, overlay, 2, "red"); 1872 1830 1873 return true; 1831 1874 }
Note:
See TracChangeset
for help on using the changeset viewer.
