- Timestamp:
- May 28, 2015, 8:28:24 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20150429/src/opihi/cmd.data/write_vectors.c
r35109 r38330 3 3 int write_vectors (int argc, char **argv) { 4 4 5 int append;6 5 int i, j, Nvec, Ne, N; 7 6 FILE *f; 8 7 char **fmtlist, *fmttype; 9 char *p0, *p1, *p2, *format , *FITS;8 char *p0, *p1, *p2, *format; 10 9 Vector **vec; 11 10 … … 34 33 35 34 /* option generate a FITS output table */ 36 FITS = NULL;35 char *FITS = NULL; 37 36 if ((N = get_argument (argc, argv, "-fits"))) { 38 37 remove_argument (N, &argc, argv); … … 58 57 } 59 58 60 append = FALSE;59 int append = FALSE; 61 60 if ((N = get_argument (argc, argv, "-append"))) { 62 61 remove_argument (N, &argc, argv); 63 62 append = TRUE; 63 } 64 65 int compress = FALSE; 66 if ((N = get_argument (argc, argv, "-compress"))) { 67 remove_argument (N, &argc, argv); 68 compress = TRUE; 69 if (!FITS) { 70 fprintf (stderr, "NOTE: write_vectors -compress has no effect on non-FITS\n"); 71 } 64 72 } 65 73 … … 105 113 106 114 if (FITS) { 107 int status = WriteVectorTableFITS (argv[1], FITS, vec, Nvec, append, format);115 int status = WriteVectorTableFITS (argv[1], FITS, vec, Nvec, append, compress, format); 108 116 free (vec); 109 117 return status;
Note:
See TracChangeset
for help on using the changeset viewer.
