IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33532


Ignore:
Timestamp:
Mar 15, 2012, 12:46:41 PM (14 years ago)
Author:
eugene
Message:

allow relastro_client to take -photcode, +photcode options, also pass -basic-image-search

Location:
branches/eam_branches/ipp-20111122/Ohana/src/relastro
Files:
3 edited

Legend:

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

    r33515 r33532  
    423423int BrightCatalogSplitFree (CatalogSplitter *catalogs);
    424424
    425 PhotCode **ParsePhotcodeList (char *rawlist, int *nphotcodes);
     425PhotCode **ParsePhotcodeList (char *rawlist, int *nphotcodes, int needAve);
  • branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/UpdateObjectOffsets.c

    r33520 r33532  
    114114    if (MaxDensityUse) { snprintf (tmpline, 1024, "%s -max-density %f", command, MaxDensityValue);   strcpy (command, tmpline); }
    115115   
     116    if (USE_BASIC_CHECK) { snprintf (tmpline, 1024, "%s -basic-image-search", command);              strcpy (command, tmpline); }
    116117    if (FlagOutlier)   { snprintf (tmpline, 1024, "%s -clip %d",        command, CLIP_THRESH);       strcpy (command, tmpline); }
    117118   
  • branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/initialize.c

    r33475 r33532  
    1313  fprintf (stderr, "PHOTCODE_B_LIST: %s\n", PHOTCODE_B_LIST);
    1414
    15   photcodesKeep = ParsePhotcodeList (PHOTCODE_KEEP_LIST, &NphotcodesKeep);
    16   photcodesSkip = ParsePhotcodeList (PHOTCODE_SKIP_LIST, &NphotcodesSkip);
    17   photcodesGroupA = ParsePhotcodeList (PHOTCODE_A_LIST, &NphotcodesGroupA);
    18   photcodesGroupB = ParsePhotcodeList (PHOTCODE_B_LIST, &NphotcodesGroupB);
     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);
    1919
    2020  initstats (STATMODE);
     
    5151  fprintf (stderr, "PHOTCODE_B_LIST: %s\n", PHOTCODE_B_LIST);
    5252
    53   photcodesKeep = ParsePhotcodeList (PHOTCODE_KEEP_LIST, &NphotcodesKeep);
    54   photcodesSkip = ParsePhotcodeList (PHOTCODE_SKIP_LIST, &NphotcodesSkip);
    55   photcodesGroupA = ParsePhotcodeList (PHOTCODE_A_LIST, &NphotcodesGroupA);
    56   photcodesGroupB = ParsePhotcodeList (PHOTCODE_B_LIST, &NphotcodesGroupB);
     53  photcodesKeep = ParsePhotcodeList (PHOTCODE_KEEP_LIST, &NphotcodesKeep, FALSE);
     54  photcodesSkip = ParsePhotcodeList (PHOTCODE_SKIP_LIST, &NphotcodesSkip, FALSE);
     55  photcodesGroupA = ParsePhotcodeList (PHOTCODE_A_LIST, &NphotcodesGroupA, TRUE);
     56  photcodesGroupB = ParsePhotcodeList (PHOTCODE_B_LIST, &NphotcodesGroupB, TRUE);
    5757
    5858  initstats (STATMODE);
     
    6363}
    6464
    65 PhotCode **ParsePhotcodeList (char *rawlist, int *nphotcodes) {
     65PhotCode **ParsePhotcodeList (char *rawlist, int *nphotcodes, int needAve) {
    6666
    6767  *nphotcodes = 0;
     
    8484      exit (1);
    8585    }
    86     if (photcodes[Nphotcodes][0].type != PHOT_SEC) {
     86    if (needAve && (photcodes[Nphotcodes][0].type != PHOT_SEC)) {
    8787      fprintf (stderr, "photcode %s is not an filter type (SEC)\n", codename);
    8888      exit (1);
Note: See TracChangeset for help on using the changeset viewer.