Commit 7e3eba56a9a180c0350bd587a19efd50d6c8aee4

Authored by Jürgen Knödlseder
1 parent 92a5ce0f

Handle also compressed calibration database index file.

Showing 1 changed file with 8 additions and 2 deletions
src/obs/GCaldb.cpp
... ... @@ -420,8 +420,14 @@ std::string GCaldb::cifname(const std::string& mission, const std::string& instr
420 420  
421 421 // Verify that CIF exists
422 422 if (access(cif.c_str(), F_OK) != 0) {
423   - throw GException::file_not_found(G_CIFNAME, cif,
424   - "Calibration Index File (CIF) not found.");
  423 +
  424 + // Check gzipped version
  425 + cif += ".gz";
  426 + if (access(cif.c_str(), F_OK) != 0) {
  427 + throw GException::file_not_found(G_CIFNAME, cif,
  428 + "Calibration Index File (CIF) not found.");
  429 + }
  430 +
425 431 }
426 432  
427 433 // Return cif
... ...