The Weather Forecasting Forum

Discussions about the latest in meteorology, programs, tools, and techniques
It is currently Sat Oct 21, 2017 10:27 am

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Wed May 27, 2009 4:57 pm 
Offline
Junior Member

Joined: Mon Dec 15, 2008 1:07 am
Posts: 5
Guys...

I sappose this may be an odd request, but does anyone know how to do a colored cloud ceiling script? Specifically, what I hope to get is a script which contours the actual ceilings displaying heights of clouds, and then color contour those as follows...

For ceilings of 100 feet or less are contoured red.
For ceilings of 300 feet are contoured in - say light blue.
For ceilings of 500 feet or greater are contoured in blue.

I think this could a useful script for Aviation purposes and such. What do you all think?

R


Top
 Profile  
 
PostPosted: Wed May 27, 2009 7:14 pm 
Offline
Member

Joined: Sun Nov 13, 2005 10:03 pm
Posts: 97
Location: Mid-Wales
Posted below is a script for cloud ceilings I posted the other day but this one has corrections.
Previous script hadn't been tested but written in realtime but this one tests fine.
Not sure how much use it is as it's theoretical only as it will always return a ceiling height even on a clear day.
I have added colours as requested but you might want to change the RGB values and CINT to suit.
Also you might want to change address and or remove SFCPLOTMODEL to suit your computer setup.

#Cloud Base script FEET
#CB feet= ((Surface Temp F - Dewpoint F)/4.4) * 1000
ERASE
SFCPLOTMODEL,C:\Documents and Settings\?????\Local Settings\Application Data\DigitalAtmosphere\Standard Plot model.sps
ANALYZE,SMLC 4:1000 STOR 4 SDVC 3:4.4 STOR=3 SDIF 1:2 STOR=2 DWPT DEGF STOR=1 TEMP DEGF
ANALYZE,OVER FILL COLOR=255:000:000 FILS=0 LSTN=100
ANALYZE,OVER FILL COLOR=122:151:223 FILS=0 LSTN=300 GRTN=100
ANALYZE,OVER FILL COLOR=051:120:225 FILS=0 LSTN=500 GRTN=300
ANALYZE,OVER FILL COLOR=000:085:230 FILS=0 GRTN=500
ANALYZE,CONT CINT=200 LINE=1 COLOR=100:100:100

Regards


Top
 Profile  
 
 Post subject: Re: ceilings
PostPosted: Wed May 27, 2009 7:28 pm 
Offline
Junior Member

Joined: Mon Dec 15, 2008 1:07 am
Posts: 5
Hi Pete...

Okay, I've copied your script and have tested it. However I get an error - access violation - read of address?? It won't work for some reason.

R


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 27, 2009 11:22 pm 
Offline
Member

Joined: Sun Nov 13, 2005 10:03 pm
Posts: 97
Location: Mid-Wales
Not sure why it isn't working.
It runs on my DA and I haven't seen any error.
Play with the script as I cannot help any further as it works for me

Regards


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 27, 2009 11:41 pm 
Offline
Junior Member

Joined: Mon Dec 15, 2008 1:07 am
Posts: 5
Pete...

I did fool around some with the script, but it still shows that error. I am not sure if I want to make any adjustments to the script since you wrote it, and I would not know what to look for and/or change. I'm not into script writing anymore.

R


Top
 Profile  
 
PostPosted: Thu May 28, 2009 6:25 am 
Offline
Member

Joined: Sun Nov 13, 2005 10:03 pm
Posts: 97
Location: Mid-Wales
You say you are not into scripting anymore - I think I must have been asleep when I wrote that script but it did work after a fashion and showed me how I could have that error and get around it.

Anyway after corrections to the script it now works first and everytime on both of my computers here without an error.

#Cloud Base script FEET
#CB feet= ((Surface Temp F - Dewpoint F)/4.4) * 1000
ERASE
SFCPLOTMODEL,C:\Documents and Settings\?????\Local Settings\Application Data\DigitalAtmosphere\Standard Plot model.sps
ANALYZE,SMLC 4:1000 STOR=4 SDVC 3:4.4 STOR=3 SDIF 1:2 STOR=2 DEGF DWPT STOR=1 DEGF TEMP
ANALYZE,OVER FILL COLOR=255:000:000 FILS=0 LSTN=100
ANALYZE,OVER FILL COLOR=122:151:223 FILS=0 LSTN=300 GRTN=100
ANALYZE,OVER FILL COLOR=051:120:225 FILS=0 LSTN=500 GRTN=300
ANALYZE,OVER FILL COLOR=000:085:230 FILS=0 GRTN=500
ANALYZE,CONT CINT=200 LINE=1 COLOR=100:100:100

Comments as before : change CINT, LSTN, GRTN and Color as required.

Regards


Top
 Profile  
 
 Post subject: Re: ceilings
PostPosted: Thu May 28, 2009 2:35 pm 
Offline
Junior Member

Joined: Mon Dec 15, 2008 1:07 am
Posts: 5
Pete...

LOL, now you know why I don't get into scripts much anymore!

Anywho, will try this and see what happens. If all else fails, I'm done!
Thanks much lad for helping me out with this.

R


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 29, 2009 12:36 pm 
Offline
Member

Joined: Sun Nov 30, 2003 5:05 am
Posts: 96
Location: Fort Worth, TX
Disregard! Should have searched first! Found it here: http://www.weathergraphics.com/forum/showthread.php?t=1183&highlight=standard+plot+model.sps


What is the Standard Plot Model.sps? Is this something unique? Thanks!

Greg Higgins


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 29, 2009 2:31 pm 
Offline
Member

Joined: Sun Nov 13, 2005 10:03 pm
Posts: 97
Location: Mid-Wales
I include the Plot model in my scripts because I change to suit whatever scripts I run.
I run a Sea Surface Temperature script and plot the tabular data and therefore I change the station plots slightly and have saved it as SST.sps and that is loaded when I run the script. But when I run different scripts I might want the 'normal' plot configuration.

Therefore as a precaution I always write that line of script to designate whichever plot model I want to suit the script requirements.

Regards


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

All times are UTC


Who is online

Users browsing this forum: Bing [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