Changeset 21153 for trunk/Ohana/src/relphot
- Timestamp:
- Jan 22, 2009, 10:43:26 AM (18 years ago)
- Location:
- trunk/Ohana/src/relphot
- Files:
-
- 4 edited
-
include/relphot.h (modified) (5 diffs)
-
src/StarOps.c (modified) (1 diff)
-
src/relphot.c (modified) (1 diff)
-
src/relphot_objects.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relphot/include/relphot.h
r20323 r21153 125 125 int args PROTO((int argc, char **argv)); 126 126 int bcatalog PROTO((Catalog *subcatalog, Catalog *catalog)); 127 void clean_images PROTO(( ));127 void clean_images PROTO((void)); 128 128 void clean_measures PROTO((Catalog *catalog, int Ncatalog, int final)); 129 void clean_mosaics PROTO(( ));129 void clean_mosaics PROTO((void)); 130 130 void clean_stars PROTO((Catalog *catalog, int Ncatalog)); 131 131 int corner_check PROTO((double *x1, double *y1, double *x2, double *y2)); 132 void dumpGrid PROTO(( ));133 void dump_grid PROTO(( ));132 void dumpGrid PROTO((void)); 133 void dump_grid PROTO((void)); 134 134 int edge_check PROTO((double *x1, double *y1, double *x2, double *y2)); 135 135 void findImages PROTO((Catalog *catalog, int Ncatalog)); … … 140 140 void TrapSignal (int sig); 141 141 void SetProtect (int mode); 142 int SetSignals ( );142 int SetSignals (void); 143 143 144 144 void freeGridBins PROTO((int Ncatalog)); … … 179 179 void plot_defaults PROTO((Graphdata *graphdata)); 180 180 void plot_grid PROTO((Catalog *catalog)); 181 void plot_images PROTO(( ));181 void plot_images PROTO((void)); 182 182 void plot_list PROTO((Graphdata *graphdata, double *xlist, double *ylist, int N, char *label, char *format, ...)); 183 183 void plot_mosaic_fields PROTO((Catalog *catalog)); 184 void plot_mosaics PROTO(( ));184 void plot_mosaics PROTO((void)); 185 185 void plot_scatter PROTO((Catalog *catalog, int Ncatalog)); 186 186 void plot_star_coords PROTO((Catalog *catalog, int Ncatalog)); … … 190 190 int setExclusions PROTO((Catalog *catalog, int Ncatalog)); 191 191 void setMcal PROTO((Catalog *catalog, int Poor)); 192 void setMcalFinal PROTO(( ));192 void setMcalFinal PROTO((void)); 193 193 int setMcalOutput PROTO((Catalog *catalog, int Ncatalog)); 194 194 void setMgrid PROTO((Catalog *catalog)); … … 217 217 StatType statsStarX PROTO((Catalog *catalog, int Ncatalog)); 218 218 void wcatalog PROTO((Catalog *catalog)); 219 void wimages PROTO(( ));219 void wimages PROTO((void)); 220 220 void write_coords PROTO((Header *header, Coords *coords)); 221 int relphot_objects ( );221 int relphot_objects (void); -
trunk/Ohana/src/relphot/src/StarOps.c
r20936 r21153 207 207 if (isnan(Msys)) continue; 208 208 209 // XXX this is a hack for the 2MASS search; better to save an average value? 210 if (catalog[i].measure[m].qPSF < 0.85) continue; 211 209 212 list[N] = Msys - catalog[i].measure[m].Mcal; 210 213 dlist[N] = MAX (catalog[i].measure[m].dM, MIN_ERROR); -
trunk/Ohana/src/relphot/src/relphot.c
r20537 r21153 125 125 if ((i == 1) || (i == 5) || (i == 9) || (i == 13)) clean_measures (catalog, Ncatalog, FALSE); 126 126 if ((i == 2) || (i == 6) || (i == 10) || (i == 14)) clean_stars (catalog, Ncatalog); 127 if ((i == 4) || (i == 8) || (i == 12) || (i == 16)) clean_mosaics ( catalog, Ncatalog);127 if ((i == 4) || (i == 8) || (i == 12) || (i == 16)) clean_mosaics (); 128 128 if ((i == 4) || (i == 8) || (i == 12) || (i == 16)) clean_images (); 129 129 global_stats (catalog, Ncatalog); -
trunk/Ohana/src/relphot/src/relphot_objects.c
r17242 r21153 4 4 5 5 int i, j, k, m; 6 int Nsecfilt; 6 7 7 8 SkyTable *sky = NULL; … … 39 40 // XXX consider what gets reset (only PHOTOM flags) 40 41 if (RESET) { 42 Nsecfilt = catalog.Nsecfilt; 41 43 for (j = 0; j < catalog.Naverage; j++) { 42 44 catalog.average[j].code = 0; 45 for (k = 0; k < Nsecfilt; k++) { 46 catalog.secfilt[j*Nsecfilt + k].M = NAN; 47 catalog.secfilt[j*Nsecfilt + k].dM = NAN; 48 catalog.secfilt[j*Nsecfilt + k].Xm = NAN_S_SHORT; 49 catalog.secfilt[j*Nsecfilt + k].Ncode = 0; 50 catalog.secfilt[j*Nsecfilt + k].Nused = 0; 51 catalog.secfilt[j*Nsecfilt + k].dummy = 0; 52 } 43 53 m = catalog.average[j].measureOffset; 44 54 for (k = 0; k < catalog.average[j].Nmeasure; k++) {
Note:
See TracChangeset
for help on using the changeset viewer.
