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?
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.getfunction has aWe 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_headerfunction ofObservationHeader.cppis essential. Any ideas?