IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38707


Ignore:
Timestamp:
Sep 3, 2015, 6:34:56 AM (11 years ago)
Author:
eugene
Message:

add some flexibility to 2mass

Location:
branches/eam_branches/ipp-20150625/Ohana/src/fakeastro
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150625/Ohana/src/fakeastro/include/fakeastro.h

    r38441 r38707  
    103103
    104104float  RADIUS;
     105float  MAX_MAG_2MASS;
    105106
    106107SkyRegion UserPatch;
  • branches/eam_branches/ipp-20150625/Ohana/src/fakeastro/src/args.c

    r37807 r38707  
    104104  if ((N = get_argument (*argc, argv, "-uniform-radec"))) {
    105105    UNIFORM_RADEC = TRUE;
     106    remove_argument (N, argc, argv);
     107  }
     108
     109  MAX_MAG_2MASS = 16.0;
     110  if ((N = get_argument (*argc, argv, "-2mass-limit"))) {
     111    remove_argument (N, argc, argv);
     112    MAX_MAG_2MASS = atof(argv[N]);
    106113    remove_argument (N, argc, argv);
    107114  }
  • branches/eam_branches/ipp-20150625/Ohana/src/fakeastro/src/make_2mass_measures.c

    r37807 r38707  
    2424  // PhotCode *codeK = GetPhotcodebyName ("2MASS_K");
    2525
    26   float ZP = 21.0; // this is chosen to give 16.0 mag stars a flux of 100.0 counts (crude, yes)
    27   float SkyCts = 300.0; // this is chosen to make SN @ 16.0 = 5.0 (
     26  float ZP = MAX_MAG_2MASS + 6.5; // this is chosen to give stars at the limit a flux of 400.0 counts (crude, yes)
     27  float SkyCts = 1000.0; // this is chosen to make SN @ limit ~ 10.0 (
    2828
    2929  int Nmeasure = catalog->Nmeasure;
     
    4545    // make a crude JHK color for now:
    4646    double J_PS1 = secfilt[i*Nsecfilt + Nsec].M - 1.0; // make all stars have y-J = 1.0
    47     if (J_PS1 > 16.0) continue; // only generate 2MASS detections for objects with J_PS1 < 16.0
     47    if (J_PS1 > MAX_MAG_2MASS) continue; // only generate 2MASS detections for objects with J_PS1 < 16.0
    4848
    4949    if (isnan(secfilt[i*Nsecfilt + Nsec].M)) {
Note: See TracChangeset for help on using the changeset viewer.