IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37694


Ignore:
Timestamp:
Nov 29, 2014, 3:29:29 AM (12 years ago)
Author:
eugene
Message:

delay frame correction until after 2 loops (if we are doing galaxy model correction)

Location:
branches/eam_branches/ipp-20140904/Ohana/src/relastro/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/FrameCorrection.c

    r37675 r37694  
    2121  int i;
    2222  for (i = 0; i < NLOOP; i++) {
    23     ICRFobj *icrfobj = slurp_icrf_obj (regionHosts, i);
    24     FrameCorrectionSet *set = FrameCorrectionMeasure (icrfobj);
    25 
    26     char *filename = make_filename (CATDIR, "master", 0, "frame.corr.fits");
    27     FrameCorrectionSetSave (filename, set);
    28     free (filename);
    29 
    30     char *syncfile = make_filename (CATDIR, "master", 0, "frame.corr.sync");
    31     update_sync_file (syncfile, i);
    32     free (syncfile);
     23    if ((i > 1) || !USE_GALAXY_MODEL) {
     24      // if GALAXY_MODEL is selected, we want to delay the frame correction until we have
     25      // applied the galaxy model a couple of times.
     26
     27      ICRFobj *icrfobj = slurp_icrf_obj (regionHosts, i);
     28      FrameCorrectionSet *set = FrameCorrectionMeasure (icrfobj);
     29     
     30      char *filename = make_filename (CATDIR, "master", 0, "frame.corr.fits");
     31      FrameCorrectionSetSave (filename, set);
     32      free (filename);
     33     
     34      char *syncfile = make_filename (CATDIR, "master", 0, "frame.corr.sync");
     35      update_sync_file (syncfile, i);
     36      free (syncfile);
     37    }
    3338  }
    3439
  • branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/relastro_parallel_images.c

    r37684 r37694  
    104104      for (i = 0; i < NLOOP; i++) {
    105105        UpdateObjects (catalog, Ncatalog, (i > 0));
    106         FrameCorrectionParallelSlave (catalog, Ncatalog, regionHosts, i);
     106        if ((i > 1) || !USE_GALAXY_MODEL) {
     107          // if GALAXY_MODEL is selected, we want to delay the frame correction until we have
     108          // applied the galaxy model a couple of times.
     109          FrameCorrectionParallelSlave (catalog, Ncatalog, regionHosts, i);
     110        }
    107111        share_mean_pos (catalog, Ncatalog, regionHosts, i);
    108112        slurp_mean_pos (catalog, Ncatalog, regionHosts, i);
Note: See TracChangeset for help on using the changeset viewer.