Bug #1445

GCTAObservation::read_attributes() does not GObservation.id() and m_instrument

Added by Mayer Michael almost 10 years ago. Updated over 9 years ago.

Status:ClosedStart date:03/12/2015
Priority:NormalDue date:
Assigned To:Knödlseder Jürgen% Done:

100%

Category:-
Target version:1.0.0
Duration:

Description

There should be a line where the cta m_obs_id is transferred to the parent Observation object:

this->id(gammalib::string(m_obs_id))

In addition the string m_instrument should be set from the TELESCOP Header keyword.

I also realised that N_TELS is set to “100” while writing. This should be changed to use the input string, set by read_attributes().


Recurrence

No recurrence.

History

#1 Updated by Knödlseder Jürgen over 9 years ago

I agree with adding code to correctly handle the TELESCOP and N_TELS keywords, yet I would not copy the ID information as the ID information is provided by the XML file (in principle, the ID in the XML file could different from the OBS_ID of the FITS file; the former is a string while the latter is an integer number).

By copying over information you would overwrite the XML definition which would result confusion for the user.

#2 Updated by Knödlseder Jürgen over 9 years ago

  • Status changed from New to Closed
  • Assigned To set to Knödlseder Jürgen
  • Target version set to 1.0.0
  • % Done changed from 0 to 100

Done and in devel.

#3 Updated by Mayer Michael over 9 years ago

Thanks. I understand, I wasn’t aware that GObservation::m_id was set on XML reading.

#4 Updated by Mayer Michael over 9 years ago

To follow up on this, looking at the code I realised that there are still two attributes missing that are not ported through read() and write():
  • OBSERVER
  • TELLIST

Currently “string” ist written into the output FITS header. I think we should add these two attributes before the 1.0 release as well.

Also available in: Atom PDF