Changeset 39360
- Timestamp:
- Feb 18, 2016, 5:36:58 PM (10 years ago)
- Location:
- trunk/Ohana/src/opihi
- Files:
-
- 9 edited
-
cmd.data/read_vectors.c (modified) (2 diffs)
-
cmd.data/write_vectors.c (modified) (2 diffs)
-
dvo/avextract.c (modified) (1 diff)
-
dvo/avmatch.c (modified) (2 diffs)
-
dvo/dvo_host_utils.c (modified) (1 diff)
-
dvo/mextract.c (modified) (1 diff)
-
dvo/mmatch.c (modified) (2 diffs)
-
include/dvomath.h (modified) (1 diff)
-
lib.shell/VectorIO.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/read_vectors.c
r39328 r39360 2 2 int dump_raw_table (FTable *table, char *message); 3 3 int dump_cmp_table (FTable *table, char *message); 4 void gfits_uncompress_timing (); 4 5 5 6 FILE *f = (FILE *) NULL; … … 594 595 } 595 596 if (!gfits_uncompress_table (&table, &rawtable)) ESCAPE ("failed to uncompress table\n"); 597 gfits_uncompress_timing (); 598 596 599 dump_raw_table (&rawtable, "rd raw"); 597 600 -
trunk/Ohana/src/opihi/cmd.data/write_vectors.c
r39283 r39360 74 74 fprintf (stderr, "NOTE: write_vectors -compress has no effect on non-FITS\n"); 75 75 } 76 } 77 78 int Ntile = 0; 79 if ((N = get_argument (argc, argv, "-compress-Ntile"))) { 80 remove_argument (N, &argc, argv); 81 Ntile = atoi(argv[N]); 82 remove_argument (N, &argc, argv); 76 83 } 77 84 … … 117 124 118 125 if (FITS) { 119 int status = WriteVectorTableFITS (argv[1], FITS, vec, Nvec, append, compress, format );126 int status = WriteVectorTableFITS (argv[1], FITS, vec, Nvec, append, compress, format, Ntile); 120 127 free (vec); 121 128 return status; -
trunk/Ohana/src/opihi/dvo/avextract.c
r39296 r39360 262 262 // write vectors to a table (this is used by parallel dvo operations, but can be used elsewhere) 263 263 if (RESULT_FILE && !SKIP_RESULTS) { 264 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", vec, Nreturn, FALSE, FALSE, NULL );264 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", vec, Nreturn, FALSE, FALSE, NULL, 0); 265 265 if (!status) { 266 266 goto escape; -
trunk/Ohana/src/opihi/dvo/avmatch.c
r39225 r39360 115 115 116 116 CoordsFile = abspath("coords.fits", 1024); 117 int status = WriteVectorTableFITS (CoordsFile, "COORDS", vec, 2, FALSE, FALSE, NULL );117 int status = WriteVectorTableFITS (CoordsFile, "COORDS", vec, 2, FALSE, FALSE, NULL, 0); 118 118 if (!status) goto escape; 119 119 } … … 304 304 vec[i][0].Nelements = Nfound; 305 305 } 306 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", vec, Nfields + 1, FALSE, FALSE, NULL );306 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", vec, Nfields + 1, FALSE, FALSE, NULL, 0); 307 307 free (vec[Nfields]->elements.Int); 308 308 free (vec[Nfields]); -
trunk/Ohana/src/opihi/dvo/dvo_host_utils.c
r38441 r39360 230 230 // write vectors to a table (this is used by parallel dvo operations, but can be used elsewhere) 231 231 if (ResultFile) { 232 int status = WriteVectorTableFITS (ResultFile, "RESULT", vec, Nvec, FALSE, FALSE, NULL );232 int status = WriteVectorTableFITS (ResultFile, "RESULT", vec, Nvec, FALSE, FALSE, NULL, 0); 233 233 if (!status) { 234 234 gprint (GP_ERR, "failed to write result file %s\n", ResultFile); -
trunk/Ohana/src/opihi/dvo/mextract.c
r38986 r39360 321 321 // write vectors to a table (this is used by parallel dvo operations, but can be used elsewhere) 322 322 if (RESULT_FILE && !SKIP_RESULTS) { 323 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", vec, Nreturn, FALSE, FALSE, NULL );323 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", vec, Nreturn, FALSE, FALSE, NULL, 0); 324 324 if (!status) goto escape; 325 325 } -
trunk/Ohana/src/opihi/dvo/mmatch.c
r38471 r39360 150 150 // XXX this is now set for both cases... 151 151 CoordsFile = abspath("coords.fits", 1024); 152 int status = WriteVectorTableFITS (CoordsFile, "COORDS", vec, 2, FALSE, FALSE, NULL );152 int status = WriteVectorTableFITS (CoordsFile, "COORDS", vec, 2, FALSE, FALSE, NULL, 0); 153 153 if (!status) goto escape; 154 154 } … … 350 350 vec[Nfields-1] = IDXvec; 351 351 } 352 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", vec, Nfields, FALSE, FALSE, NULL );352 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", vec, Nfields, FALSE, FALSE, NULL, 0); 353 353 if (!status) goto escape; 354 354 } -
trunk/Ohana/src/opihi/include/dvomath.h
r39225 r39360 168 168 169 169 /* vector IO functions */ 170 int WriteVectorTableFITS PROTO((char *filename, char *extname, Vector **vec, int Nvec, int append, char *compress, char *format ));170 int WriteVectorTableFITS PROTO((char *filename, char *extname, Vector **vec, int Nvec, int append, char *compress, char *format, int Ntile)); 171 171 Vector **ReadVectorTableFITS PROTO((char *filename, char *extname, int *Nvec)); 172 172 -
trunk/Ohana/src/opihi/lib.shell/VectorIO.c
r38441 r39360 1 1 # include "opihi.h" 2 void gfits_compress_timing (); 2 3 3 4 // write a set of vectors to a FITS FTable structure (vectors names become fits column names) … … 103 104 104 105 // write a set of vectors to a FITS file (vectors names become fits column names) 105 int WriteVectorTableFITS (char *filename, char *extname, Vector **vec, int Nvec, int append, char *compress, char *format ) {106 int WriteVectorTableFITS (char *filename, char *extname, Vector **vec, int Nvec, int append, char *compress, char *format, int Ntile) { 106 107 107 108 Header rawheader; … … 140 141 141 142 dump_raw_table (&rawtable, "wd raw"); 142 if (!gfits_compress_table (&rawtable, &cmptable, 0, compress)) goto escape; 143 if (!gfits_compress_table (&rawtable, &cmptable, Ntile, compress)) goto escape; 144 gfits_compress_timing (); 143 145 144 146 int i, Nfields;
Note:
See TracChangeset
for help on using the changeset viewer.
