Changeset 27838 for branches/tap_branches/Ohana/src/imregister/imreg/cadc.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/imregister/imreg/cadc.c
r16040 r27838 4 4 static int REFCCD; 5 5 6 void DumpCADCTable (char *filename, RegImage *image, int *match, int Nmatch) {7 8 int i, Obsid, Nobsid, Nsubset, ref;6 void DumpCADCTable (char *filename, RegImage *image, off_t *match, off_t Nmatch) { 7 8 off_t i, Obsid, Nobsid, Nsubset, ref; 9 9 char *datestr, *line, hdrname[99]; 10 10 time_t tsecond; … … 13 13 FTable table; 14 14 RegImage *row; 15 int *index, *entry, *obsid;15 off_t *index, *entry, *obsid; 16 16 MosaicLayout *layout; 17 int *subset;17 off_t *subset; 18 18 double left, right, center, outer, top, bottom; 19 19 double iqx, iqy, iqr, iqf, iqo; … … 127 127 } 128 128 129 int *GetObsIDSubset (RegImage *image, int start, int *index, int *entry, int Nindex, int *Nsubset) {130 131 int i, N, NSUBSET;132 int *subset;129 off_t *GetObsIDSubset (RegImage *image, off_t start, off_t *index, off_t *entry, off_t Nindex, off_t *Nsubset) { 130 131 off_t i, N, NSUBSET; 132 off_t *subset; 133 133 134 134 /* create output index */ 135 135 N = 0; 136 136 NSUBSET = 64; 137 ALLOCATE (subset, int, NSUBSET);137 ALLOCATE (subset, off_t, NSUBSET); 138 138 139 139 /* find unique sequences */ … … 143 143 if (N == NSUBSET) { 144 144 NSUBSET += 64; 145 REALLOCATE (subset, int, NSUBSET);145 REALLOCATE (subset, off_t, NSUBSET); 146 146 } 147 147 } … … 152 152 153 153 /* return an index list of unique obs id entries at start of sequence */ 154 int *GetUniqueObsID (RegImage *image, int *index, int *entry, int Nindex, int *Nmatch) {155 156 int i, j, N, NMATCH;157 int *match;154 off_t *GetUniqueObsID (RegImage *image, off_t *index, off_t *entry, off_t Nindex, off_t *Nmatch) { 155 156 off_t i, j, N, NMATCH; 157 off_t *match; 158 158 159 159 /* create output index */ 160 160 N = 0; 161 161 NMATCH = 1000; 162 ALLOCATE (match, int, NMATCH);162 ALLOCATE (match, off_t, NMATCH); 163 163 164 164 /* find unique sequences */ … … 171 171 if (N == NMATCH) { 172 172 NMATCH += 1000; 173 REALLOCATE (match, int, NMATCH);173 REALLOCATE (match, off_t, NMATCH); 174 174 } 175 175 … … 182 182 183 183 /* return seeing for ccd == REFCCD */ 184 int GetREFCCD (RegImage *image, int *index, int *entry, int Nindex, int start) {185 186 int i, N, NMATCH;187 int *match;184 off_t GetREFCCD (RegImage *image, off_t *index, off_t *entry, off_t Nindex, off_t start) { 185 186 off_t i, N, NMATCH; 187 off_t *match; 188 188 189 189 /* create output index */ 190 190 N = 0; 191 191 NMATCH = 1000; 192 ALLOCATE (match, int, NMATCH);192 ALLOCATE (match, off_t, NMATCH); 193 193 194 194 /* find unique sequences */ … … 199 199 } 200 200 201 void GetObsIDIndex (RegImage *image, int *match, int Nmatch, int **Index, int **Entry) {202 203 int i;204 int *index, *entry;201 void GetObsIDIndex (RegImage *image, off_t *match, off_t Nmatch, off_t **Index, off_t **Entry) { 202 203 off_t i; 204 off_t *index, *entry; 205 205 206 206 /* index = OBSID */ 207 ALLOCATE (index, int, Nmatch);208 ALLOCATE (entry, int, Nmatch);207 ALLOCATE (index, off_t, Nmatch); 208 ALLOCATE (entry, off_t, Nmatch); 209 209 for (i = 0; i < Nmatch; i++) { 210 210 index[i] = atoi (image[match[i]].filename); … … 212 212 entry[i] = match[i]; 213 213 } 214 isortpair (index, entry, Nmatch);214 llsortpair (index, entry, Nmatch); 215 215 *Index = index; 216 216 *Entry = entry; … … 218 218 219 219 /* match is a list of image entries with the same obsid */ 220 double MosaicIQStats (RegImage *image, int *match, int Nmatch, MosaicRegion *region) { 221 222 int i, j, N, Nccd; 220 double MosaicIQStats (RegImage *image, off_t *match, off_t Nmatch, MosaicRegion *region) { 221 222 int i, N, Nccd; 223 off_t j; 223 224 double *list, value; 224 225
Note:
See TracChangeset
for help on using the changeset viewer.
