Changeset 36746 for branches/eam_branches/ipp-20140423/Ohana
- Timestamp:
- May 12, 2014, 5:46:14 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140423/Ohana/src/relastro
- Files:
-
- 4 edited
-
include/relastro.h (modified) (1 diff)
-
src/args.c (modified) (2 diffs)
-
src/initialize.c (modified) (2 diffs)
-
src/relastro_images.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140423/Ohana/src/relastro/include/relastro.h
r36630 r36746 207 207 double MaxDensityValue; 208 208 209 char *PHOTCODE_KEEP_LIST, *PHOTCODE_SKIP_LIST ;210 int NphotcodesKeep, NphotcodesSkip ;211 PhotCode **photcodesKeep, **photcodesSkip ;209 char *PHOTCODE_KEEP_LIST, *PHOTCODE_SKIP_LIST, *PHOTCODE_RESET_LIST; 210 int NphotcodesKeep, NphotcodesSkip, NphotcodesReset; 211 PhotCode **photcodesKeep, **photcodesSkip, **photcodesReset; 212 212 213 213 char *PHOTCODE_A_LIST, *PHOTCODE_B_LIST; -
branches/eam_branches/ipp-20140423/Ohana/src/relastro/src/args.c
r36630 r36746 284 284 } 285 285 286 PHOTCODE_RESET_LIST = NULL; 287 if ((N = get_argument (argc, argv, "-reset-to-photcode"))) { 288 remove_argument (N, &argc, argv); 289 PHOTCODE_RESET_LIST = strcreate(argv[N]); 290 remove_argument (N, &argc, argv); 291 } 292 286 293 PHOTCODE_KEEP_LIST = NULL; 287 294 if ((N = get_argument (argc, argv, "+photcode"))) { … … 655 662 remove_argument (N, &argc, argv); 656 663 TimeSelect = TRUE; 664 } 665 666 PHOTCODE_RESET_LIST = NULL; 667 if ((N = get_argument (argc, argv, "-reset-to-photcode"))) { 668 remove_argument (N, &argc, argv); 669 PHOTCODE_RESET_LIST = strcreate(argv[N]); 670 remove_argument (N, &argc, argv); 657 671 } 658 672 -
branches/eam_branches/ipp-20140423/Ohana/src/relastro/src/initialize.c
r36630 r36746 8 8 if (RELASTRO_OP == OP_MERGE_SOURCE) return; 9 9 10 fprintf (stderr, "PHOTCODE_KEEP_LIST: %s\n", PHOTCODE_KEEP_LIST); 11 fprintf (stderr, "PHOTCODE_SKIP_LIST: %s\n", PHOTCODE_SKIP_LIST); 12 fprintf (stderr, "PHOTCODE_A_LIST: %s\n", PHOTCODE_A_LIST); 13 fprintf (stderr, "PHOTCODE_B_LIST: %s\n", PHOTCODE_B_LIST); 10 if (PHOTCODE_KEEP_LIST) fprintf (stderr, "PHOTCODE_KEEP_LIST: %s\n", PHOTCODE_KEEP_LIST); 11 if (PHOTCODE_SKIP_LIST) fprintf (stderr, "PHOTCODE_SKIP_LIST: %s\n", PHOTCODE_SKIP_LIST); 12 if (PHOTCODE_RESET_LIST) fprintf (stderr, "PHOTCODE_RESET_LIST: %s\n", PHOTCODE_RESET_LIST); 13 if (PHOTCODE_A_LIST) fprintf (stderr, "PHOTCODE_A_LIST: %s\n", PHOTCODE_A_LIST); 14 if (PHOTCODE_B_LIST) fprintf (stderr, "PHOTCODE_B_LIST: %s\n", PHOTCODE_B_LIST); 14 15 15 photcodesKeep = ParsePhotcodeList (PHOTCODE_KEEP_LIST, &NphotcodesKeep, FALSE); 16 photcodesSkip = ParsePhotcodeList (PHOTCODE_SKIP_LIST, &NphotcodesSkip, FALSE); 17 photcodesGroupA = ParsePhotcodeList (PHOTCODE_A_LIST, &NphotcodesGroupA, TRUE); 18 photcodesGroupB = ParsePhotcodeList (PHOTCODE_B_LIST, &NphotcodesGroupB, TRUE); 16 photcodesKeep = ParsePhotcodeList (PHOTCODE_KEEP_LIST, &NphotcodesKeep, FALSE); 17 photcodesSkip = ParsePhotcodeList (PHOTCODE_SKIP_LIST, &NphotcodesSkip, FALSE); 18 photcodesReset = ParsePhotcodeList (PHOTCODE_RESET_LIST, &NphotcodesReset, FALSE); 19 photcodesGroupA = ParsePhotcodeList (PHOTCODE_A_LIST, &NphotcodesGroupA, TRUE); 20 photcodesGroupB = ParsePhotcodeList (PHOTCODE_B_LIST, &NphotcodesGroupB, TRUE); 19 21 20 22 initstats (STATMODE); … … 42 44 args_client (argc, argv); 43 45 44 fprintf (stderr, "PHOTCODE_KEEP_LIST: %s\n", PHOTCODE_KEEP_LIST); 45 fprintf (stderr, "PHOTCODE_SKIP_LIST: %s\n", PHOTCODE_SKIP_LIST); 46 fprintf (stderr, "PHOTCODE_A_LIST: %s\n", PHOTCODE_A_LIST); 47 fprintf (stderr, "PHOTCODE_B_LIST: %s\n", PHOTCODE_B_LIST); 46 if (PHOTCODE_KEEP_LIST) fprintf (stderr, "PHOTCODE_KEEP_LIST: %s\n", PHOTCODE_KEEP_LIST); 47 if (PHOTCODE_SKIP_LIST) fprintf (stderr, "PHOTCODE_SKIP_LIST: %s\n", PHOTCODE_SKIP_LIST); 48 if (PHOTCODE_RESET_LIST) fprintf (stderr, "PHOTCODE_RESET_LIST: %s\n", PHOTCODE_RESET_LIST); 49 if (PHOTCODE_A_LIST) fprintf (stderr, "PHOTCODE_A_LIST: %s\n", PHOTCODE_A_LIST); 50 if (PHOTCODE_B_LIST) fprintf (stderr, "PHOTCODE_B_LIST: %s\n", PHOTCODE_B_LIST); 48 51 49 photcodesKeep = ParsePhotcodeList (PHOTCODE_KEEP_LIST, &NphotcodesKeep, FALSE); 50 photcodesSkip = ParsePhotcodeList (PHOTCODE_SKIP_LIST, &NphotcodesSkip, FALSE); 51 photcodesGroupA = ParsePhotcodeList (PHOTCODE_A_LIST, &NphotcodesGroupA, TRUE); 52 photcodesGroupB = ParsePhotcodeList (PHOTCODE_B_LIST, &NphotcodesGroupB, TRUE); 52 photcodesKeep = ParsePhotcodeList (PHOTCODE_KEEP_LIST, &NphotcodesKeep, FALSE); 53 photcodesSkip = ParsePhotcodeList (PHOTCODE_SKIP_LIST, &NphotcodesSkip, FALSE); 54 photcodesReset = ParsePhotcodeList (PHOTCODE_RESET_LIST, &NphotcodesReset, FALSE); 55 photcodesGroupA = ParsePhotcodeList (PHOTCODE_A_LIST, &NphotcodesGroupA, TRUE); 56 photcodesGroupB = ParsePhotcodeList (PHOTCODE_B_LIST, &NphotcodesGroupB, TRUE); 53 57 54 58 initstats (STATMODE); -
branches/eam_branches/ipp-20140423/Ohana/src/relastro/src/relastro_images.c
r36630 r36746 28 28 // XXX pass in the image table 29 29 // XXX who carries the image grid? 30 31 // photcodesKeep is used here to allow measurements from the images being calibrated 32 // note if -reset-to-photcode is selected, photocodesKeep is replaced with below with photcodesReset 30 33 catalog = load_catalogs (skylist, &Ncatalog, TRUE, 0, NULL); 31 34 MARKTIME("load catalog data: %f sec\n", dtime); 35 36 photcodesKeep = photcodesReset; 37 NphotcodesKeep = NphotcodesReset; 32 38 33 39 if (Ncatalog == 0) { … … 50 56 // set test points based on the starmap 51 57 createStarMap (catalog, Ncatalog); 58 59 // XXX NOTE : for 2mass reset, photcodesKeep should now limit to 2MASS measurements 52 60 53 61 /* major modes */
Note:
See TracChangeset
for help on using the changeset viewer.
