IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39713


Ignore:
Timestamp:
Sep 22, 2016, 2:38:18 PM (10 years ago)
Author:
eugene
Message:

allow setphot to have a user-specified photcode range

Location:
branches/czw_branch/20160809/Ohana/src/uniphot
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20160809/Ohana/src/uniphot/include/setphot.h

    r39356 r39713  
    6767int          VERBOSE;
    6868int          RESET;
     69int          PHOTCODE_MIN;
     70int          PHOTCODE_MAX;
    6971int          UBERCAL; // load the supplied ubercal zero point fits table (with flat-field corrections)
    7072int          NO_METADATA; // the supplied ubercal data has no descriptive metadata
  • branches/czw_branch/20160809/Ohana/src/uniphot/src/initialize_setphot.c

    r39356 r39713  
    109109  if ((N = get_argument (argc, argv, "-reset"))) {
    110110    RESET = TRUE;
     111    remove_argument (N, &argc, argv);
     112  }
     113
     114  PHOTCODE_MIN = 0;
     115  PHOTCODE_MAX = 0;
     116  if ((N = get_argument (argc, argv, "-photcode-range"))) {
     117    remove_argument (N, &argc, argv);
     118    PHOTCODE_MIN = atoi (argv[N]);   
     119    remove_argument (N, &argc, argv);
     120    PHOTCODE_MAX = atoi (argv[N]);   
    111121    remove_argument (N, &argc, argv);
    112122  }
  • branches/czw_branch/20160809/Ohana/src/uniphot/src/initialize_setphot_client.c

    r39356 r39713  
    9696  }
    9797
     98  PHOTCODE_MIN = 0;
     99  PHOTCODE_MAX = 0;
     100  if ((N = get_argument (argc, argv, "-photcode-range"))) {
     101    remove_argument (N, &argc, argv);
     102    PHOTCODE_MIN = atoi (argv[N]);   
     103    remove_argument (N, &argc, argv);
     104    PHOTCODE_MAX = atoi (argv[N]);   
     105    remove_argument (N, &argc, argv);
     106  }
     107
    98108  // region of interest
    99109  UserPatch.Rmin = 0;
  • branches/czw_branch/20160809/Ohana/src/uniphot/src/update_catalog_setphot.c

    r39712 r39713  
    2626    if (!code) continue; // invalid photcode
    2727    if (code->type != PHOT_DEP) continue;
     28
     29    // allow a restriction on the modified zpts:
     30    if (PHOTCODE_MAX) {
     31      if (measure[0].photcode < PHOTCODE_MIN) continue;
     32      if (measure[0].photcode > PHOTCODE_MAX) continue;
     33    }
    2834
    2935    off_t idx = measure[0].imageID;
  • branches/czw_branch/20160809/Ohana/src/uniphot/src/update_dvo_setphot.c

    r39356 r39713  
    179179    if (DCR_RESET)        { strextend (&command, "-DCR-reset"); }
    180180    if (CAM_RESET)        { strextend (&command, "-CAM-reset"); }
     181
     182    if (PHOTCODE_MAX)     { strextend (&command, "-photcode-range %d %d", PHOTCODE_MIN, PHOTCODE_MAX); }
    181183
    182184    fprintf (stderr, "command: %s\n", command);
Note: See TracChangeset for help on using the changeset viewer.