IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 12, 2015, 5:22:34 PM (11 years ago)
Author:
eugene
Message:

merge updates from trunk

Location:
branches/eam_branches/ohana.20150429
Files:
5 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20150429

  • branches/eam_branches/ohana.20150429/src/opihi/cmd.data

  • branches/eam_branches/ohana.20150429/src/opihi/cmd.data/Makefile

    r38062 r38440  
    9191$(SRC)/mget.$(ARCH).o           \
    9292$(SRC)/mget3d.$(ARCH).o         \
     93$(SRC)/mslice.$(ARCH).o         \
    9394$(SRC)/minterpolate.$(ARCH).o   \
    9495$(SRC)/medimage.$(ARCH).o       \
  • branches/eam_branches/ohana.20150429/src/opihi/cmd.data/init.c

    r38062 r38440  
    8282int mget             PROTO((int, char **));
    8383int mget3d           PROTO((int, char **));
     84int mslice           PROTO((int, char **));
    8485int minterp          PROTO((int, char **));
    8586int medimage_command PROTO((int, char **));
     
    248249  {1, "mget",         mget,             "extract a vector from an image"},
    249250  {1, "mget3d",       mget3d,           "extract a vector from a 3D image"},
     251  {1, "mslice",       mslice,           "extract an image plane from a 3D image"},
    250252  {1, "imget",        mget,             "extract a vector from an image"},
    251253  {1, "minterp",      minterp,          "interpolate image pixels"},
  • branches/eam_branches/ohana.20150429/src/opihi/cmd.data/rd.c

    r38363 r38440  
    1919    remove_argument (N, &argc, argv);
    2020    JustHead = TRUE;
     21  }
     22
     23  int SwapRaw = FALSE;
     24  if ((N = get_argument (argc, argv, "-swap-raw"))) {
     25    remove_argument (N, &argc, argv);
     26    SwapRaw = TRUE;
    2127  }
    2228
     
    176182  if (plane >= 0) {
    177183    // we are requesting a specific plane (-1 : all data)
    178     int tooFar = Nz ? (plane >= Nz) : (plane > Nz);
     184    int tooFar = (Nz > 0) ? (plane >= Nz) : (plane > 0);
    179185    if (tooFar) {
    180186      gprint (GP_ERR, "-plane is too large: %d total planes\n", Nz);
     
    249255  gfits_scan (&buf[0].header, "BLANK", "%d", 1, &blank);
    250256
     257  if (SwapRaw) {
     258    gfits_swap_raw (&buf[0].matrix);
     259  }
     260
    251261  /** now - convert the matrix values to floats for internal use **/
    252262  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.