|
User Documentation |
||||||||
| prev file | next file | |||||||||
| SUMMARY: fields | routine DETAILS: routine | |||||||||
./guide File accumulate.pro
accumulate |
procedure accumulate, data, tint, tsys[, teff][, f_delt], [wt=float], [accum_buf=accum_struct structure], [/noweight] |
Add some data into an accum_struct. This procedure is in GUIDE because of the nature of system variables. They are passed by value and not by reference, which would make this inefficient as temporary copies are continuously made - both in calling this procedure and again in setting fields in !g.accumbuf. So, this procedure needs to optionally be aware of the global structure, although it will use a user supplied one. The data is : sum(wt*data) The times are summed: sum(teff), sum(tint) The wt is summed: sum(wt) The tsys_sq is : sqrt(sum(wt*Tsys^2)) This needs to eventually take into consideration any reference Tsys. When that happens Unipops does it this way: tsys_ref^2 = sum(teff)/sum(teff/Tsys_ref^2) f_delt is used as a check to see if the channel spacing matches the ongoing average. If not supplied, the check is not done. If a weight (wt) is not supplied, it will be teff/Tsys^2 If teff is not supplied, tint will be used in its place.