IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 22, 2007, 12:23:09 PM (19 years ago)
Author:
eugene
Message:

upgrading to kapa 2.0 API, upgrades to dvo user interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/point.c

    r7917 r13479  
    44 
    55  int N, celestial, pixscale;
    6   int Ximage, Nimage;
     6  int kapa;
    77  double ra, dec, dra, ddec;
    88  double x1, y1, ra1, dec1;
     9  char *name;
    910  Coords coords;
    1011  Buffer *buf;
    1112  KiiOverlay overlay;
     13  KapaImageData data;
    1214
    13   Nimage = -1;
     15  name = NULL;
    1416  if ((N = get_argument (argc, argv, "-n"))) {
    1517    remove_argument (N, &argc, argv);
    16     Nimage = atof (argv[N]);
     18    name = strcreate (argv[N]);
    1719    remove_argument (N, &argc, argv);
    1820  }
    19   if (!GetImage (&Ximage, &Nimage)) return (FALSE);
    20  
     21  if (!GetImageData (&data, &kapa, name)) return (FALSE);
     22  FREE (name);
     23
    2124  celestial = FALSE;
    2225  if ((N = get_argument (argc, argv, "-c"))) {
     
    3740 
    3841  if (celestial) {
    39     if ((buf = SelectBuffer (GetImageName(), OLDBUFFER, TRUE)) == NULL) return (FALSE);
     42    if ((buf = SelectBuffer (data.name, OLDBUFFER, TRUE)) == NULL) return (FALSE);
    4043    GetCoords (&coords, &buf[0].header);
    4144  }
     
    6669  }
    6770  overlay.type = KiiOverlayTypeByName (argv[2]);
    68   KiiLoadOverlay (Ximage, &overlay, 1, argv[1]);
     71  KiiLoadOverlay (kapa, &overlay, 1, argv[1]);
    6972  return (TRUE);
    7073}
Note: See TracChangeset for help on using the changeset viewer.