IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 27, 2006, 2:03:23 PM (20 years ago)
Author:
eugene
Message:

added manual -magrange options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/gastro2/src/gproject2.c

    r3390 r7997  
    2525 
    2626  /* need to allow some leeway? use a fixed +/- 0.5 mag for now */
    27   MMAX = Target[0].lum.Mmax + 0.5;
    28   MMIN = Target[0].lum.Mmin - 0.5;
     27  if (MAGLIMS && !MAGMANUAL) {
     28      MMAX = Target[0].lum.Mmax + 0.5;
     29      MMIN = Target[0].lum.Mmin - 0.5;
    2930
    30   if (MMAX < Ref[0].lum.Mmin + Moff)
    31     fprintf (stderr, "warning: reference catalog probably too faint:  %5.3f < %5.3f\n", Target[0].lum.Mmax, Ref[0].lum.Mmin + Moff);
     31      if (MMAX < Ref[0].lum.Mmin + Moff)
     32          fprintf (stderr, "warning: reference catalog probably too faint:  %5.3f < %5.3f\n", Target[0].lum.Mmax, Ref[0].lum.Mmin + Moff);
    3233
    33   if (MMIN > Ref[0].lum.Mmax + Moff)
    34     fprintf (stderr, "warning: reference catalog probably too bright: %5.3f > %5.3f\n", Target[0].lum.Mmin, Ref[0].lum.Mmax + Moff);
     34      if (MMIN > Ref[0].lum.Mmax + Moff)
     35          fprintf (stderr, "warning: reference catalog probably too bright: %5.3f > %5.3f\n", Target[0].lum.Mmin, Ref[0].lum.Mmax + Moff);
     36  }
     37  if (MAGMANUAL) {
     38      MMIN = MAGLIM_MIN;
     39      MMAX = MAGLIM_MAX;
     40      Moff = 0;
     41  }
    3542
    3643  for (N = i = 0; i < Ref[0].N; i++) {
Note: See TracChangeset for help on using the changeset viewer.