Changeset 40228 for branches/eam_branches/ohana.20170822
- Timestamp:
- Nov 30, 2017, 8:43:50 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20170822/src/addstar/src/mkcmf.c
r39457 r40228 254 254 struct timeval now; 255 255 gettimeofday (&now, NULL); 256 long A = now.tv_sec + now.tv_usec * 1000000; 256 int B = getpid(); 257 long A = now.tv_sec - now.tv_usec * 1000000 + B*100000; 257 258 srand48(A); 258 259 } … … 412 413 gfits_modify (&header, "NINPUTS", "%d", 1, 5); 413 414 415 // if we have multiple stacks using the same input image IDs, we run into trouble 416 int nFrame = 800 * drand48(); 417 414 418 int i; 415 419 for (i = 0; i < 5; i++) { 416 420 char field[64], expname[64]; 417 421 sprintf (field, "INP_%04d", i); 418 sprintf (expname, "o5745g01%02do. 356%03d.wrp.1199763.skycell.1315.090.fits", i, i);422 sprintf (expname, "o5745g01%02do.%03d%03d.wrp.1199763.skycell.1315.090.fits", i, nFrame, i); 419 423 gfits_modify (&header, field, "%s", 1, expname); 420 424
Note:
See TracChangeset
for help on using the changeset viewer.
