IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 3, 2014, 6:14:26 AM (12 years ago)
Author:
eugene
Message:

working on fake images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/fakeastro/src/fakeastro_images.c

    r37453 r37458  
    11# include "fakeastro.h"
    22
    3 int fakeastro_images (SkyList *skylistInput, HostTable *hosts) {
     3int 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);
    412
    513  int Nimages;
    614  Images *images = load_template_images (&Nimages);
    715 
    8   Images *bores = make_boresites (images, Nimages, Nbores);
    9 
    10   for (i = 0; i < Nbores; i++) {
     16  for (i = 0; i < Nimages; i++) {
    1117
    1218    // we only want to make fake images for the exposures
     
    1622   
    1723    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);
    1925     
    2026      // save fake stars...
Note: See TracChangeset for help on using the changeset viewer.