- Timestamp:
- Oct 3, 2014, 6:14:26 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904/Ohana/src/fakeastro/src/fakeastro_images.c
r37453 r37458 1 1 # include "fakeastro.h" 2 2 3 int fakeastro_images (SkyList *skylistInput, HostTable *hosts) { 3 int fakeastro_images (HostTable *hosts) { 4 5 SkyTable *skyTableInput = SkyTableLoadOptimal (CATDIR_INPUT, SKY_TABLE, GSCFILE, TRUE, SKY_DEPTH, VERBOSE); 6 SkyTableSetFilenames (skyTableInput, CATDIR_INPUT, "cpt"); 7 // SkyList *skyListInput = SkyListByPatch (skyInpt, -1, &UserPatch); 8 9 SkyTable *skyTableOutput = SkyTableLoadOptimal (CATDIR_OUTPUT, SKY_TABLE, GSCFILE, TRUE, SKY_DEPTH, VERBOSE); 10 SkyTableSetFilenames (skyTableOutput, CATDIR_OUTPUT, "cpt"); 11 // SkyList *skyListOutput = SkyListByPatch (skyInpt, -1, &UserPatch); 4 12 5 13 int Nimages; 6 14 Images *images = load_template_images (&Nimages); 7 15 8 Images *bores = make_boresites (images, Nimages, Nbores); 9 10 for (i = 0; i < Nbores; i++) { 16 for (i = 0; i < Nimages; i++) { 11 17 12 18 // we only want to make fake images for the exposures … … 16 22 17 23 for (j = 0; j < NfakeImages; j++) { 18 Stars *fakeStars = make_fake_stars ( &fakeImages[i], &NfakeStars);24 Stars *fakeStars = make_fake_stars (skyTableInput, skyTableOutput, &fakeImages[i], &NfakeStars); 19 25 20 26 // save fake stars...
Note:
See TracChangeset
for help on using the changeset viewer.
