IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14501


Ignore:
Timestamp:
Aug 15, 2007, 9:10:31 AM (19 years ago)
Author:
eugene
Message:

allow region to be defined by image projection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.astro/region.c

    r14285 r14501  
    1818  if (!GetGraph (&graphmode, &kapa, name)) return (FALSE);
    1919  FREE (name);
     20
     21  if ((N = get_argument (argc, argv, "-image"))) {
     22    remove_argument (N, &argc, argv);
     23    KapaGetImageCoords (kapa, &graphmode.coords);
     24    KapaGetImageRange (kapa, &graphmode.xmin, &graphmode.xmax, &graphmode.ymax, &graphmode.ymin);
     25    SetGraph (&graphmode);
     26    return (TRUE);
     27    // Set Region based on image
     28  }
    2029
    2130  if ((N = get_argument (argc, argv, "-ew"))) {
     
    7281
    7382 
    74   /* ask kapa for coordinate limits, so get the right aspect ratio */
     83  /* ask kapa for coordinate limits, to get the right aspect ratio */
    7584  KapaGetLimits (kapa, &dx, &dy);
    7685  dx = fabs (dx);
Note: See TracChangeset for help on using the changeset viewer.