- Timestamp:
- Sep 8, 2009, 4:28:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/Ohana/src/kapa2/src/LoadPicture.c
r21060 r25296 25 25 Yoffset = 0.0; 26 26 if (image[0].image[0].matrix.size) { 27 Xoffset = image[0].picture.X - 0.5*image[0].image[0].matrix.Naxis[0]; 28 Yoffset = image[0].picture.Y - 0.5*image[0].image[0].matrix.Naxis[1]; 27 // XXX enforce int center here? 28 Xoffset = image[0].picture.Xc - 0.5*image[0].image[0].matrix.Naxis[0]; 29 Yoffset = image[0].picture.Yc - 0.5*image[0].image[0].matrix.Naxis[1]; 29 30 } 30 31 … … 49 50 50 51 // reference point for image is the center pixel 51 image[0].picture.X = 0.5*header.Naxis[0] + Xoffset;52 image[0].picture.Y = 0.5*header.Naxis[1] + Yoffset;52 image[0].picture.Xc = 0.5*header.Naxis[0] + Xoffset; 53 image[0].picture.Yc = 0.5*header.Naxis[1] + Yoffset; 53 54 54 55 // choose expand for wide to guarantee we fit: … … 59 60 image[0].wide.expand = 1.0 / wx; 60 61 } 61 image[0].wide.X = 0.5*header.Naxis[0];62 image[0].wide.Y = 0.5*header.Naxis[1];62 image[0].wide.Xc = 0.5*header.Naxis[0]; 63 image[0].wide.Yc = 0.5*header.Naxis[1]; 63 64 64 65 fcntl (sock, F_SETFL, O_NONBLOCK);
Note:
See TracChangeset
for help on using the changeset viewer.
