IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 18, 2016, 5:36:58 PM (10 years ago)
Author:
eugene
Message:

add support for ntile option in fits output compression

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.shell/VectorIO.c

    r38441 r39360  
    11# include "opihi.h"
     2void gfits_compress_timing ();
    23 
    34// write a set of vectors to a FITS FTable structure (vectors names become fits column names)
     
    103104
    104105// 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) {
     106int WriteVectorTableFITS (char *filename, char *extname, Vector **vec, int Nvec, int append, char *compress, char *format, int Ntile) {
    106107 
    107108  Header rawheader;
     
    140141
    141142    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 ();
    143145
    144146    int i, Nfields;
Note: See TracChangeset for help on using the changeset viewer.