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

/* global variables set in parameter file */
char   CATDIR[256];
int    VERBOSE;
int    RESET;
double RADIUS;
double PROPER;
int    USNO_RED;
int    USNO_BLUE;
char   CDROM[256];
int    FORCE_RUN;
char   PhotCodeFile[256];

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;

typedef struct {
  Coords coords;
  float *X, *Y;
  int *N;
  double RA[2], DEC[2];
  double Area, density, spacing;
} CatStats;

typedef struct {
  double R, D;
  double r, b;
} USNOdata;

typedef struct {
  int *match;
  float *X, *Y;
  int *N;
} USNOstats;
