...
This commit is contained in:
@@ -23,9 +23,10 @@ int main(int narg, char* argv[])
|
||||
size_t decM = 10; // number of B-spline inner knots along DEC-axis
|
||||
|
||||
double ha_step = 360.0_degs / (haM - 1);
|
||||
fit_pcm_data.bspline.knotsX.resize(haM); // [0, 360]
|
||||
fit_pcm_data.bspline.knotsX.resize(haM);
|
||||
for (size_t i = 0; i < haM; ++i) {
|
||||
fit_pcm_data.bspline.knotsX[i] = i * ha_step;
|
||||
// fit_pcm_data.bspline.knotsX[i] = i * ha_step; // [0, 360]
|
||||
fit_pcm_data.bspline.knotsX[i] = i * ha_step - std::numbers::pi; // [-180, 180]
|
||||
}
|
||||
|
||||
double dec_start = -25.0_degs;
|
||||
@@ -162,11 +163,10 @@ int main(int narg, char* argv[])
|
||||
// }
|
||||
|
||||
for (size_t i = 0; i < pcm_fitter.numberOfPoints(); ++i) {
|
||||
std::println("{} {} {} {:6.2f}% ({:5.3f}) {} {} {:6.2f}% ({:5.3f}) (HA = {} DEC = {})", i,
|
||||
std::println("{} {} {} {:6.2f}% {} {} {:6.2f}% (HA = {} DEC = {})", i,
|
||||
MccAngleFancyString(pcm_tab[i].res.x()), MccAngleFancyString(fr.model_colonRES[i]),
|
||||
std::abs(fr.colon_err[i]) / pcm_tab[i].res.x() * 100.0, fr.colon_weight[i],
|
||||
MccAngleFancyString(pcm_tab[i].res.y()), MccAngleFancyString(fr.model_colatRES[i]),
|
||||
std::abs(fr.colat_err[i]) / pcm_tab[i].res.y() * 100.0, fr.colat_weight[i],
|
||||
std::abs(fr.colon_err[i]) / pcm_tab[i].res.x() * 100.0, MccAngleFancyString(pcm_tab[i].res.y()),
|
||||
MccAngleFancyString(fr.model_colatRES[i]), std::abs(fr.colat_err[i]) / pcm_tab[i].res.y() * 100.0,
|
||||
pcm_tab[i].hw.x().sexagesimal(true), pcm_tab[i].hw.y().sexagesimal());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user