IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 16, 2006, 10:58:49 PM (20 years ago)
Author:
eugene
Message:

major updates to use gprint for buffered / threaded printing

File:
1 edited

Legend:

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

    r4689 r7917  
    2121
    2222  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");
    2525    return (FALSE);
    2626  }
     
    3333  dir = atof (argv[6]);
    3434  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");
    3636    return (FALSE);
    3737  }
     
    4545    nlong = nx;
    4646  }   
    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);
    4848
    4949    if ((sx < 0) || (sy < 0) ||
    5050      (sx+nx > buf[0].matrix.Naxis[0]) ||
    5151      (sy+ny > buf[0].matrix.Naxis[1])) {
    52     fprintf (stderr, "region out of range\n");
     52    gprint (GP_ERR, "region out of range\n");
    5353    return (FALSE);
    5454  }
Note: See TracChangeset for help on using the changeset viewer.