IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 30, 2010, 1:16:44 PM (16 years ago)
Author:
eugene
Message:

add hexagons and pentagons to kapa; default layout for the dvo sky is north up, east left; add photcode selections to dvo images

File:
1 edited

Legend:

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

    r27435 r27530  
    2222  char name[256];
    2323  int typehash;
    24 
     24  PhotCode *photcode;
     25  int Nsec, photcodeEquiv;
     26
     27  if (!InitPhotcodes ()) return (FALSE);
    2528  if (!style_args (&graphmode, &argc, argv, &kapa)) goto usage;
    2629
     
    4245    remove_argument (N, &argc, argv);
    4346    HIDDEN = TRUE;
     47  }
     48
     49  photcode = NULL;
     50  photcodeEquiv = FALSE;
     51  if ((N = get_argument (argc, argv, "-p"))) {
     52    remove_argument (N, &argc, argv);
     53    photcode = GetPhotcodebyName (argv[N]);
     54    if (photcode == NULL) {
     55      gprint (GP_ERR, "photcode %s not found\n", argv[N]);
     56      return FALSE;
     57    }
     58    remove_argument (N, &argc, argv);
     59    Nsec = GetPhotcodeNsec (photcode->code);
     60    if (Nsec != -1) photcodeEquiv = TRUE;
     61  }
     62  if ((N = get_argument (argc, argv, "-photcode"))) {
     63    remove_argument (N, &argc, argv);
     64    photcode = GetPhotcodebyName (argv[N]);
     65    if (photcode == NULL) {
     66      gprint (GP_ERR, "photcode %s not found\n", argv[N]);
     67      return FALSE;
     68    }
     69    remove_argument (N, &argc, argv);
     70    Nsec = GetPhotcodeNsec (photcode->code);
     71    if (Nsec != -1) photcodeEquiv = TRUE;
    4472  }
    4573
     
    123151    if (TimeSelect && ((image[i].tzero < tzero) || (image[i].tzero+image[i].trate*image[i].NY > tzero + trange))) continue;
    124152    if (!FindMosaicForImage (image, Nimage, i)) continue;
     153    if (photcode) {
     154      if ( photcodeEquiv && (photcode[0].code != GetPhotcodeEquivCodebyCode(image[i].photcode))) continue;
     155      if (!photcodeEquiv && (photcode[0].code != image[i].photcode)) continue;
     156    }
    125157
    126158    Npts = 4;
Note: See TracChangeset for help on using the changeset viewer.