Changeset 18524


Ignore:
Timestamp:
06/25/16 23:37:21 (8 years ago)
Author:
Daniela Dorner
Message:
fixed bugs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/fact/processing/lidar.C

    r18522 r18524  
    1 void dust(const char *fname, double beg=0, double end=100000)
     1void lidar(const char *fname, double beg=0, double end=100000)
    22{
    33    fits file(fname);
     
    2727    while (file.GetNextRow())
    2828    {
     29        if (time<50000)
     30            time += 682607./45;
     31
     32        time += offset;
     33
    2934        if (time<beg)
    3035        {
     
    5055    if (cnt>0)
    5156    {
    52         cout << "result ";
    53         avg[0]/cnt << " ";
    54         avg[1]/cnt << " ";
    55         avg[2]/cnt << " ";
    56         avg[3]/cnt << endl;
     57        cout << "result " << avg[0]/cnt << " " << avg[1]/cnt << " " << avg[2]/cnt << " " << avg[3]/cnt << endl;
    5758        return;
    5859    }
    5960
    60     if (beg-lastt<time-end && (beg-last)*24*3600<10*60)
     61    if (beg-lastt<time-end && (beg-lastt)*24*3600<10*60)
    6162    {
    62         cout << "result ";
    63         trans[0] << " ";
    64         trans[1] << " ";
    65         trans[2] << " ";
    66         trans[3] << endl;
     63        cout << "result " << trans[0] << " " << trans[1] << " " << trans[2] << " " << trans[3] << endl;
    6764        return;
    6865    }
    6966    if (beg-lastt>time-end && (time-end)*24*3600<10*60)
    7067    {
    71         cout << "result ";
    72         t3 << " ";
    73         t6 << " ";
    74         t9 << " ";
    75         t12 << endl;
     68        cout << "result " << t3 << " " << t6 << " " << t9 << " " << t12 << endl;
    7669        return;
    7770    }
     71    cout << "result " << endl;
     72    return;
    7873}
Note: See TracChangeset for help on using the changeset viewer.