Changeset 344 in Sophya for trunk/SophyaPI/PIext/pistlist.cc
- Timestamp:
- Aug 2, 1999, 6:52:49 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pistlist.cc
r205 r344 101 101 } 102 102 103 /* --Methode-- */ 104 void PIStarList::AppendTextInfo(string& info, double xmin, double ymin, double xmax, double ymax) 105 { 106 BStar *sti; 107 double xp,yp; 108 double flx,fnd; 109 char buff[128]; 110 int ncnt = 0; 111 sprintf(buff,"PIStarList: NStars \n", mStL->NbStars() ); 112 info += buff; 113 info += " Num: XPos YPos Flux Fond \n"; 114 for (int i=0; i<mStL->NbStars(); i++) { 115 sti = mStL->Star(i); 116 if ( !(sti->Nice(BStar::flagOK)) ) continue; 117 flx = sti->Flux(); 118 if ( (flx < mFmin) || (flx > mFmax) ) continue; 119 xp = sti->PosX(); yp = sti->PosY(); 120 if ( (xp < xmin) || (xp > xmax) || (yp < ymin) || (yp > ymax) ) continue; 121 ncnt++; 122 if (ncnt > 101) continue; 123 fnd = sti->Fond(); 124 sprintf(buff,"%6d: %8.3g %8.3g %8.3g %8.3g \n", i, xp, yp, flx, fnd); 125 info += buff; 126 } 127 if (ncnt >= 101) info += " .... \n"; 128 sprintf(buff," %d stars inside selected region \n", ncnt); 129 info += buff; 130 return; 131 }
Note:
See TracChangeset
for help on using the changeset viewer.