- Timestamp:
- Mar 6, 2013, 11:32:20 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130306/Ohana/src/opihi/dvo/mmatch.c
r34749 r35244 1 1 # include "dvoshell.h" 2 int field_needs_images (dbField *field); 2 3 3 4 /* This function uses the 'find_match' algorithm to select the objects of interest. … … 164 165 // load image data if needed (for fields listed below) 165 166 int loadImages = FALSE; 166 int mosaicMode = FALSE;167 167 for (i = 0; !loadImages && (i < Nfields); i++) { 168 if (!MEASURE_HAS_XCCD) { 169 // I'm keeping this code because it gives a way of handling dvo dbs that don't have 170 // measure.xccd if we need it 171 if (fields[i].ID == MEAS_XCCD) loadImages = TRUE; 172 if (fields[i].ID == MEAS_YCCD) loadImages = TRUE; 173 } 174 if (fields[i].ID == MEAS_XMOSAIC) loadImages = mosaicMode = TRUE; 175 if (fields[i].ID == MEAS_YMOSAIC) loadImages = mosaicMode = TRUE; 176 if (fields[i].ID == MEAS_EXTERN_ID) loadImages = mosaicMode = TRUE; 177 if (fields[i].ID == MEAS_FLAT) loadImages = mosaicMode = TRUE; 178 if (fields[i].ID == MEAS_CENTER_OFFSET) loadImages = mosaicMode = TRUE; 168 loadImages = field_needs_images (&fields[i]); 179 169 } 180 170 … … 183 173 selection.useDisplay = FALSE; 184 174 selection.useSkyregion = FALSE; 185 if (loadImages && !SetImageSelection ( mosaicMode, &selection)) goto escape;175 if (loadImages && !SetImageSelection (TRUE, &selection)) goto escape; 186 176 187 177 /* load regions which contain all supplied RA,DEC coordinates */
Note:
See TracChangeset
for help on using the changeset viewer.
