IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17248


Ignore:
Timestamp:
Mar 31, 2008, 12:37:39 PM (18 years ago)
Author:
eugene
Message:

option to select by photcode code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/imlist.c

    r14590 r17248  
    1111  PhotCode *PhotcodeValue;
    1212  SkyRegionSelection *selection;
     13
     14  if (!InitPhotcodes ()) return (FALSE);
    1315
    1416  // parse skyregion options
     
    4749    remove_argument (N, &argc, argv);
    4850    PhotcodeValue = GetPhotcodebyName (argv[N]);
     51    if (PhotcodeValue == NULL) {
     52      gprint (GP_ERR, "photcode not found in photcode table\n");
     53      return (FALSE);
     54    }
     55    remove_argument (N, &argc, argv);
     56  }
     57  if ((N = get_argument (argc, argv, "-Nphotcode"))) {
     58    PhotcodeSelect = TRUE;
     59    remove_argument (N, &argc, argv);
     60    PhotcodeValue = GetPhotcodebyCode (atoi(argv[N]));
    4961    if (PhotcodeValue == NULL) {
    5062      gprint (GP_ERR, "photcode not found in photcode table\n");
Note: See TracChangeset for help on using the changeset viewer.