IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 30, 2015, 7:59:48 PM (11 years ago)
Author:
eugene
Message:

more work on compression : cfitsio assumes gzip, not zlib (I have made uncompress general )

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20150429/src/opihi/cmd.data/write_vectors.c

    r38330 r38340  
    6363  }
    6464
    65   int compress = FALSE;
    66   if ((N = get_argument (argc, argv, "-compress"))) {
    67     remove_argument (N, &argc, argv);
    68     compress = TRUE;
     65  char *compress = NULL;
     66  if ((N = get_argument (argc, argv, "-compress-mode"))) {
     67    remove_argument (N, &argc, argv);
     68    compress = strcreate(argv[N]);
     69    remove_argument (N, &argc, argv);
     70  } else if ((N = get_argument (argc, argv, "-compress"))) {
     71    remove_argument (N, &argc, argv);
     72    compress = strcreate("GZIP_1");
    6973    if (!FITS) {
    7074      fprintf (stderr, "NOTE: write_vectors -compress has no effect on non-FITS\n");
Note: See TracChangeset for help on using the changeset viewer.