Skip to content

Need a cleaner way of reusing ObservationHeader #16

@vivekvenkris

Description

@vivekvenkris

Currently, ObservationHeader has all possible dada header parameters to encompass the wide variety of dada files that we have (antenna voltages, beams, stats). While reading dada files, only a subset of these parameters are present, and since the header.get function has a

    if(strcmp("unset", _buffer) == 0) {
        throw std::runtime_error(std::string("The header key ") + key +
                                 " was unset");
    }

We always hit a runtime error. I have now changed this into a warning, but a more elegant solution of having a subset of dada headers for each file class, that gets passed on to the read_dada_header function of ObservationHeader.cpp is essential. Any ideas?

Metadata

Metadata

Labels

Code reuse modificationsChanges needed for reusing existing code for other features

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions