Changeset 8405 for trunk/MagicSoft/Mars/datacenter/tools
- Timestamp:
- 04/12/07 22:00:49 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/tools/fillobjects.C
r8215 r8405 29 29 // 30 30 // read file with magnitudes and colour for the objects 31 // File /home/operator/Documents/optical/good_compstars_R.txt 31 // File: resources/good_compstars_R.txt 32 // 33 // In resources also the file compstars_R.txt can be found, which contains 34 // more stars. As the value for the magnitude for these stars is not good 35 // enough, they are not inserted into the database, as the values there are 36 // used for the calculation of the extinction. 37 // E.g. resources/good_compstars_R.txt does not contain the blazars itself. 32 38 // 33 39 /////////////////////////////////////////////////////////////////////////// -
trunk/MagicSoft/Mars/datacenter/tools/fillobjects2.C
r8215 r8405 28 28 // ============== 29 29 // 30 // read file with coordinates for the objects 31 // File /home/operator/Documents/optical/TeVsources.txt30 // read file with coordinates for the objects (only the blazars) 31 // File resources/TeVsources.txt 32 32 // 33 33 /////////////////////////////////////////////////////////////////////////// … … 99 99 100 100 TObjArray *arr = line.Tokenize(" "); 101 if (arr->GetEntries()!=1 1)101 if (arr->GetEntries()!=10) 102 102 { 103 103 cout << "WARNING: line with less or more than 11 arguments found " << endl; … … 105 105 continue; 106 106 } 107 object=Form("%s _%s", (*arr)[0]->GetName(), (*arr)[1]->GetName());108 RA=Form("%s:%s:%s", (*arr)[ 3]->GetName(), (*arr)[4]->GetName(), (*arr)[5]->GetName());109 DEC=Form("%s:%s:%s", (*arr)[ 6]->GetName(), (*arr)[7]->GetName(), (*arr)[8]->GetName());107 object=Form("%s/BL",(*arr)[0]->GetName()); 108 RA=Form("%s:%s:%s", (*arr)[2]->GetName(), (*arr)[3]->GetName(), (*arr)[4]->GetName()); 109 DEC=Form("%s:%s:%s", (*arr)[5]->GetName(), (*arr)[6]->GetName(), (*arr)[7]->GetName()); 110 110 delete arr; 111 111 // cout << "RA: " << RA << " - DEC " << DEC << endl; … … 113 113 MAstro::Coordinate2Angle(DEC, dec); 114 114 // cout << "ra: " << ra << " - dec " << dec << endl; 115 object.ReplaceAll(" ", "_");116 object=Form("%s/BL", object.Data());117 115 118 116 query=Form("fRightAscension=%.7f, fDeclination=%.7f, fEpoche=2000",
Note:
See TracChangeset
for help on using the changeset viewer.