Changeset 39713
- Timestamp:
- Sep 22, 2016, 2:38:18 PM (10 years ago)
- Location:
- branches/czw_branch/20160809/Ohana/src/uniphot
- Files:
-
- 5 edited
-
include/setphot.h (modified) (1 diff)
-
src/initialize_setphot.c (modified) (1 diff)
-
src/initialize_setphot_client.c (modified) (1 diff)
-
src/update_catalog_setphot.c (modified) (1 diff)
-
src/update_dvo_setphot.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20160809/Ohana/src/uniphot/include/setphot.h
r39356 r39713 67 67 int VERBOSE; 68 68 int RESET; 69 int PHOTCODE_MIN; 70 int PHOTCODE_MAX; 69 71 int UBERCAL; // load the supplied ubercal zero point fits table (with flat-field corrections) 70 72 int NO_METADATA; // the supplied ubercal data has no descriptive metadata -
branches/czw_branch/20160809/Ohana/src/uniphot/src/initialize_setphot.c
r39356 r39713 109 109 if ((N = get_argument (argc, argv, "-reset"))) { 110 110 RESET = TRUE; 111 remove_argument (N, &argc, argv); 112 } 113 114 PHOTCODE_MIN = 0; 115 PHOTCODE_MAX = 0; 116 if ((N = get_argument (argc, argv, "-photcode-range"))) { 117 remove_argument (N, &argc, argv); 118 PHOTCODE_MIN = atoi (argv[N]); 119 remove_argument (N, &argc, argv); 120 PHOTCODE_MAX = atoi (argv[N]); 111 121 remove_argument (N, &argc, argv); 112 122 } -
branches/czw_branch/20160809/Ohana/src/uniphot/src/initialize_setphot_client.c
r39356 r39713 96 96 } 97 97 98 PHOTCODE_MIN = 0; 99 PHOTCODE_MAX = 0; 100 if ((N = get_argument (argc, argv, "-photcode-range"))) { 101 remove_argument (N, &argc, argv); 102 PHOTCODE_MIN = atoi (argv[N]); 103 remove_argument (N, &argc, argv); 104 PHOTCODE_MAX = atoi (argv[N]); 105 remove_argument (N, &argc, argv); 106 } 107 98 108 // region of interest 99 109 UserPatch.Rmin = 0; -
branches/czw_branch/20160809/Ohana/src/uniphot/src/update_catalog_setphot.c
r39712 r39713 26 26 if (!code) continue; // invalid photcode 27 27 if (code->type != PHOT_DEP) continue; 28 29 // allow a restriction on the modified zpts: 30 if (PHOTCODE_MAX) { 31 if (measure[0].photcode < PHOTCODE_MIN) continue; 32 if (measure[0].photcode > PHOTCODE_MAX) continue; 33 } 28 34 29 35 off_t idx = measure[0].imageID; -
branches/czw_branch/20160809/Ohana/src/uniphot/src/update_dvo_setphot.c
r39356 r39713 179 179 if (DCR_RESET) { strextend (&command, "-DCR-reset"); } 180 180 if (CAM_RESET) { strextend (&command, "-CAM-reset"); } 181 182 if (PHOTCODE_MAX) { strextend (&command, "-photcode-range %d %d", PHOTCODE_MIN, PHOTCODE_MAX); } 181 183 182 184 fprintf (stderr, "command: %s\n", command);
Note:
See TracChangeset
for help on using the changeset viewer.
