Changeset 19259
- Timestamp:
- Aug 28, 2008, 10:00:24 AM (18 years ago)
- Location:
- trunk/Ohana/src
- Files:
-
- 5 edited
-
addstar/src/LoadData.c (modified) (2 diffs)
-
addstar/src/LoadDataPMM.c (modified) (2 diffs)
-
addstar/src/ReadStarsSDSS.c (modified) (2 diffs)
-
addstar/src/sky_tessalation.c (modified) (4 diffs)
-
getstar/src/ReadImageFiles.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/LoadData.c
r16982 r19259 1 1 # include "addstar.h" 2 # define DVO_IMAGE_NAME_LEN 128 2 3 3 4 // XXX this function is somewhat specific to the elixir format output files … … 43 44 // XXX use something to set the chip name? EXTNAME? 44 45 if (!strcmp(headerSets[i].exthead, "PHU") && (Nimages == 1)) { 45 snprintf (images[0][Nvalid].name, 64, "%s", name);46 snprintf (images[0][Nvalid].name, DVO_IMAGE_NAME_LEN, "%s", name); 46 47 } else { 47 snprintf (images[0][Nvalid].name, 64, "%s[%s]", name, headerSets[i].exthead);48 snprintf (images[0][Nvalid].name, DVO_IMAGE_NAME_LEN, "%s[%s]", name, headerSets[i].exthead); 48 49 } 49 50 -
trunk/Ohana/src/addstar/src/LoadDataPMM.c
r16967 r19259 1 1 # include "addstar.h" 2 # define DVO_IMAGE_NAME_LEN 128 2 3 3 4 /* .asc files look like: … … 246 247 247 248 // save the filename 248 snprintf (image[0].name, 64, "%s", datafile);249 snprintf (image[0].name, DVO_IMAGE_NAME_LEN, "%s", datafile); 249 250 return photcode; 250 251 } -
trunk/Ohana/src/addstar/src/ReadStarsSDSS.c
r16937 r19259 1 1 # include "addstar.h" 2 # define DVO_IMAGE_NAME_LEN 128 2 3 int SetSDSSFlags (Stars *star, unsigned int flags1, unsigned int flags2); 3 4 … … 260 261 261 262 // save the filename 262 snprintf (images[N].name, 64, "%s[%s]", name, filtname[i]);263 snprintf (images[N].name, DVO_IMAGE_NAME_LEN, "%s[%s]", name, filtname[i]); 263 264 } 264 265 -
trunk/Ohana/src/addstar/src/sky_tessalation.c
r16390 r19259 2 2 # include "assert.h" 3 3 # define iSWAP(X,Y) {int tmp=(X); (X) = (Y); (Y) = tmp;} 4 # define DVO_IMAGE_NAME_LEN 128 4 5 5 6 // we use a static refcoords structure to avoid multiple alloc / init steps … … 77 78 for (j = 0; j < Ntriangles; j++) { 78 79 sky_triangle_to_image (&image[j], &tri[j]); 79 snprintf (image[j].name, 64, format, Nout);80 snprintf (image[j].name, DVO_IMAGE_NAME_LEN, format, Nout); 80 81 Nout++; 81 82 } … … 160 161 if (!strcmp(rectangle[j].coords.ctype, "DROP")) continue; 161 162 memcpy (&subset[Nsubset], &rectangle[j], sizeof(SkyRectangle)); 162 snprintf (subset[Nsubset].name, 64, format, Nname);163 snprintf (subset[Nsubset].name, DVO_IMAGE_NAME_LEN, format, Nname); 163 164 Nname++; 164 165 Nsubset++; … … 427 428 memcpy (&output[N].coords, &input[0].coords, sizeof(Coords)); 428 429 429 snprintf (output[N].name, 64, format, N);430 snprintf (output[N].name, DVO_IMAGE_NAME_LEN, format, N); 430 431 output[N].NX = NX; 431 432 output[N].NY = NY; -
trunk/Ohana/src/getstar/src/ReadImageFiles.c
r15487 r19259 1 1 # include "dvoImageOverlaps.h" 2 # define DVO_IMAGE_NAME_LEN 128 2 3 3 4 Image *ReadImageFiles (char *filename, int *Nimages) { … … 63 64 /* find image rootname */ 64 65 name = filebasename (file[i]); 65 snprintf (image[N].name, 64, name);66 snprintf (image[N].name, DVO_IMAGE_NAME_LEN, name); 66 67 free (name); 67 68 … … 195 196 // XXX use something to set the chip name? EXTNAME? 196 197 if (!strcmp(exthead[i], "PHU") && (Nimage == 1)) { 197 snprintf (image[N].name, 64, "%s", name);198 snprintf (image[N].name, DVO_IMAGE_NAME_LEN, "%s", name); 198 199 } else { 199 snprintf (image[N].name, 64, "%s[%s]", name, exthead[i]);200 snprintf (image[N].name, DVO_IMAGE_NAME_LEN, "%s[%s]", name, exthead[i]); 200 201 } 201 202
Note:
See TracChangeset
for help on using the changeset viewer.
