Changeset 7917 for trunk/Ohana/src/opihi/cmd.astro/biassub.c
- Timestamp:
- Jul 16, 2006, 10:58:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.astro/biassub.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.astro/biassub.c
r4689 r7917 21 21 22 22 if (argc != 7) { 23 fprintf (stderr, "USAGE: biassub <buffer> sx sy nx ny dir [-v N V]\n");24 fprintf (stderr, " optional storage of vector and sequence in N and V\n");23 gprint (GP_ERR, "USAGE: biassub <buffer> sx sy nx ny dir [-v N V]\n"); 24 gprint (GP_ERR, " optional storage of vector and sequence in N and V\n"); 25 25 return (FALSE); 26 26 } … … 33 33 dir = atof (argv[6]); 34 34 if ((dir != 0) && (dir != 1)) { 35 fprintf (stderr, " dir must be either 0 (x) or 1 (y)\n");35 gprint (GP_ERR, " dir must be either 0 (x) or 1 (y)\n"); 36 36 return (FALSE); 37 37 } … … 45 45 nlong = nx; 46 46 } 47 fprintf (GetOutfile(), "start: %d %d size: %d %d\n", sx, sy, nx, ny);47 gprint (GP_LOG, "start: %d %d size: %d %d\n", sx, sy, nx, ny); 48 48 49 49 if ((sx < 0) || (sy < 0) || 50 50 (sx+nx > buf[0].matrix.Naxis[0]) || 51 51 (sy+ny > buf[0].matrix.Naxis[1])) { 52 fprintf (stderr, "region out of range\n");52 gprint (GP_ERR, "region out of range\n"); 53 53 return (FALSE); 54 54 }
Note:
See TracChangeset
for help on using the changeset viewer.
