IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 11, 2015, 1:19:59 PM (11 years ago)
Author:
eugene
Message:

option to swap raw data bytes on read (for broken files)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/rd.c

    r38234 r38255  
    1313    remove_argument (N, &argc, argv);
    1414    JustHead = TRUE;
     15  }
     16
     17  int SwapRaw = FALSE;
     18  if ((N = get_argument (argc, argv, "-swap-raw"))) {
     19    remove_argument (N, &argc, argv);
     20    SwapRaw = TRUE;
    1521  }
    1622
     
    239245  gfits_scan (&buf[0].header, "BLANK", "%d", 1, &blank);
    240246
     247  if (SwapRaw) {
     248    gfits_swap_raw (&buf[0].matrix);
     249  }
     250
    241251  /** now - convert the matrix values to floats for internal use **/
    242252  gfits_convert_format (&buf[0].header, &buf[0].matrix, -32, 1.0, 0.0, blank, gfits_get_unsign_mode());
Note: See TracChangeset for help on using the changeset viewer.