Changeset 8405


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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8403 r8405  
    3636     - adapted building of query for the case, that fRunMin=0
    3737
     38   * datacenter/macros/filloptical.C:
     39     - adapted such, that files from telescopes in Tuorla can also be
     40       handeled
     41     - return 3 in case the coordinates of an object are not available
     42       in the database
     43
     44   * datacenter/scripts/copyscript:
     45     - added case for return code 3 for filloptical.C
     46
     47   * datacenter/macros/setupdb.C:
     48     - added table OpticalData
     49
     50   * datacenter/tools/fillobjects.C:
     51     - added comment
     52
     53   * datacenter/tools/fillobjects2.C:
     54     - adapted comment
     55     - adapted reading to new format of file (different object name
     56       convention)
     57
     58   * datacenter/resources/TeVsources.txt:
     59     - added (file containing the positions of the objects observed by
     60       the Tuorla Observatory and KVA)
     61
     62   * datacenter/resources/good_compstars.txt:
     63     - added (file containing the magnitudes and colour of the objects
     64       observed by the Tuorla Observatory and KVA)
     65
     66   * datacenter/resources/compstars.txt:
     67     - added (like good_compstars, but containing more data, which
     68       has been left out in the other file, as it is not accurate
     69       enough)
     70
    3871
    3972
  • trunk/MagicSoft/Mars/datacenter/macros/setupdb.C

    r8127 r8405  
    686686        ") MAX_ROWS=256"));
    687687
     688    list.Add(new TObjString(
     689        "CREATE TABLE `OpticalData` ("
     690        "  `fOpticalDataKEY`     int(11)              NOT NULL auto_increment,"
     691        "  `fTimestamp`          datetime             NOT NULL default '0000-00-00 00:00:00',"
     692        "  `fExposure`           smallint(5) unsigned NOT NULL default '0',"
     693        "  `fFitsFileKEY`        smallint(5) unsigned NOT NULL default '0',"
     694        "  `fObjectKEY`          smallint(5) unsigned NOT NULL default '0',"
     695        "  `fSkyLevel`           float(6,1)                    default NULL,"
     696        "  `fFWHM`               float(4,2)                    default NULL,"
     697        "  `fApertureRadius`     float(3,1)                    default NULL,"
     698        "  `fInstrumentalMag`    float(7,4)                    default NULL,"
     699        "  `fInstrumentalMagErr` float(6,4)                    default NULL,"
     700        "  `fStatusKEY`          smallint(5) unsigned NOT NULL default '0',"
     701        "  `fZenithDistance`     float(4,1)                    default NULL,"
     702        "  `fBandKEY`            smallint(5) unsigned NOT NULL default '0',"
     703        "  `fFilterKEY`          smallint(5) unsigned NOT NULL default '0',"
     704        "  `fTelescopeKEY`       smallint(5) unsigned NOT NULL default '0',"
     705        "  `fCCDKEY`             smallint(5) unsigned NOT NULL default '0',"
     706        "  PRIMARY KEY  (`fOpticalDataKEY`)"));
     707
    688708    TSQLResult *res;
    689709
  • 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.