The Weather Forecasting Forum

Discussions about the latest in meteorology, programs, tools, and techniques
It is currently Tue Oct 24, 2017 9:33 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Re: Above script
PostPosted: Mon Aug 21, 2006 2:15 am 
Offline
Member

Joined: Wed Mar 08, 2006 3:42 am
Posts: 51
Location: In a tent in no mans land!
Guys:

Can someone PLEASE tell me what is wrong with this heat index script?
I have all the colored contours set right, but it don't plot them correctly.
The script...............

#--Potential heat index script--#

ANALYZE,OVER FILL COLOR=255:255:60 GRTN=90 OVER FILL COLOR=255:255:89 GRTN=85 OVER FILL COLOR=255:255:130 FILS=0 GRTN=80 OVER FILL COLOR=255:255:190 GRTN=75 OVER FILL COLOR=255:255:213 GRTN=70 OVER FILL COLOR=191:191:255 GRTN=65 OVER FILL COLOR=155:155:255 GRTN=60 SADC=1:50 STOR=1 HIDX
ANALYZE,OVER FILL COLOR=255:0:0 GRTN=130 OVER FILL COLOR=255:62:62 GRTN=125 OVER FILL COLOR=255:94:94 GRTN=120 OVER FILL COLOR=255:149:149 GRTN=115 OVER FILL COLOR=255:185:185 GRTN=110 OVER FILL COLOR=215:215:0 GRTN=105 OVER FILL COLOR=255:255:0 GRTN 100 OVER FILL COLOR=255:255:32 GRTN=95 SADC=1:50 STOR=1 HIDX
ANALYZE,CONT EQUA=80 COLOR=255:0:0 LINE=3 ANALYZE,CONT CINT=5 COLOR=0:0:0 LINE=1 HIDX
ANALYZE,CONT CINT=5 COLOR=0:0:0 LINE=1 HIDX

Thanks much,
Randy


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 01, 2006 12:21 pm 
Offline
Member

Joined: Thu Jan 19, 2006 11:11 pm
Posts: 34
Location: UK
Hi Randy,

I've tried your script, and it appears to work OK.

Problem is that stating 'it don't plot them correctly' doesn't give me any clues as to what you perceive to be wrong with them.

I get colour fills, each bordered by a line with temperature values at its extremities.

Can you possibly be more specific about:

1. What you feel is wrong
2. What should be happening, but isn't.

Les


Top
 Profile  
 
 Post subject: Re: Above script
PostPosted: Thu Sep 07, 2006 10:23 pm 
Offline
Member

Joined: Wed Mar 08, 2006 3:42 am
Posts: 51
Location: In a tent in no mans land!
Hi Les:

Look carefully at each contour. There should be a different color contour at I believe every 5 degrees F. Notice from 80 degrees and up, the contour lines show, but not the colors. This is what I'm referring to.

Randy


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 13, 2006 1:19 pm 
Offline
Member

Joined: Thu Jan 19, 2006 11:11 pm
Posts: 34
Location: UK
Hi Randy,

Sorry for the delay - holidays.

The reason your script colours everything the same from 80 deg F upward is that you have not added coding instructions for colouring the 85, 90, 95 ... degree regions.

You have added 50 degrees to each value at the start of the script, so your final coloured region (red) is assigned to 'GRTN=130', which is 80 degrees.

To include further colours you require instructions for 'GRTN=135' (90 deg), 'GRTN=140' (95 deg) etc.

Good luck,

Les


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 13, 2006 2:12 pm 
Offline
Member

Joined: Thu Jan 19, 2006 11:11 pm
Posts: 34
Location: UK
Hi Randy,

Here's a version of your script that covers both negative and positive Fahrenheit temperatures.

For readibility, every temperature/colour instruction is on a separate line, but of course you can concatenate these for greater speed.

Of course, you can assign a better range of colours, but this works from -35F to +100F.

Les


=========================================

#Heat Index
#
ERASE
ANALYZE,STOR=1 HIDX
#Store approx. ZERO in STOR No 2 (i.e. HIDX/1000)
analyze,STOR=2 SDVC=1:1000

# The above lines place a TINY value (approx zero) into STOR No 2 and
# this is used to compare with the HIDX value (which does not need to be entered
# with each further line). By calculating both (HIDX - STOR) and (STOR - HIDX) you
# have access to the full range of both positive and negative temperatures.


# Temperatures BELOW zero Fahrenheit
#
ANALYZE,OVER FILL COLOR=000:140:255 GRTN=00 SDIF=2:1
ANALYZE,OVER FILL COLOR=000:120:255 GRTN=05 SDIF=2:1
ANALYZE,OVER FILL COLOR=000:100:255 GRTN=10 SDIF=2:1
ANALYZE,OVER FILL COLOR=000:080:255 GRTN=15 SDIF=2:1
ANALYZE,OVER FILL COLOR=000:060:255 GRTN=20 SDIF=2:1
ANALYZE,OVER FILL COLOR=000:040:255 GRTN=25 SDIF=2:1
ANALYZE,OVER FILL COLOR=000:020:255 GRTN=30 SDIF=2:1
ANALYZE,OVER FILL COLOR=000:000:255 GRTN=35 SDIF=2:1

# Temperatures ABOVE zero Fahrenheit
#
ANALYZE,OVER FILL COLOR=000:160:255 GRTN=00 SDIF=1:2
ANALYZE,OVER FILL COLOR=000:180:255 GRTN=05 SDIF=1:2
ANALYZE,OVER FILL COLOR=000:200:255 GRTN=10 SDIF=1:2
ANALYZE,OVER FILL COLOR=000:220:255 GRTN=15 SDIF=1:2
ANALYZE,OVER FILL COLOR=000:240:255 GRTN=20 SDIF=1:2
ANALYZE,OVER FILL COLOR=020:240:255 GRTN=25 SDIF=1:2
ANALYZE,OVER FILL COLOR=020:255:235 GRTN=30 SDIF=1:2
ANALYZE,OVER FILL COLOR=020:255:179 GRTN=35 SDIF=1:2
ANALYZE,OVER FILL COLOR=159:255:000 GRTN=40 SDIF=1:2
ANALYZE,OVER FILL COLOR=255:255:000 GRTN=45 SDIF=1:2
ANALYZE,OVER FILL COLOR=255:220:000 GRTN=50 SDIF=1:2
ANALYZE,OVER FILL COLOR=255:180:000 GRTN=55 SDIF=1:2
ANALYZE,OVER FILL COLOR=255:148:000 GRTN=60 SDIF=1:2
ANALYZE,OVER FILL COLOR=255:097:000 GRTN=65 SDIF=1:2
ANALYZE,OVER FILL COLOR=255:014:014 GRTN=70 SDIF=1:2
ANALYZE,OVER FILL COLOR=255:090:090 GRTN=75 SDIF=1:2
ANALYZE,OVER FILL COLOR=255:070:130 GRTN=80 SDIF=1:2
ANALYZE,OVER FILL COLOR=255:050:160 GRTN=85 SDIF=1:2
ANALYZE,OVER FILL COLOR=255:030:190 GRTN=90 SDIF=1:2
ANALYZE,OVER FILL COLOR=255:010:210 GRTN=95 SDIF=1:2
ANALYZE,OVER FILL COLOR=255:000:240 GRTN=100 SDIF=1:2

basemap
ANALYZE,CONT CINT=5 COLOR=100:100:100 LINE=1


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group