35*(1-(FWHM-2.092)/1.518) + 5*(1-(Eccentricity-0.3016)/0.181) + 10*(SNRWeight-0.9769)/7.7051 + 50

I have never used this script, but a first glance at your expression makes me immediately want to re-write it as follows (spaces and line-breaks added for the purpose of clarity only) :

35 * (1 - (FWHM - 2.092) / 1.518) +

5 * (1 - (Eccentricity - 0.3016) / 0.181) +

10 * (SNRWeight - 0.9769) / 7.7051 +

50

And, from this I can see that the '35, 5, 10 and 50' would appear to add up to 100 !

Now I can see that the first two parts of the expression are very similar - and would seem to make very good sense if the FWHM and Eccentricity values are such that the calculations on the right-hand-side of each of those two sub-expressions resulted in a number between 0.0 and 1.0.

Further, I can see that FWHM and Eccentricity are 'better' when they are 'low' - hence the reason that you subtract the intermediate values from '1' in each case. SNRWeight, on the other hand, is 'better' when it is 'higher, so you do not perform the '1 - x' calculation.

That said, I never take

*any* chances when creating expressions for

*any* piece of computer software to interpret - I

*always* force the order of calculations by using enough brackets to

*guarantee* that there can be

*no* ambiguity.

This would then take your expresion to this stage (again, I have added the '0 +' for clarity):

(35 * ((1 - (FWHM - 2.092)) / 1.518 )) +

(5 * ((1 - (Eccentricity - 0.3016)) / 0.181 )) +

(10 * ((0 + (SNRWeight - 0.9769)) / 7.7051)) +

50

Now the whole expression can be taken back to its original format (without the extra spaces, line-breaks and the '0 + ' expression) :

**(35*((1-(FWHM-2.092))/1.518 ))+(5*((1-(Eccentricity-0.3016))/0.181))+(10*(((SNRWeight-0.9769))/7.7051))+50**

Of course - this may not yet be the full solution to your problem (however, I couldn't read the text on your screen-shot - perhaps you could capture a smaller area of the screen, allowing you to post it here at a better resolution, with less compression artefacts?).

Let us know how you get on.