IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 15, 2007, 1:30:42 PM (19 years ago)
Author:
magnier
Message:

further attempt to set valid limits for sigma_xy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/models/pmModel_QGAUSS.c

    r13960 r14220  
    8888        f2 = 1.0 / PS_SQR(params[PM_PAR_SYY]) - 1.0 / PS_SQR(params[PM_PAR_SXX]);
    8989        q1 = PS_SQR(f1)*AR_RATIO - PS_SQR(f2);
    90         if (q1 <= 0) {
    91             psError(PM_ERR_PSF, true, "Q1 < 0 (%g)", q1);
    92             return false;
    93         }
     90        q1 = (q1 < 0.0) ? 0.0 : q1;
     91        // if q1 < 0.0, f2 ~ f1, we have a very large axis ratio near 45deg..  Saturate at that
     92        // angle and let f2,f1 fight it out
    9493        q2  = 0.5*sqrt (q1);
    9594    }
     
    117116            break;
    118117        case PM_PAR_SXY:
    119             beta_lim =  q2;
     118            beta_lim =  0.5*q2;
    120119            break;
    121120        case PM_PAR_7:
Note: See TracChangeset for help on using the changeset viewer.