12 lines
278 B
C++
12 lines
278 B
C++
#include "xyz2shc.h"
|
|
|
|
void XYZ2SHC::CalWd(){
|
|
wdTwd_.resize(obs_num_,0.0);
|
|
|
|
ProgressBar *bar = new ProgressBar(obs_num_,"Calculating Wd");
|
|
for (int i = 0; i < obs_num_; i++){
|
|
bar->Progressed(i);
|
|
wdTwd_[i] = 1.0/(obs_point_[i].dev*obs_point_[i].dev*obs_num_);
|
|
}
|
|
return;
|
|
} |