//! Construct from the parent Archive instance
Pulsar::Integration::Meta::Meta (const Archive* parent)
{
  set_telescope( parent->get_telescope() );
  set_coordinates( parent->get_coordinates() );

  set_centre_frequency( parent->get_centre_frequency() );
  set_bandwidth( parent->get_bandwidth() );
  set_dispersion_measure( parent->get_dispersion_measure() );
  set_dedispersed( parent->get_dedispersed() );

  set_rotation_measure( parent->get_rotation_measure() );
  set_faraday_corrected( parent->get_faraday_corrected() );

  const AuxColdPlasma* aux = parent->get<AuxColdPlasma> ();
  if (aux)
  {
    set_auxiliary_dispersion_corrected (aux->get_dispersion_corrected());
    set_auxiliary_birefringence_corrected (aux->get_birefringence_corrected());
  }
  else
  {
    set_auxiliary_dispersion_corrected (false);
    set_auxiliary_birefringence_corrected (false);
  }

  set_state( parent->get_state() );
  set_basis( parent->get_basis() );
}
Exemple #2
0
//! Construct from the parent Archive instance
Pulsar::Integration::Meta::Meta (const Archive* parent)
{
  set_centre_frequency( parent->get_centre_frequency() );
  set_bandwidth( parent->get_bandwidth() );
  set_dispersion_measure( parent->get_dispersion_measure() );
  set_dedispersed( parent->get_dedispersed() );
  set_rotation_measure( parent->get_rotation_measure() );
  set_faraday_corrected( parent->get_faraday_corrected() );
  set_state( parent->get_state() );
  set_basis( parent->get_basis() );
}