Hello Peter
Nice script, thanks. While adding some commands for showing the ranges in colour I noticed some things.
The first range is 44-45. So I thought that if you test for GRTN (greater than) 44 you miss the first part. So I changed the command into GRTN 43. WRONG!! It turned out that GRTN means “greater and equal than”. I did not test the meaning of LSTN. Is it also “less and equal than”?
Another thought. In the formula some slots are subtracted from each other. What happens if the result is negative (remember the problems with the TEMP-scripts (below zero)). I don’t know how to test this. Anybody has an idea?
The script:
ERASE
ANALYZE,SSUM= 5:6 STOR=6 SDIF 3:4 STOR=5 SDIF 1:2 STOR=4 TEMP H500 STOR=3 DWPT H850 STOR=2 TEMP H500 STOR=1 TEMP H850
ANALYZE,OVER FILL COLOR=255:255:100 FILS=0 GRTN=44
ANALYZE,OVER FILL COLOR=255:240:000 FILS=0 GRTN=46
ANALYZE,OVER FILL COLOR=255:204:000 FILS=0 GRTN=48
ANALYZE,OVER FILL COLOR=255:161:000 FILS=0 GRTN=50
ANALYZE,OVER FILL COLOR=255:097:000 FILS=0 GRTN=52
ANALYZE,OVER FILL COLOR=255:014:014 FILS=0 GRTN=55
ANALYZE,CONT LSTN=53 GRTN=44 CINT=2 DASH COLOR=100

100
ANALYZE,CONT GRTN=55 CINT=5 DASH COLOR=100

100
STAMP
The last ANALYZE requires some explanation. I first wrote “GRTN=55 CINT = 2”. This because the previous range is “double”: 52-55. To my surprise I got a line at 54??? After playing with the values it turned out that the starting point is the nearest multiple of CINT (and here downwards!). So asking GRTN=55 with CINT=5 starts at 55. CINT=11 is perhaps a better solution: no more lines until 66.
I suppose there is some logic in it but it took again a lot of time (too much!!) to recognize it. Next upgrade??
Greetings
Fred