IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40382


Ignore:
Timestamp:
Apr 8, 2018, 11:09:06 AM (8 years ago)
Author:
eugene
Message:

add new option to fit astrometry for stacks (previously relastro only measured the systematic floor)

Location:
trunk/Ohana/src/relastro
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relastro/Makefile

    r39693 r40382  
    5252$(SRC)/UpdateChips.$(ARCH).o         \
    5353$(SRC)/UpdateStacks.$(ARCH).o         \
     54$(SRC)/UpdateStacksWithFit.$(ARCH).o \
    5455$(SRC)/UpdateMosaic.$(ARCH).o        \
    5556$(SRC)/UpdateObjects.$(ARCH).o       \
  • trunk/Ohana/src/relastro/include/relastro.h

    r40291 r40382  
    367367int    USE_ICRF_POLE;
    368368
     369int    FIT_STACKS;
    369370int    REPAIR_STACKS;
    370371int    USE_IMAGE_COORDS_FOR_REPAIR;
     
    623624int UpdateChips (Catalog *catalog, int Ncatalog, int Nloop);
    624625int UpdateStacks (Catalog *catalog, int Ncatalog);
     626int UpdateStacksWithFit (Catalog *catalog, int Ncatalog);
    625627int UpdateMosaic (Catalog *catalog, int Ncatalog);
    626628int UpdateMeasures (Catalog *catalog, int Ncatalog);
  • trunk/Ohana/src/relastro/src/args.c

    r40291 r40382  
    861861    remove_argument (N, &argc, argv);
    862862    RELASTRO_OP = OP_REPAIR_WARPS;
     863  }
     864
     865  // the default is to only measure the scatter for the stacks, not to perform a new fit
     866  FIT_STACKS = FALSE;
     867  if ((N = get_argument (argc, argv, "-fit-stacks"))) {
     868    remove_argument (N, &argc, argv);
     869    FIT_STACKS = TRUE;
    863870  }
    864871
  • trunk/Ohana/src/relastro/src/relastro_images.c

    r39926 r40382  
    8787      }
    8888
    89       // measure scatter for stacks
    90       UpdateStacks (catalog, Ncatalog);
     89      if (FIT_STACKS) {
     90        // model astrometry for stacks
     91        UpdateStacksWithFit (catalog, Ncatalog);
     92      } else {
     93        // measure scatter for stacks
     94        UpdateStacks (catalog, Ncatalog);
     95      }
    9196      MARKTIME("UpdateStacks: %f sec\n", dtime);
    9297
  • trunk/Ohana/src/relastro/src/relastro_parallel_images.c

    r39926 r40382  
    150150      }
    151151
    152       // measure scatter for stacks
    153       UpdateStacks (catalog, Ncatalog);
     152      if (FIT_STACKS) {
     153        // model astrometry for stacks
     154        UpdateStacksWithFit (catalog, Ncatalog);
     155      } else {
     156        // measure scatter for stacks
     157        UpdateStacks (catalog, Ncatalog);
     158      }
    154159      LOGRTIME("UpdateStacks on %s, host %d: %f sec\n", myHostName, REGION_HOST_ID, dtime);
    155160
Note: See TracChangeset for help on using the changeset viewer.