IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 6, 2024, 12:17:18 PM (20 months ago)
Author:
eugene
Message:

add option to calibrate stacks like chips rather than only tied to average chip values

Location:
branches/eam_branches/ipp-20230313/Ohana/src/relphot
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/Ohana/src/relphot/include/relphot.h

    r42708 r42740  
    490490int    CALIBRATE_STACKS_AND_WARPS;
    491491int    CALIBRATE_WARPS_LIKE_CHIPS;
     492int    CALIBRATE_STACKS_LIKE_CHIPS;
    492493
    493494int    KEEP_UBERCAL;
  • branches/eam_branches/ipp-20230313/Ohana/src/relphot/src/args.c

    r42708 r42740  
    528528  }
    529529
     530  /* Normally, stacks and warps are treated differently from chips.  In this case,
     531     WHAT IS DIFFERENT?
     532   */
     533
    530534  CALIBRATE_WARPS_LIKE_CHIPS = FALSE;
    531535  if ((N = get_argument (argc, argv, "-calibrate-warps-like-chips"))) {
    532536    remove_argument (N, &argc, argv);
    533537    CALIBRATE_WARPS_LIKE_CHIPS = TRUE;
     538  }
     539  CALIBRATE_STACKS_LIKE_CHIPS = FALSE;
     540  if ((N = get_argument (argc, argv, "-calibrate-stacks-like-chips"))) {
     541    remove_argument (N, &argc, argv);
     542    CALIBRATE_STACKS_LIKE_CHIPS = TRUE;
    534543  }
    535544
     
    9991008    CALIBRATE_WARPS_LIKE_CHIPS = TRUE;
    10001009  }
     1010  CALIBRATE_STACKS_LIKE_CHIPS = FALSE;
     1011  if ((N = get_argument (argc, argv, "-calibrate-stacks-like-chips"))) {
     1012    remove_argument (N, &argc, argv);
     1013    CALIBRATE_STACKS_LIKE_CHIPS = TRUE;
     1014  }
    10011015
    10021016  STAGES = STAGE_CHIP | STAGE_WARP | STAGE_STACK;
  • branches/eam_branches/ipp-20230313/Ohana/src/relphot/src/extra.c

    r42708 r42740  
    7878  // 31000 : GPC2.g.SkyChip
    7979 
     80  if (CALIBRATE_STACKS_LIKE_CHIPS) return FALSE;
     81
    8082  if ((photcode == 11000) || (photcode == 11001) || (photcode == 14100) || (photcode == 31000)) return TRUE; // g-band
    8183  if ((photcode == 11100) || (photcode == 11101) || (photcode == 14200) || (photcode == 31100)) return TRUE; // r-band
  • branches/eam_branches/ipp-20230313/Ohana/src/relphot/src/reload_catalogs.c

    r42708 r42740  
    252252    if (!(STAGES & STAGE_STACK)) { strextend (&command, "-skip-stack"); }
    253253    if (CALIBRATE_WARPS_LIKE_CHIPS) { strextend (&command, "-calibrate-warps-like-chips"); }
     254    if (CALIBRATE_STACKS_LIKE_CHIPS) { strextend (&command, "-calibrate-stacks-like-chips"); }
    254255
    255256    // deprecate
Note: See TracChangeset for help on using the changeset viewer.