# include <ohana.h>
# include <loneos.h>
# include <signal.h>

typedef struct {
  double X;
  double Y;
  double R;
  double D;
  double M, dM;
  char   dophot;
  double sky;
  double fx, fy, df;
  double Mgal, Map;
  int found;
} Stars;

/* global variables set in parameter file */
char   ImageCat[256];
char   ImageTemplate[256];
char   CatTemplate[256];
char   GSCFILE[256];
char   CATDIR[256];
double DEFAULT_RADIUS, NSIGMA, SNLIMIT;
double ZeroPt;
int    VERBOSE;
int    SKIP_MISSED;
int    XOVERSCAN, YOVERSCAN;
int    XMIN, XMAX, YMIN, YMAX;
int    ACCEPT_ASTROM;

PhotCode *thiscode;

char DateKeyword[64];
char DateMode[64];
char UTKeyword[64];
char MJDKeyword[64];
char JDKeyword[64];
char ExptimeKeyword[64];
char AirmassKeyword[64];
char CCDNumKeyword[64];

int CalReference;
int CalColor;
int CALIBRATE;
int DUMP_MATCHES;
int ONLY_IMAGES;
