Changeset 19130
- Timestamp:
- Aug 19, 2008, 6:51:33 PM (18 years ago)
- Location:
- trunk/Ohana/src
- Files:
-
- 2 edited
-
addstar/src/ReadImageHeader.c (modified) (1 diff)
-
opihi/dvo/imbox.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/ReadImageHeader.c
r19065 r19130 19 19 // XXX currently, image uses an unsigned short for NX,XY. this is rather restrictive 20 20 // and needs to be at least checked. 21 gfits_scan (header, "NAXIS1", "%d", 1, &Nx);22 gfits_scan (header, "NAXIS2", "%d", 1, &Ny);21 haveNx = gfits_scan (header, "NAXIS1", "%d", 1, &Nx); 22 haveNy = gfits_scan (header, "NAXIS2", "%d", 1, &Ny); 23 23 24 24 if (!haveNx && !haveNy) { -
trunk/Ohana/src/opihi/dvo/imbox.c
r16000 r19130 3 3 int imbox (int argc, char **argv) { 4 4 5 int j, kapa, Nskip, status, InPic, flipped, N, SOLO_PHU;5 int j, kapa, Nskip, status, InPic, flipped, N, haveNx, haveNy, Nx, Ny, SOLO_PHU; 6 6 Vector Xvec, Yvec; 7 7 double r, d, x[4], y[4], Rmin, Rmax, Rmid; … … 46 46 goto skip; 47 47 } 48 x[0] = 0; y[0] = 0; 49 x[1] = header.Naxis[0]; y[1] = 0; 50 x[2] = header.Naxis[0]; y[2] = header.Naxis[1]; 51 x[3] = 0; y[3] = header.Naxis[1]; 48 49 // XXX currently, image uses an unsigned short for NX,XY. this is rather restrictive 50 // 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 } 58 59 if (!haveNx || !haveNy) { 60 fprintf (stderr, "missing image dimensions in header\n"); 61 goto skip; 62 } 63 64 x[0] = 0; y[0] = 0; 65 x[1] = Nx; y[1] = 0; 66 x[2] = Ny; y[2] = Ny; 67 x[3] = 0; y[3] = Ny; 52 68 status = FALSE; 53 69 flipped = FALSE;
Note:
See TracChangeset
for help on using the changeset viewer.
