- Timestamp:
- Mar 4, 2007, 3:45:18 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dvo-mods-2007-02/Ohana/src/relastro/include/relastro.h
r12206 r12220 4 4 # include <signal.h> 5 5 6 typedef struct { 7 double R, D; /* Sky Coords - degrees */ 8 double P, Q; /* Tangent Plane - pixels */ 9 double L, M; /* Focal Plane - pixels */ 10 double X, Y; /* Chip Coords - pixels */ 11 double Mag, dMag; 12 int mask; 13 } StarData; 14 6 15 // structure to hold coordinate fitting terms 7 16 typedef struct { 8 17 int Npts; 9 18 int Nterms; 10 int Npower;11 19 int Norder; 20 int Nsums; 21 int Nelems; 22 double **sum; 12 23 double **xsum; 13 24 double **ysum; 14 15 double **vector; 16 double **matrix; 25 double **xfit; 26 double **yfit; 17 27 } CoordFit; 18 28 … … 28 38 double chisq; 29 39 int Nfit; 30 } PM fit;40 } PMFit; 31 41 32 42 typedef struct { … … 62 72 char CATFORMAT[16]; /* internal, elixir, loneos, panstarrs */ 63 73 char CameraConfig[256]; 74 char SKY_TABLE[256]; 75 int SKY_DEPTH; /** XXX EAM : depth of catalog tables, fix usage */ 64 76 65 77 double MAG_LIM; … … 108 120 enum {black, white, red, orange, yellow, green, blue, indigo, violet}; 109 121 122 int DophotSelect, DophotValue; 123 110 124 int TimeSelect; 111 125 time_t TSTART, TSTOP; 112 126 113 # ifdef GRID_V1 114 int setGridMeasure (int meas, int cat, double X, double Y); 115 # endif 116 117 # ifdef GRID_V2 118 int setGridMeasure (int meas, int cat, double X, double Y, int ccdnum); 119 # endif 127 int FITTING_MODE; 128 enum {FIT_AVERAGE, FIT_PM_ONLY, FIT_PM_AND_PAR}; 129 130 SkyRegion UserPatch; 131 int UserPatchSelect; 132 133 int DoUpdateObjects; 134 int DoUpdateSimple; 135 int DoUpdateChips; 136 int DoUpdateMosaics; 120 137 121 138 /*** relphot prototypes ***/ … … 126 143 int *SelectRefMosaic PROTO((Mosaic **refmosaic, int *Nimage)); 127 144 int args PROTO((int argc, char **argv)); 128 int bcatalog PROTO((Catalog *subcatalog, Catalog *catalog , GSCRegion *fullregion));145 int bcatalog PROTO((Catalog *subcatalog, Catalog *catalog)); 129 146 void clean_images PROTO(()); 130 147 void clean_measures PROTO((Catalog *catalog, int Ncatalog, int final)); … … 171 188 void initstats PROTO((char *mode)); 172 189 int liststats PROTO((double *value, double *dvalue, int N, StatType *stats)); 173 Catalog *load_catalogs PROTO((GSCRegion *region, int Nregion, GSCRegion *fullregion)); 174 GSCRegion *load_images PROTO((FITS_DB *db, char *seed, int *nregion, GSCRegion *fullregion)); 190 Catalog *load_catalogs PROTO((SkyList *skylist, int *Ncatalog)); 191 SkyList *load_images PROTO((FITS_DB *db, char *regionName, SkyRegion *region, int RegionSelect)); 192 Image *select_images PROTO((SkyList *skylist, Image *timage, int Ntimage, int **LineNumber, int *Nimage)); 175 193 176 194 void check_permissions (char *basefile); … … 195 213 void plot_star_coords PROTO((Catalog *catalog, int Ncatalog)); 196 214 void plot_stars PROTO((Catalog *catalog, int Ncatalog)); 197 void reload_catalogs PROTO(( GSCRegion *region, int Nregion, GSCRegion *fullregion));215 void reload_catalogs PROTO((SkyList *skylist)); 198 216 int setExclusions PROTO((Catalog *catalog, int Ncatalog)); 199 217 void setMcal PROTO((Catalog *catalog, int Poor)); … … 226 244 void wimages PROTO(()); 227 245 void write_coords PROTO((Header *header, Coords *coords)); 246 247 248 double **array_init (int Nx, int Ny); 249 void array_free (double **array, int Nx); 250 CoordFit *fit_init (int order); 251 void fit_free (CoordFit *fit); 252 void fit_add (CoordFit *fit, double x1, double y1, double x2, double y2, double wt); 253 void fit_eval (CoordFit *fit); 254 double **poly2d_dx (double **poly, int Nx, int Ny); 255 double **poly2d_dy (double **poly, int Nx, int Ny); 256 double **poly2d_copy (double **poly, int Nx, int Ny); 257 double poly2d_eval (double **poly, int Nx, int Ny, double x, double y); 258 void fit_apply_coords (CoordFit *fit, Coords *coords); 259 int CoordsGetCenter (CoordFit *fit, double tol, double *xo, double *yo); 260 CoordFit *CoordsSetCenter (CoordFit *input, double Xo, double Yo); 261 void FitChip (StarData *raw, StarData *ref, int Nmatch, Coords *coords); 262 void FitMosaic (StarData *raw, StarData *ref, int Nmatch, Coords *coords); 263 void FitSimple (StarData *raw, StarData *ref, int Nmatch, Coords *coords); 264 void initObjectData (Catalog *catalog, int Ncatalog); 265 int UpdateObjects (Catalog *catalog, int Ncatalog); 266 int UpdateSimple (Catalog *catalog, int Ncatalog); 267 int UpdateChips (Catalog *catalog, int Ncatalog); 268 int UpdateMosaic (Catalog *catalog, int Ncatalog); 269 int sun_ecliptic (double jd, double *lambda, double *beta, double *epsilon); 270 int ParFactor (double *pR, double *pD, double R, double D, time_t T); 271 int FitPM (PMFit *fit, double *X, double *dX, double *Y, double *dY, time_t *T, int Npts); 272 int FitPMandPar (PMFit *fit, double *X, double *dX, double *Y, double *dY, time_t *T, double *pR, double *pD, int Npts); 273 274 Coords *getMosaicForImage (int N); 275 276 StarData *getImageRef (Catalog *catalog, int Ncatalog, int im, int *Nstars, int isMosaic); 277 StarData *getImageRaw (Catalog *catalog, int Ncatalog, int im, int *Nstars, int isMosaic); 278 279 double getMeanR (Measure *measure, Average *average, SecFilt *secfilt); 280 double getMeanD (Measure *measure, Average *average, SecFilt *secfilt);
Note:
See TracChangeset
for help on using the changeset viewer.
