Changeset 27967 for trunk/ppSim/src/ppSimSequenceFlat.c
- Timestamp:
- May 16, 2010, 1:00:37 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ppSim/src/ppSimSequenceFlat.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSim/src/ppSimSequenceFlat.c
r19315 r27967 1 1 # include "ppSimSequence.h" 2 2 3 bool ppSimSequenceFlat (FILE *simfile, FILE *inject, psMetadata *sequence, int nSeq, psRandom *rng, const char *path, const char *basename, const char *ppSimCommand, const char *injectCommand ) {3 bool ppSimSequenceFlat (FILE *simfile, FILE *inject, psMetadata *sequence, int nSeq, psRandom *rng, const char *path, const char *basename, const char *ppSimCommand, const char *injectCommand, psArray *files) { 4 4 5 5 bool status; … … 26 26 // loop over the filters & exposure times 27 27 for (int j = 0; j < nSetup; j++) { 28 28 29 29 // define the output filename 30 30 psString filename = NULL; … … 50 50 // define the inject command 51 51 // path should be dirname/filename 52 command = psStringCopy (injectCommand); 53 psStringAppend (&command, " %s*.fits", filename); 54 fprintf (inject, "%s\n", command); 55 psFree (command); 56 psFree (filename); 52 53 // we use the filename above (really the file root) to construct the filenames 54 for (int i = 0; i < files->n; i++) { 55 command = psStringCopy (injectCommand); 56 psStringAppend (&command, " %s.%s", filename, (char *) files->data[i]); 57 fprintf (inject, "%s\n", command); 58 psFree (command); 59 } 57 60 58 nImage ++; 61 psFree (filename); 62 nImage ++; 59 63 } 60 64 }
Note:
See TracChangeset
for help on using the changeset viewer.
