Skip to content
Snippets Groups Projects
Commit 36fb776b authored by Robert Butora's avatar Robert Butora
Browse files

vlkb-obscore: adds extra-cards into header before using the header

parent 939c2fa5
No related branches found
No related tags found
No related merge requests found
......@@ -320,12 +320,19 @@ void database::dbAddSurvey(int sid, const string groups,
// 4. set optional values which are available (in header or in metadata)
try
{
const std::vector<fitsfiles::Hdu> all_hdu{fitsfiles::fname2hdrstr(pathname, max_hdupos, min_hdupos, &in_keys)};
ostringstream restfrq;
restfrq << "RESTFRQ = " << setw(20) << surv.restFrequency << " / VLKB added";
vector<string> extra_cards{restfrq.str()};
for(size_t i=0; i<extra_cards.size(); i++) LOG_STREAM << "extra_cards["<< i<<"]: "<< extra_cards[i] << endl;
const std::vector<fitsfiles::Hdu> all_hdu{fitsfiles::fname2hdrstr(pathname, extra_cards, max_hdupos, min_hdupos, &in_keys)};
//LOG_STREAM << "HDU-count: " << to_string(all_hdu.size()) << endl;
for(fitsfiles::Hdu hdu : all_hdu)
{
LOG_STREAM << "HDU: " << hdu.m_header << endl;
cmdInsert.appendRow(
calib_level,
obs_collection,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment