- Timestamp:
- Sep 7, 2026, 4:51:13 PM (3 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-pstamp-20260421/ppSim/src/ppSimSequenceBias.c
r27967 r43081 15 15 for (int i = 0; i < nImages; i++) { 16 16 17 // define the output filename18 psString filename = NULL;19 if (path) {20 psStringAppend (&filename, "%s/%s.%03d.%03d", path, basename, nSeq, nImage);21 } else {22 psStringAppend (&filename, "%s.%03d.%03d", basename, nSeq, nImage);23 }24 25 17 // define the ppSim command 26 18 psString command = NULL; … … 30 22 if (setLevel) psStringAppend (&command, " -biaslevel %f", level); 31 23 if (setRange) psStringAppend (&command, " -biasrange %f", range); 32 24 25 // define the exposure name and output filename 26 psString expname = ppSimDefineExpname (basename, nSeq, nImage); 27 psString filename = ppSimDefineFilename (path, expname); 28 29 // add output filename to the end of the full command 33 30 psStringAppend (&command, " %s", filename); 34 31 … … 42 39 for (int i = 0; i < files->n; i++) { 43 40 command = psStringCopy (injectCommand); 44 psStringAppend (&command, " %s.%s", filename, (char *) files->data[i]);41 psStringAppend (&command, " --exp_name %s %s.%s", expname, filename, (char *) files->data[i]); 45 42 fprintf (inject, "%s\n", command); 46 43 psFree (command); 47 44 } 48 45 46 psFree (expname); 49 47 psFree (filename); 50 48 nImage ++; … … 52 50 return true; 53 51 } 52 53 psString ppSimDefineExpname (const char *basename, int nSeq, int nImage) { 54 55 // define the exposure name 56 psString expname = NULL; 57 psStringAppend (&expname, "%s.%03d.%03d", basename, nSeq, nImage); 58 return expname; 59 } 60 61 psString ppSimDefineFilename (const char *path, const char *expname) { 62 63 // define the output filename 64 psString filename = NULL; 65 if (path) { 66 psStringAppend (&filename, "%s/%s", path, expname); 67 } else { 68 psStringAppend (&filename, "%s", expname); 69 } 70 return filename; 71 }
Note:
See TracChangeset
for help on using the changeset viewer.
