#include #include #include #include #include "qfits.h" struct image { char filename[64]; int naxis1,naxis2,nframes; float *zavg,*zstd,*zmax,*znum; double ra0,de0; float x0,y0; float a[3],b[3],xrms,yrms; double mjd; float *dt,exptime; char nfd[32]; int cospar; }; struct image read_fits(char *filename); int main(int argc,char *argv[]) { int i; struct image img; float zavg,zstd,sx,sy,wx,wy; // Read image img=read_fits(argv[1]); // Compute statistics for (i=0,zavg=0.0;i