Ignore:
Timestamp:
04/14/03 17:54:32 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/gui/MGStarguider.cc

    r1953 r1959  
    5656    IDM_kPNG,
    5757    IDM_kOnce,
     58    IDM_kStretch,
    5859    IDM_kUseFileRaDec,
    5960    IDM_kContinous,
     
    204205    fDisplay->AddEntry("Sao &Catalog", IDM_kCatalog);
    205206    fDisplay->AddEntry("Starguider",   IDM_kStarguider);
     207    fDisplay->AddEntry("Stretch",      IDM_kStretch);
    206208    fDisplay->DisableEntry(IDM_kStarguider);
     209    fDisplay->CheckEntry(IDM_kStretch);
    207210    fDisplay->Associate(this);
    208211    fList->Add(fDisplay);
     
    637640            case IDM_kStarguider:
    638641                Toggle(fDisplay, IDM_kStarguider);
     642                gSystem->Unlink("tracking_error.txt");
    639643                return kTRUE;
    640644
     
    648652                    fDisplay->DisableEntry(IDM_kStarguider);
    649653                }
     654                return kTRUE;
     655
     656            case IDM_kStretch:
     657                Toggle(fDisplay, IDM_kStretch);
    650658                return kTRUE;
    651659
     
    928936    pos1 -= pos0;
    929937
    930     ofstream fout2("tracking_error.txt");
     938    ofstream fout2("tracking_error.txt", ios::app);
    931939    fout2 << setprecision(10) << fSao->GetMjd()-52000 << " " << -pos1.Alt() << " " << pos1.Az() << endl;
    932940
     
    10171025        return;
    10181026
    1019     cout << "Img: " << n << endl;
     1027    //cout << "Img: " << n << endl;
    10201028
    10211029    byte c[768*576];
    10221030    for (int i=0; i<768*576; i++)
    10231031        c[i] = (byte)(myimg[i]/fIntRate+.5);
     1032
     1033    if (fDisplay->IsEntryChecked(IDM_kStretch))
     1034        Filter::Stretch(c);
    10241035
    10251036    if (!fWritePictures->IsEntryEnabled(IDM_kStart) &&
Note: See TracChangeset for help on using the changeset viewer.