Changeset 7917 for trunk/Ohana/src/opihi/dvo/imphot.c
- Timestamp:
- Jul 16, 2006, 10:58:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/dvo/imphot.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/imphot.c
r7680 r7917 22 22 23 23 if (argc != 3) { 24 fprintf (stderr, "USAGE: imphot tzero trange [-g buffer]\n");24 gprint (GP_ERR, "USAGE: imphot tzero trange [-g buffer]\n"); 25 25 return (FALSE); 26 26 } … … 43 43 /* load image(s) in time range given */ 44 44 if (!str_to_time (argv[1], &tzero)) { 45 fprintf (stderr, "syntax error\n");45 gprint (GP_ERR, "syntax error\n"); 46 46 return (FALSE); 47 47 } 48 48 if (!str_to_dtime (argv[2], &trange)) { 49 fprintf (stderr, "syntax error\n");49 gprint (GP_ERR, "syntax error\n"); 50 50 return (FALSE); 51 51 } 52 fprintf (stderr, "searching in range %ds - %ds (%f seconds)\n", (int)tzero, (int)(tzero + trange), trange);52 gprint (GP_ERR, "searching in range %ds - %ds (%f seconds)\n", (int)tzero, (int)(tzero + trange), trange); 53 53 54 54 if ((image = LoadImages (&Nimage)) == NULL) return (FALSE); … … 56 56 57 57 if ((Nsubset > 1) && GreyScale) { 58 fprintf (stderr, "more than one image selected, making GreyScale of first only\n");58 gprint (GP_ERR, "more than one image selected, making GreyScale of first only\n"); 59 59 } 60 60 … … 74 74 switch (image[i].order) { 75 75 case 0: 76 fprintf (stderr, "%s: %d - %f\n", image[i].name, image[i].order, image[i].Mcal_PS);76 gprint (GP_ERR, "%s: %d - %f\n", image[i].name, image[i].order, image[i].Mcal_PS); 77 77 break; 78 78 case 1: 79 fprintf (stderr, "%s: %d - %f, %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My);79 gprint (GP_ERR, "%s: %d - %f, %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My); 80 80 break; 81 81 case 2: 82 fprintf (stderr, "%s: %d - %f, %d %d, %d %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My, image[i].Mxx, image[i].Mxy, image[i].Myy);82 gprint (GP_ERR, "%s: %d - %f, %d %d, %d %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My, image[i].Mxx, image[i].Mxy, image[i].Myy); 83 83 break; 84 84 case 3: 85 fprintf (stderr, "%s: %d - %f, %d %d, %d %d %d, %d %d %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My,85 gprint (GP_ERR, "%s: %d - %f, %d %d, %d %d %d, %d %d %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My, 86 86 image[i].Mxx, image[i].Mxy, image[i].Myy, image[i].Mxxx, image[i].Mxxy, image[i].Mxyy, image[i].Myyy); 87 87 break; 88 88 case 4: 89 fprintf (stderr, "%s: %d - %f, %d %d, %d %d %d, %d %d %d %d, %d %d %d %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My,89 gprint (GP_ERR, "%s: %d - %f, %d %d, %d %d %d, %d %d %d %d, %d %d %d %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My, 90 90 image[i].Mxx, image[i].Mxy, image[i].Myy, image[i].Mxxx, image[i].Mxxy, image[i].Mxyy, image[i].Myyy, 91 91 image[i].Mxxxx, image[i].Mxxxy, image[i].Mxxyy, image[i].Mxyyy, image[i].Myyyy);
Note:
See TracChangeset
for help on using the changeset viewer.
