IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21065 for trunk/Ohana


Ignore:
Timestamp:
Dec 30, 2008, 10:18:22 AM (18 years ago)
Author:
eugene
Message:

fixed a couple of bugs related to box bounds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/imbox.c

    r20936 r21065  
    4949    // XXX currently, image uses an unsigned short for NX,XY. this is rather restrictive
    5050    // and needs to be at least checked.
    51     haveNx = gfits_scan (&header, "NAXIS1",   "%d", 1, &Nx);
    52     haveNy = gfits_scan (&header, "NAXIS2",   "%d", 1, &Ny);
    53 
    54     if (!haveNx && !haveNy) {
    55         haveNx = gfits_scan (&header, "IMNAXIS1",   "%d", 1, &Nx);
    56         haveNy = gfits_scan (&header, "IMNAXIS2",   "%d", 1, &Ny);
    57     }
     51    haveNx = gfits_scan (&header, "IMNAXIS1",   "%d", 1, &Nx);
     52    haveNy = gfits_scan (&header, "IMNAXIS2",   "%d", 1, &Ny);
    5853
    5954    if (!haveNx && !haveNy) {
    6055        haveNx = gfits_scan (&header, "ZNAXIS1",   "%d", 1, &Nx);
    6156        haveNy = gfits_scan (&header, "ZNAXIS2",   "%d", 1, &Ny);
     57    }
     58
     59    if (!haveNx && !haveNy) {
     60        haveNx = gfits_scan (&header, "NAXIS1",   "%d", 1, &Nx);
     61        haveNy = gfits_scan (&header, "NAXIS2",   "%d", 1, &Ny);
    6262    }
    6363
     
    6969    x[0] = 0;  y[0] = 0;
    7070    x[1] = Nx; y[1] = 0;
    71     x[2] = Ny; y[2] = Ny;
     71    x[2] = Nx; y[2] = Ny;
    7272    x[3] = 0;  y[3] = Ny;
    7373    status = FALSE;
Note: See TracChangeset for help on using the changeset viewer.