Changeset 38282
- Timestamp:
- May 16, 2015, 5:32:17 AM (11 years ago)
- Location:
- branches/eam_branches/ipp-20150419/Ohana/src
- Files:
-
- 4 added
- 8 edited
-
libohana/Makefile (modified) (1 diff)
-
libohana/include/ohana.h (modified) (1 diff)
-
libohana/src/bisection.c (added)
-
opihi/cmd.data/Makefile (modified) (1 diff)
-
opihi/cmd.data/bisection.c (added)
-
opihi/cmd.data/init.c (modified) (3 diffs)
-
uniphot/include/setastrom.h (modified) (1 diff)
-
uniphot/src/initialize_setastrom.c (modified) (6 diffs)
-
uniphot/src/repair_tycho_setastrom.c (added)
-
uniphot/src/setastrom.c (modified) (1 diff)
-
uniphot/src/tyc_correction.c (added)
-
uniphot/src/update_dvo_setastrom.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150419/Ohana/src/libohana/Makefile
r37807 r38282 30 30 $(SRC)/ohana_allocate.$(ARCH).o \ 31 31 $(SRC)/sorts.$(ARCH).o \ 32 $(SRC)/bisection.$(ARCH).o \ 32 33 $(SRC)/string.$(ARCH).o \ 33 34 $(SRC)/findexec.$(ARCH).o \ -
branches/eam_branches/ipp-20150419/Ohana/src/libohana/include/ohana.h
r37807 r38282 478 478 void VSHtermsForLM (VSHterms *terms, double R, double D, int l, int m); 479 479 480 # endif 480 /* in bisection.c */ 481 int ohana_bisection_double (double *values, int Nvalues, double threshold); 482 483 # endif -
branches/eam_branches/ipp-20150419/Ohana/src/opihi/cmd.data/Makefile
r38062 r38282 25 25 $(SRC)/book.$(ARCH).o \ 26 26 $(SRC)/book_commands.$(ARCH).o \ 27 $(SRC)/bisection.$(ARCH).o \ 27 28 $(SRC)/cast.$(ARCH).o \ 28 29 $(SRC)/center.$(ARCH).o \ -
branches/eam_branches/ipp-20150419/Ohana/src/opihi/cmd.data/init.c
r38062 r38282 9 9 int box PROTO((int, char **)); 10 10 int book_command PROTO((int, char **)); 11 int bisection PROTO((int, char **)); 11 12 int center PROTO((int, char **)); 12 int parity PROTO((int, char **));13 13 int cast PROTO((int, char **)); 14 14 int circstats PROTO((int, char **)); … … 89 89 int plot PROTO((int, char **)); 90 90 int dot PROTO((int, char **)); 91 int parity PROTO((int, char **)); 91 92 int point PROTO((int, char **)); 92 93 int ps PROTO((int, char **)); … … 175 176 {1, "applyfit2d", applyfit2d, "apply 2-d fit to new vector"}, 176 177 {1, "applyfit3d", applyfit3d, "apply 3-d fit to new vector"}, 178 {1, "bisection", bisection, "use bisection to find threshold in vector"}, 177 179 {1, "book", book_command, "commands to manipulate book/page/word data"}, 178 180 {1, "box", box, "draw a box on the plot"}, -
branches/eam_branches/ipp-20150419/Ohana/src/uniphot/include/setastrom.h
r38062 r38282 49 49 char *DCR_FILE; 50 50 char *CAM_FILE; 51 char *TYC_FILE; 51 52 52 53 int KH_RESET; 53 54 int DCR_RESET; 54 55 int CAM_RESET; 56 int TYC_RESET; 55 57 56 58 SkyRegion UserPatch; -
branches/eam_branches/ipp-20150419/Ohana/src/uniphot/src/initialize_setastrom.c
r38062 r38282 7 7 fprintf (stderr, " -DCR (file) : supply DCR correction splines\n"); 8 8 fprintf (stderr, " -CAM (file) : supply camera-static correction file\n"); 9 fprintf (stderr, " -TYC (file) : supply tycho-fix file (no pm stars)\n"); 9 10 fprintf (stderr, " -v : verbose mode\n"); 10 11 fprintf (stderr, " -region Rmin Rmax Dmin Dmax\n"); … … 91 92 } 92 93 94 TYC_FILE = NULL; 95 if ((N = get_argument (argc, argv, "-TYC"))) { 96 remove_argument (N, &argc, argv); 97 char *tmpfile = strcreate (argv[N]); 98 TYC_FILE = abspath (tmpfile, DVO_MAX_PATH); 99 remove_argument (N, &argc, argv); 100 } 101 TYC_RESET = FALSE; 102 if ((N = get_argument (argc, argv, "-TYC-reset"))) { 103 remove_argument (N, &argc, argv); 104 TYC_RESET = TRUE; 105 } 106 93 107 SINGLE_CPT = NULL; 94 108 if ((N = get_argument (argc, argv, "-cpt"))) { … … 160 174 } 161 175 162 if (!KH_FILE && !DCR_FILE && !CAM_FILE ) {163 fprintf (stderr, "WARNING: none of -CAM, -KH, -DCR supplied\n");176 if (!KH_FILE && !DCR_FILE && !CAM_FILE && !TYC_FILE) { 177 fprintf (stderr, "WARNING: none of -CAM, -KH, -DCR, -TYC supplied\n"); 164 178 } 165 179 … … 175 189 fprintf (stderr, " -DCR (file) : supply DCR correction splines\n"); 176 190 fprintf (stderr, " -CAM (file) : supply camera-static correction file\n"); 191 fprintf (stderr, " -TYC (file) : supply tycho-fix file (no pm stars)\n"); 177 192 fprintf (stderr, " -region Rmin Rmax Dmin Dmax\n"); 178 193 fprintf (stderr, " -update-catformat (format) : change database schema on output\n"); … … 247 262 remove_argument (N, &argc, argv); 248 263 CAM_RESET = TRUE; 264 } 265 266 TYC_FILE = NULL; 267 if ((N = get_argument (argc, argv, "-TYC"))) { 268 remove_argument (N, &argc, argv); 269 char *tmpfile = strcreate (argv[N]); 270 TYC_FILE = abspath (tmpfile, DVO_MAX_PATH); 271 remove_argument (N, &argc, argv); 272 } 273 TYC_RESET = FALSE; 274 if ((N = get_argument (argc, argv, "-TYC-reset"))) { 275 remove_argument (N, &argc, argv); 276 TYC_RESET = TRUE; 249 277 } 250 278 … … 308 336 if (!CATDIR) usage_setastrom_client(); 309 337 310 if (!KH_FILE && !DCR_FILE && !CAM_FILE ) {311 fprintf (stderr, "WARNING: none of -CAM, -KH, -DCR supplied\n");338 if (!KH_FILE && !DCR_FILE && !CAM_FILE && !TYC_FILE) { 339 fprintf (stderr, "WARNING: none of -CAM, -KH, -DCR, -TYC supplied\n"); 312 340 } 313 341 -
branches/eam_branches/ipp-20150419/Ohana/src/uniphot/src/setastrom.c
r35103 r38282 8 8 initialize_setastrom (argc, argv); 9 9 10 // argv[1] holds the correction file 11 status = update_dvo_setastrom (argv[1]); 10 status = update_dvo_setastrom (); 12 11 13 12 if (!status) exit (1); -
branches/eam_branches/ipp-20150419/Ohana/src/uniphot/src/update_dvo_setastrom.c
r38062 r38282 20 20 if (DCR_FILE) if (!load_dcr_correction (DCR_FILE)) { fprintf (stderr, "failed to load DCR correction %s\n", DCR_FILE); exit (1); } 21 21 if (CAM_FILE) if (!load_cam_correction (CAM_FILE)) { fprintf (stderr, "failed to load CAM correction %s\n", CAM_FILE); exit (1); } 22 if (TYC_FILE) if (!load_tyc_correction (TYC_FILE)) { fprintf (stderr, "failed to load TYC correction %s\n", TYC_FILE); exit (1); } 22 23 23 24 // determine the populated SkyRegions overlapping the requested area (default depth) … … 56 57 } 57 58 59 if (TYC_FILE) { 60 repair_tycho_setastrom (&catalog, skylist[0].regions[i]); 61 } 58 62 update_catalog_setastrom (&catalog); 59 63
Note:
See TracChangeset
for help on using the changeset viewer.
