Changeset 5850 for trunk/Ohana/src/opihi/cmd.astro
- Timestamp:
- Dec 27, 2005, 3:21:40 PM (21 years ago)
- Location:
- trunk/Ohana/src/opihi/cmd.astro
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.astro/gauss.c
r5846 r5850 54 54 for (i = 0; (i < Nspot) || (Nspot == 0); i++) { 55 55 KiiCursorRead (Ximage, &X, &Y, key); 56 57 56 if (!strcasecmp (key, "Q")) break; 58 59 57 Z = get_aperture_stats (&buf[0].matrix, (int)(X+0.5), (int)(Y+0.5), Npix, Nborder, max); 60 58 } -
trunk/Ohana/src/opihi/cmd.astro/region.c
r5386 r5850 3 3 int region (int argc, char **argv) { 4 4 5 char buffer[65],string[256];5 char string[256]; 6 6 double Ra, Dec, Radius; 7 7 double dx, dy; … … 60 60 61 61 /* ask kapa for coordinate limits, so get the right aspect ratio */ 62 SendGraphCommand (Xgraph, 4, "LIMS"); 63 read (Xgraph, buffer, 30); 64 sscanf (buffer, "%*s %lf %lf", &dx, &dy); 62 KiiSendCommand (Xgraph, 4, "LIMS"); 63 KiiScanMessage (Xgraph, "%lf %lf", &dx, &dy); 65 64 dx = fabs (dx); 66 65 dy = fabs (dy); … … 102 101 graphmode.coords.cdelt1 = graphmode.coords.cdelt2 = 1.0; 103 102 104 SendGraphCommand (Xgraph, 4, "ERAS"); 105 SendGraphCommand (Xgraph, 4, "SLIM"); 106 SendGraphMessage (Xgraph, "%f %f %f %f", graphmode.xmin, graphmode.xmax, graphmode.ymin, graphmode.ymax); 103 KapaClear (Xgraph, FALSE); 104 KapaSetLimits (Xgraph, &graphmode); 107 105 106 /* drop this? */ 108 107 sprintf (string, "%8.4f %8.4f (%f)", Ra, Dec, Radius); 109 SendLabel (string, Xgraph, 2);108 KapaSendLabel (Xgraph, string, 2); 110 109 111 110 SetGraph (graphmode); 112 113 111 return (TRUE); 114 115 112 } 116 113
Note:
See TracChangeset
for help on using the changeset viewer.
