void drstemp82(fits &file, double beg, double end) { UInt_t offset = file.GetUInt("MJDREF"); if (beg < 30000) beg+=offset; if (end < 30000) end+=offset; double time; file.SetPtrAddress("Time", &time); float *temp = (float*)file.SetPtrAddress("temp"); double avgmin = 0; double avgmax = 0; double rmsmin = 0; double rmsmax = 0; int cnt = 0; double lastavgmin = -1; double lastavgmax = -1; double lastrmsmin = -1; double lastrmsmax = -1; double diff = -1; while (file.GetNextRow()) { time += offset; if (time>end) break; double mn = 0; double mx = 0; double rn = 0; double rx = 0; for (int i=1; i<=40; i++) { mn += temp[i]; rn += temp[i]*temp[i]; mx += temp[i+41]; rx += temp[i+41]*temp[i+41]; } mn /= 40; mx /= 40; rn /= 40; rx /= 40; if (timeend) break; double mn = 0; double rn = 0; for (int i=0; i<=160; i++) { mn += temp[i]; rn += temp[i]*temp[i]; } mn /= 160; rn /= 160; if (time