Changeset 27838 for branches/tap_branches/Ohana/src/opihi/dvo/ImageOps.c
- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/Ohana
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/Ohana merged eligible /branches/eam_branches/Ohana.20100407 27635-27772 /branches/pap_delete/Ohana 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/tap_branches/Ohana/src/opihi/dvo/ImageOps.c
r19823 r27838 1 1 # include "dvoshell.h" 2 2 3 void image_subset (Image *image, int Nimage, int **Subset, int *Nsubset,3 void image_subset (Image *image, off_t Nimage, off_t **Subset, off_t *Nsubset, 4 4 SkyRegionSelection *selection, 5 5 unsigned long int tzero, double trange, int TimeSelect) 6 6 { 7 7 8 int i,j, flipped, status, InPic;9 int*subset;10 int N, n,npts;8 int j, flipped, status, InPic; 9 off_t i, n, *subset; 10 int npts; 11 11 double r, d, X, Y, x[4], y[4], Rmin, Rmax, Rmid; 12 12 Graphdata graph; … … 26 26 } 27 27 28 patch.Rmin = 0; 29 patch.Rmax = 0; 30 patch.Dmin = 0; 31 patch.Dmax = 0; 28 32 if (selection->useSkyregion) { 29 33 double Rs, Re, Ds, De; … … 44 48 45 49 npts = 200; 46 ALLOCATE (subset, int, npts);47 n = N =0;50 ALLOCATE (subset, off_t, npts); 51 n = 0; 48 52 for (i = 0; i < Nimage; i++) { 49 53 if (TimeSelect && ((image[i].tzero < tzero) || (image[i].tzero+image[i].trate*image[i].NY > tzero + trange))) continue; … … 114 118 if (n > npts - 1) { 115 119 npts += 200; 116 REALLOCATE (subset, int, npts);120 REALLOCATE (subset, off_t, npts); 117 121 } 118 122 } 119 123 120 REALLOCATE (subset, int, MAX (n, 1));124 REALLOCATE (subset, off_t, MAX (n, 1)); 121 125 *Subset = subset; 122 126 *Nsubset = n;
Note:
See TracChangeset
for help on using the changeset viewer.
