IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38631


Ignore:
Timestamp:
Jul 23, 2015, 8:48:53 AM (11 years ago)
Author:
eugene
Message:

add option to repair by objID

Location:
branches/eam_branches/ipp-20150625/Ohana/src/uniphot
Files:
1 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150625/Ohana/src/uniphot/Makefile

    r38617 r38631  
    6767$(SRC)/update_dvo_setphot.$(ARCH).o \
    6868$(SRC)/update_catalog_setphot.$(ARCH).o \
     69$(SRC)/repair_catalog_by_objID.$(ARCH).o \
    6970$(SRC)/SetSignals.$(ARCH).o         \
    7071$(SRC)/Shutdown.$(ARCH).o           
     
    7778$(SRC)/update_dvo_setphot.$(ARCH).o \
    7879$(SRC)/update_catalog_setphot.$(ARCH).o \
     80$(SRC)/repair_catalog_by_objID.$(ARCH).o \
    7981$(SRC)/initialize_setphot_client.$(ARCH).o \
    8082$(SRC)/SetSignals.$(ARCH).o         \
  • branches/eam_branches/ipp-20150625/Ohana/src/uniphot/include/setphot.h

    r35103 r38631  
    3535int          PARALLEL_SERIAL;
    3636int          IMAGES_ONLY;
     37int          REPAIR_BY_OBJID;
    3738
    3839SkyRegion    UserPatch;
     
    7677int           parse_zpt_offsets           PROTO((char *ZPT_OFFSET_FILTERS, char *ZPT_OFFSET_VALUES));
    7778float         apply_zpt_offset            PROTO((short code));
     79
     80int repair_catalog_by_objID (Catalog *catalog);
  • branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/initialize_setphot.c

    r35103 r38631  
    4949  if ((N = get_argument (argc, argv, "-reset"))) {
    5050    RESET = TRUE;
     51    remove_argument (N, &argc, argv);
     52  }
     53
     54  REPAIR_BY_OBJID = FALSE;
     55  if ((N = get_argument (argc, argv, "-repair-by-objid"))) {
     56    REPAIR_BY_OBJID = TRUE;
    5157    remove_argument (N, &argc, argv);
    5258  }
  • branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_dvo_setphot.c

    r38617 r38631  
    6565      dvo_catalog_free (&catalog);
    6666      continue;
     67    }
     68
     69    if (REPAIR_BY_OBJID) {
     70      // For gpc1 / PV3, I broke some catalogs with dvomerge -replace: the last object can
     71      // contaminate the first set of new measurements
     72      repair_catalog_by_objID (&catalog);
    6773    }
    6874
Note: See TracChangeset for help on using the changeset viewer.