IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37657


Ignore:
Timestamp:
Nov 21, 2014, 8:21:30 AM (12 years ago)
Author:
eugene
Message:

adding frame correction I/O stuff

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

Legend:

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

    r37655 r37657  
    11# include "relastro.h"
     2
    23int FrameCorrectionWriteImageSH (FrameCorrectionType *frame, char *filename, int raDirection);
    34
     
    1516
    1617*/
     18
     19FrameCorrectionSet *FrameCorrectionSetInit () {
     20
     21  FrameCorrectionSet *set = NULL;
     22  ALLOCATE (set, FrameCorrectionType, 1);
     23
     24  set->frame = NULL;
     25  set->map = NULL;
     26  return set;
     27}
     28
     29void FrameCorrectionSetFree (FrameCorrectionSet *set) {
     30
     31  if (!set) return;
     32
     33  FrameCorrectionFree(set->frame);
     34  AstromOffsetMapFree (set->map);
     35  free set;
     36}
    1737
    1838FrameCorrectionType *FrameCorrectionInit (double scale) {
  • branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/load_catalogs.c

    r37655 r37657  
    171171    if (FlagOutlier)   strextend (command, "-clip %d", CLIP_THRESH);
    172172    if (ExcludeBogus)  strextend (command, "-exclude-bogus %f", ExcludeBogusRadius);
     173    if (USE_ICRF_CORRECT) strextend (command, "-D USE_ICRF_CORRECT %d", USE_ICRF_CORRECT);
     174    if (USE_GALAXY_MODEL) strextend (command, "-D USE_GALAXY_MODEL %d", USE_GALAXY_MODEL);
    173175   
    174176    if (DCR_BLUE_COLOR_POS && DCR_BLUE_COLOR_NEG) {
  • branches/eam_branches/ipp-20140904/Ohana/src/relastro/src/relastro_parallel_images.c

    r37655 r37657  
    8888      for (i = 0; i < NLOOP; i++) {
    8989        UpdateObjects (catalog, Ncatalog, (i > 0));
     90        share_icrf_obj (catalog, Ncatalog, regionHosts, i);
     91        applyFrameCorr (catalog, Ncatalog, regionHosts, i); // read and apply the frame correction
    9092        share_mean_pos (catalog, Ncatalog, regionHosts, i);
    9193        // XXX FrameCorrection (catalog, Ncatalog); -- this needs to happen on the master machine?
Note: See TracChangeset for help on using the changeset viewer.