IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 12, 2014, 5:46:14 PM (12 years ago)
Author:
eugene
Message:

add option -reset-to-photcode to use a specified photcode as an astrometry reference

Location:
branches/eam_branches/ipp-20140423/Ohana/src/relastro
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140423/Ohana/src/relastro/include/relastro.h

    r36630 r36746  
    207207double MaxDensityValue;
    208208
    209 char          *PHOTCODE_KEEP_LIST, *PHOTCODE_SKIP_LIST;
    210 int           NphotcodesKeep,      NphotcodesSkip;
    211 PhotCode     **photcodesKeep,     **photcodesSkip;
     209char          *PHOTCODE_KEEP_LIST, *PHOTCODE_SKIP_LIST, *PHOTCODE_RESET_LIST;
     210int           NphotcodesKeep,      NphotcodesSkip,      NphotcodesReset;
     211PhotCode     **photcodesKeep,     **photcodesSkip,     **photcodesReset;
    212212
    213213char          *PHOTCODE_A_LIST,  *PHOTCODE_B_LIST;
  • branches/eam_branches/ipp-20140423/Ohana/src/relastro/src/args.c

    r36630 r36746  
    284284  }
    285285
     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
    286293  PHOTCODE_KEEP_LIST = NULL;
    287294  if ((N = get_argument (argc, argv, "+photcode"))) {
     
    655662    remove_argument (N, &argc, argv);
    656663    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);
    657671  }
    658672
  • branches/eam_branches/ipp-20140423/Ohana/src/relastro/src/initialize.c

    r36630 r36746  
    88  if (RELASTRO_OP == OP_MERGE_SOURCE) return;
    99
    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);
    1415
    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);
    1921
    2022  initstats (STATMODE);
     
    4244  args_client (argc, argv);
    4345
    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);
    4851
    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);
    5357
    5458  initstats (STATMODE);
  • branches/eam_branches/ipp-20140423/Ohana/src/relastro/src/relastro_images.c

    r36630 r36746  
    2828  // XXX pass in the image table
    2929  // 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
    3033  catalog = load_catalogs (skylist, &Ncatalog, TRUE, 0, NULL);
    3134  MARKTIME("load catalog data: %f sec\n", dtime);
     35
     36   photcodesKeep =  photcodesReset;
     37  NphotcodesKeep = NphotcodesReset;
    3238
    3339  if (Ncatalog == 0) {
     
    5056  // set test points based on the starmap
    5157  createStarMap (catalog, Ncatalog);
     58
     59  // XXX NOTE : for 2mass reset, photcodesKeep should now limit to 2MASS measurements
    5260
    5361  /* major modes */
Note: See TracChangeset for help on using the changeset viewer.