Ignore:
Timestamp:
04/12/07 22:00:49 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/tools/fillobjects.C

    r8215 r8405  
    2929//
    3030// 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.
    3238//
    3339///////////////////////////////////////////////////////////////////////////
  • trunk/MagicSoft/Mars/datacenter/tools/fillobjects2.C

    r8215 r8405  
    2828// ==============
    2929//
    30 // read file with coordinates for the objects
    31 // File /home/operator/Documents/optical/TeVsources.txt
     30// read file with coordinates for the objects (only the blazars)
     31// File resources/TeVsources.txt
    3232//
    3333///////////////////////////////////////////////////////////////////////////
     
    9999
    100100        TObjArray *arr = line.Tokenize(" ");
    101         if (arr->GetEntries()!=11)
     101        if (arr->GetEntries()!=10)
    102102        {
    103103            cout << "WARNING: line with less or more than 11 arguments found " << endl;
     
    105105            continue;
    106106        }
    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());
    110110        delete arr;
    111111//        cout << "RA: " << RA << " -  DEC " << DEC << endl;
     
    113113        MAstro::Coordinate2Angle(DEC, dec);
    114114//        cout << "ra: " << ra << " -  dec " << dec << endl;
    115         object.ReplaceAll(" ", "_");
    116         object=Form("%s/BL", object.Data());
    117115
    118116        query=Form("fRightAscension=%.7f, fDeclination=%.7f, fEpoche=2000",
Note: See TracChangeset for help on using the changeset viewer.