# include <stdio.h>
# include <strings.h>  // for strcasecmp
# include <unistd.h>   // for unlink
# include <pslib.h>

psArray *pmAstromGridMatch (psArray *s1, psArray *s2, pmAstromGridMatchOpt *opt);
psArray *pmAstromRotateObj (psArray *old, psPlane center, double angle);

typedef struct {
  psPlane pix;
  psPlane FP;
  psPlane TP;
  psSphere sky;
  double mag;
} pmAstromObj;

typedef struct {
  int i1;
  int i2;
} pmAstromMatch;

typedef struct {
    double minAngle;
    double maxAngle;
    double delAngle;
} pmAstromOpt;

typedef struct {
    double angle;
    double dP;
    double dQ;
    double minMetric;
    double minVar;
    int    nMatch;
} pmAstromGridMatchStats;

