- Timestamp:
- Jun 23, 2015, 4:11:40 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150616/Ohana/src/addstar/src/LoadData.c
r38501 r38522 5 5 6 6 // examine the header sets and set the Image entries for the the valid images 7 int LoadData (FILE *f, char*file, Image **images, off_t *nvalid, Stars **stars, unsigned int *Nstars, Header **headers, off_t *extsize, HeaderSet *headerSets, int Nimages, AddstarClientOptions *options) {7 int LoadData (FILE *f, AddstarFile *file, Image **images, off_t *nvalid, Stars **stars, unsigned int *Nstars, Header **headers, off_t *extsize, HeaderSet *headerSets, int Nimages, AddstarClientOptions *options) { 8 8 9 char *name;10 9 off_t Nskip, Nvalid, NVALID; 11 10 int i, j, Nhead, Ndata; … … 22 21 REALLOCATE (images[0], Image, NVALID); 23 22 } 24 25 // find image rootname26 if (USE_NAME) {27 name = filebasename (USE_NAME);28 } else {29 name = filebasename (file);30 }31 23 32 24 // if zero points are calculated for the full exposure using more than just the matched chip header, … … 58 50 // XXX use something to set the chip name? EXTNAME? 59 51 if (!strcmp(headerSets[i].exthead, "PHU") && (Nimages == 1)) { 60 snprintf (images[0][Nvalid].name, DVO_IMAGE_NAME_LEN, "%s", name);52 snprintf (images[0][Nvalid].name, DVO_IMAGE_NAME_LEN, "%s", file->imagename); 61 53 } else { 62 snprintf (images[0][Nvalid].name, DVO_IMAGE_NAME_LEN, "%s[%s]", name, headerSets[i].exthead);54 snprintf (images[0][Nvalid].name, DVO_IMAGE_NAME_LEN, "%s[%s]", file->imagename, headerSets[i].exthead); 63 55 } 64 56 … … 117 109 stars[0][i].measure.Map += OFFSET_ZPT; 118 110 } 119 120 111 } 121 112 122 free (name);123 113 *nvalid = Nvalid; 124 114 return (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.
