本文整理汇总了C++中reference::To::get_dedispersed方法的典型用法代码示例。如果您正苦于以下问题:C++ To::get_dedispersed方法的具体用法?C++ To::get_dedispersed怎么用?C++ To::get_dedispersed使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类reference::To
的用法示例。
在下文中一共展示了To::get_dedispersed方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: finalize
void psradd::finalize ()
{
if (log_file)
fprintf (log_file, "\n");
if (reset_total)
return;
if (auto_add && auto_add_tscrunch)
{
if (verbose) cerr << "psradd: Auto add - tscrunching last "
<< total->integration_length()
<< " seconds of data." << endl;
total->tscrunch();
}
if (!time_direction)
{
// dedisperse to the new centre frequency
if (total->get_dedispersed())
total->dedisperse();
// correct Faraday rotation to the new centre frequency
if (total->get_faraday_corrected())
total->defaraday();
// re-compute the phase predictor to the new centre frequency
if (total->has_model() && total->has_ephemeris())
total->update_model ();
}
if (!testing)
{
if (verbose)
cerr << "psradd: Unloading archive: '" << unload_name << "'" << endl;
total->unload (unload_name);
}
}
示例2: main
//.........这里部分代码省略.........
lo->operator=(*hi);
hi->operator=(*tmp);
}
}
}
arch->set_bandwidth( -1.0 * arch->get_bandwidth() );
}
if (reset_weights) {
arch->uniform_weight(new_weight);
if (verbose)
cout << "All profile weights set to " << new_weight << endl;
}
if (rotate)
arch->rotate_phase (rphase);
if (scattered_power_correction) {
Pulsar::ScatteredPowerCorrection spc;
if (arch->get_state() == Signal::Stokes)
arch->convert_state(Signal::Coherence);
spc.correct (arch);
}
if (newdm)
{
arch->set_dispersion_measure(dm);
if (verbose)
cout << "Archive dispersion measure set to " << dm << endl;
if (arch->get_dedispersed())
{
arch->dedisperse();
if (verbose)
cout << "Archive re-dedipsersed" << endl;
}
}
if (dedisperse)
{
arch->dedisperse();
if (verbose)
cout << "Archive dedipsersed" << endl;
}
if (dededisperse)
{
Pulsar::Dispersion correction;
correction.revert (arch);
}
if (stokesify) {
if (arch->get_npol() != 4)
throw Error(InvalidState, "Convert to Stokes",
"Not enough polarisation information");
arch->convert_state(Signal::Stokes);
if (verbose)
cout << "Archive converted to Stokes parameters" << endl;
}
if (unstokesify) {
if (arch->get_npol() != 4)