Hi,
Look at the definitions in the output of LIST.
yes? list dkbdi
VARIABLE : IF (DSLR[L=8] GT 0) THEN
((KBDIX-800)*(-1)*(.968*EXP(.0486*(TEMPY*9/5+32))-8.3)*.001/(1+10.88*EXP(-.0441*ANNRF/25.4))*.254)
ELSE DKBDI_5
dslr is > 0, so the THEN clause is evaluated. Some element of
that _expression_ must be causing this:
((KBDIX-800)*(-1)*(.968*EXP(.0486*(TEMPY*9/5+32))-8.3)*.001/(1+10.88*EXP(-.0441*ANNRF/25.4))*.254)
to have a missing value at this iteration, and so dkbdi is missing.
Try listing out the variables and sub-expressions in that
definition, and see what's doing that.
Ansley
On 8/19/2014 1:02 AM, Peter Szabo
wrote:
Hi Ansley,
thank you for your help!
Do you have a clue why is it giving BAD value when I list
through defining a new variable (DKBDI) and a REAL number
when I list it out?
I did the iteration until L=8 now, and here you can see that
DSLR[L=8] is GT 0, thus it must give DKBDI a valid value if
((KBDIX-800)*(-1)*(.968*EXP(.0486*(TEMPY*9/5+32))-8.3)*.001/(1+10.88*EXP(-.0441*ANNRF/25.4))*.254)
is giving one.
My goal is continuing the iteration and not stopping the loop
gracefully.
Peter
yes? list DSLR[L=8]
VARIABLE : MISSING(CROSS[L=@CDB:1]/24,0)
LONGITUDE: 19E
LATITUDE : 47N
Z (m) : 42752
TIME : 08-JAN-1961 12:00 NOLEAP
1.000
yes? list
((KBDIX-800)*(-1)*(.968*EXP(.0486*(TEMPY*9/5+32))-8.3)*.001/(1+10.88*EXP(-.0441*ANNRF/25.4))*.254)
*** NOTE: Ambiguous coordinates on X axis:
((KBDIX-800)*(-1)*(.968*EXP(.0486*(TEMPY*9/5+32))-8.3)*.001/(1+10.88*EXP(-.0441*ANNRF/25.4))*.254)
VARIABLE :
((KBDIX-800)*(-1)*(.968*EXP(.0486*(TEMPY*9/5+32))-8.3)*.001/(1+10.88*EXP(-.0441*ANNRF/25.4))*.254)
LONGITUDE: 19.1E(19.1)
LATITUDE : 47N
Z (m) : 47362
TIME : 07-JAN-1961 18:00
-0.01597
yes? list dkbdi
VARIABLE : IF (DSLR[L=8] GT 0) THEN
((KBDIX-800)*(-1)*(.968*EXP(.0486*(TEMPY*9/5+32))-8.3)*.001/(1+10.88*EXP(-.0441*ANNRF/25.4))*.254)
ELSE DKBDI_5
LONGITUDE: 19E
LATITUDE : 47N
Z (m) : 42752
TIME : 08-JAN-1961 12:00 NOLEAP
....
|