Changeset 19389 for trunk/FACT++


Ignore:
Timestamp:
11/13/18 16:16:05 (6 years ago)
Author:
tbretz
Message:
As NIGHT is bound to the observatory location, write a new keywork OBSERVAT which corresponds to PRESET_OBSERVATORY.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/DataWriteFits2.cc

    r18889 r19389  
    88#include "externals/factofits.h"
    99#include "externals/DrsCalib.h"
     10
     11#ifdef HAVE_NOVA
     12#include "externals/nova.h"
     13#endif
    1014
    1115using namespace std;
     
    5963    fFile->SetDefaultKeys();
    6064    fFile->SetInt("NIGHT", GetNight(), "Night as int");
     65#ifdef HAVE_NOVA
     66    fFile->SetStr("OBSERVAT", Nova::LnLatPosn::preset(), "Observatory name (see nova.h)");
     67#endif
    6168
    6269    // ================ Header keys for raw-data =================
  • trunk/FACT++/src/FitsFile.cc

    r19064 r19389  
    1515// **************************************************************************
    1616#include "FitsFile.h"
     17
     18#ifdef HAVE_NOVA
     19#include "nova.h"
     20#endif
    1721
    1822using namespace std;
     
    3741        WriteKey("DATE",     now.Iso(), "File creation date");
    3842        WriteKey("NIGHT",    now.NightAsInt(), "Night as int");
     43#ifdef HAVE_NOVA
     44        WriteKey("OBSERVAT", Nova::LnLatPosn::preset(), "Observatory name (see nova.h)");
     45#endif
    3946        WriteKey("TIMESYS",  "UTC", "Time system");
    4047        WriteKey("TIMEUNIT", "d",   "Time given in days w.r.t. to MJDREF");
Note: See TracChangeset for help on using the changeset viewer.