IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39740


Ignore:
Timestamp:
Oct 8, 2016, 6:26:30 AM (10 years ago)
Author:
eugene
Message:

add scale factor for testing

Location:
branches/czw_branch/20160809/Ohana/src/uniphot
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20160809/Ohana/src/uniphot/include/setgalmodel.h

    r38986 r39740  
    1010char        *HOSTDIR;
    1111int          VERBOSE;
    12 int          TESTING;
    1312int          UPDATE;
    1413int          PARALLEL;
     
    1716char        *UPDATE_CATFORMAT;
    1817char        *SINGLE_CPT;
     18
     19float        TEST_SCALE;
    1920
    2021SkyRegion    UserPatch;
  • branches/czw_branch/20160809/Ohana/src/uniphot/src/initialize_setgalmodel.c

    r39225 r39740  
    9292  }
    9393
    94   TESTING = FALSE;
     94  TEST_SCALE = 1.0;
    9595  if ((N = get_argument (argc, argv, "-testing"))) {
    96     TESTING = TRUE;
     96    remove_argument (N, &argc, argv);
     97    TEST_SCALE = atof(argv[N]);
    9798    remove_argument (N, &argc, argv);
    9899  }
     
    212213  }
    213214
    214   TESTING = FALSE;
     215  TEST_SCALE = 1.0;
    215216  if ((N = get_argument (argc, argv, "-testing"))) {
    216     TESTING = TRUE;
     217    remove_argument (N, &argc, argv);
     218    TEST_SCALE = atof(argv[N]);
    217219    remove_argument (N, &argc, argv);
    218220  }
  • branches/czw_branch/20160809/Ohana/src/uniphot/src/update_catalog_setgalmodel.c

    r39586 r39740  
    5151
    5252    // XXX: amplify motion to make tests easier:
    53     if (TESTING) {
    54       uL *= 100.0;
    55       uB *= 100.0;
    56     }
     53    uL *= TEST_SCALE;
     54    uB *= TEST_SCALE;
    5755   
    5856    double uR, uD;
  • branches/czw_branch/20160809/Ohana/src/uniphot/src/update_dvo_setgalmodel.c

    r39225 r39740  
    9898
    9999    if (VERBOSE)          { strextend (&command, "-v"); }
    100     if (TESTING)          { strextend (&command, "-testing"); }
     100    if (TEST_SCALE != 1.0){ strextend (&command, "-testing %f", TEST_SCALE); }
    101101    if (UPDATE)           { strextend (&command, "-update"); }
    102102    if (UPDATE_CATFORMAT) { strextend (&command, "-update-catformat %s", UPDATE_CATFORMAT); }
Note: See TracChangeset for help on using the changeset viewer.