Changeset 4606
- Timestamp:
- Jul 24, 2005, 8:31:04 PM (21 years ago)
- Location:
- trunk/Ohana/src/opihi
- Files:
-
- 10 edited
-
dvo/avextract.c (modified) (1 diff)
-
dvo/calmextract.c (modified) (1 diff)
-
dvo/ccd.c (modified) (1 diff)
-
dvo/cmd.c (modified) (1 diff)
-
dvo/ddmags.c (modified) (1 diff)
-
dvo/dmagaves.c (modified) (1 diff)
-
dvo/dmagmeas.c (modified) (1 diff)
-
dvo/mextract.c (modified) (1 diff)
-
dvo/photometry.c (modified) (4 diffs)
-
include/dvo1.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/avextract.c
r4585 r4606 47 47 } 48 48 } 49 if (!TestPhotSelections (&code, param)) goto escape;49 if (!TestPhotSelections (&code, &mode, param)) goto escape; 50 50 51 51 /* load region corresponding to selection above */ -
trunk/Ohana/src/opihi/dvo/calmextract.c
r4585 r4606 40 40 if (!GetPhotcodeInfo (argv[1], &code[0], &mode[0])) goto usage; 41 41 if (!GetPhotcodeInfo (argv[3], &code[1], &mode[1])) goto usage; 42 if (!TestPhotSelections (&code[0], MEAS_ZERO)) goto escape;42 if (!TestPhotSelections (&code[0], &mode[0], MEAS_ZERO)) goto escape; 43 43 44 44 /* returned vectors are dmag, mag, color, time, airmass, ra, dec, x, y, exptime */ -
trunk/Ohana/src/opihi/dvo/ccd.c
r4585 r4606 43 43 if (!GetPhotcodeInfo (argv[5], &code[2], &mode[2])) return (FALSE); 44 44 if (!GetPhotcodeInfo (argv[7], &code[3], &mode[3])) return (FALSE); 45 if (!TestPhotSelections (&code[0], MEAS_ZERO)) goto escape;45 if (!TestPhotSelections (&code[0], &mode[0], MEAS_ZERO)) goto escape; 46 46 47 47 /* load region corresponding to selection above */ -
trunk/Ohana/src/opihi/dvo/cmd.c
r4585 r4606 41 41 if (!GetPhotcodeInfo (argv[3], &code[1], &mode[1])) return (FALSE); 42 42 if (!GetPhotcodeInfo (argv[5], &code[2], &mode[2])) return (FALSE); 43 if (!TestPhotSelections (&code[0], MEAS_ZERO)) goto escape;43 if (!TestPhotSelections (&code[0], &mode[0], MEAS_ZERO)) goto escape; 44 44 45 45 /* load region corresponding to selection above */ -
trunk/Ohana/src/opihi/dvo/ddmags.c
r4585 r4606 43 43 if (!GetPhotcodeInfo (argv[5], &code[2], &mode[2])) return (FALSE); 44 44 if (!GetPhotcodeInfo (argv[7], &code[3], &mode[3])) return (FALSE); 45 if (!TestPhotSelections (&code[0], MEAS_ZERO)) goto escape;45 if (!TestPhotSelections (&code[0], &mode[0], MEAS_ZERO)) goto escape; 46 46 47 47 /* load region corresponding to selection above */ -
trunk/Ohana/src/opihi/dvo/dmagaves.c
r4585 r4606 40 40 if (!GetPhotcodeInfo (argv[3], &code[1], &mode[1])) goto usage; 41 41 if ((param = GetAverageParam (argv[5])) == AVE_ZERO) goto usage; 42 if (!TestPhotSelections (&code[2], param)) goto escape;42 if (!TestPhotSelections (&code[2], &mode[2], param)) goto escape; 43 43 44 44 /* load region corresponding to selection above */ -
trunk/Ohana/src/opihi/dvo/dmagmeas.c
r4588 r4606 41 41 if (!GetPhotcodeInfo (argv[3], &code[1], &mode[1])) goto usage; 42 42 if ((param = GetMeasureParam (argv[5])) == MEAS_ZERO) goto usage; 43 if (!TestPhotSelections (&code[2], MEAS_ZERO)) goto escape;43 if (!TestPhotSelections (&code[2], &mode[2], MEAS_ZERO)) goto escape; 44 44 45 45 /* load region corresponding to selection above */ -
trunk/Ohana/src/opihi/dvo/mextract.c
r4585 r4606 48 48 } 49 49 } 50 if (!TestPhotSelections (&code, MEAS_ZERO)) goto escape;50 if (!TestPhotSelections (&code, &mode, MEAS_ZERO)) goto escape; 51 51 52 52 /* load region corresponding to selection above */ -
trunk/Ohana/src/opihi/dvo/photometry.c
r4587 r4606 63 63 static int PhotcodeSelect; 64 64 static PhotCode *PhotcodeValue; 65 static int PhotcodeMode; 65 66 66 67 /* selections based on Average quantities */ … … 247 248 248 249 /* I've set some selections - if these require a photcode, check if I set one */ 249 int TestPhotSelections (PhotCode **code, int param) {250 int TestPhotSelections (PhotCode **code, int *mode, int param) { 250 251 251 252 int NeedPhotcode; … … 281 282 if (!PhotcodeSelect) return (FALSE); 282 283 code[0] = PhotcodeValue; 284 mode[0] = PhotcodeMode; 283 285 if (code[0][0].type == PHOT_DEP) return (FALSE); 284 286 if (code[0][0].type == PHOT_REF) return (FALSE); … … 386 388 PhotcodeSelect = TRUE; 387 389 remove_argument (N, argc, argv); 388 PhotcodeValue = GetPhotcodebyName (argv[N]);390 GetPhotcodeInfo (argv[N], &PhotcodeValue, &PhotcodeMode); 389 391 if (PhotcodeValue == NULL) { 390 392 fprintf (stderr, "photcode not found in photcode table\n"); -
trunk/Ohana/src/opihi/include/dvo1.h
r4585 r4606 67 67 int SetSelectionParam PROTO((int param)); 68 68 int TestAverage PROTO((PhotCode *code, Average *average, SecFilt *secfilt, Measure *measure)); 69 int TestPhotSelections PROTO((PhotCode **code, int param));69 int TestPhotSelections PROTO((PhotCode **code, int *mode, int param)); 70 70 void print_value PROTO((FILE *f, double value, short int ival)); 71 71
Note:
See TracChangeset
for help on using the changeset viewer.
