The Weather Forecasting Forum
http://www.weathergraphics.com/forum/

Problem with script and data import
http://www.weathergraphics.com/forum/viewtopic.php?f=9&t=502
Page 1 of 1

Author:  Stefan Lichius [ Wed Nov 24, 2004 1:29 pm ]
Post subject:  Problem with script and data import

Hi all,

I have a problem with the data import in the following script.
The file "euro.DAT" is loaded correct in the \data directory, but the import doesn`t work.
Instead the script is running with the old data which are always imported some times before and which you can look at in the Menu "File=View raw data".
Any idea?

Stefan

timeron
download,[url]http://weather.cod.edu/digatmos/syn/@Y@M@D@S.syn,C:\Programme\DigitalAtmosphereWS\data\euro.DAT[/url]
import,C:\Programme\DigitalAtmosphereWS\data\euro.DAT
load,C:\Programme\DigitalAtmosphereWS\gdhm.dmf
ANALYZE,OVER FILL COLOR=000:117:000 FILS=0 GRTN=0 FILL TEMP
ANALYZE,OVER FILL COLOR=000:138:000 FILS=0 GRTN=2 TEMP
ANALYZE,OVER FILL COLOR=000:157:000 FILS=0 GRTN=4 TEMP
ANALYZE,OVER FILL COLOR=000:170:000 FILS=0 GRTN=6 TEMP
ANALYZE,OVER FILL COLOR=000:202:000 FILS=0 GRTN=8 TEMP
ANALYZE,OVER FILL COLOR=193:255:132 FILS=0 GRTN=10 TEMP
ANALYZE,OVER FILL COLOR=254:197:146 FILS=0 GRTN=12 TEMP
ANALYZE,OVER FILL COLOR=254:168:090 FILS=0 GRTN=14 TEMP
ANALYZE,OVER FILL COLOR=237:159:000 FILS=0 GRTN=16 TEMP
ANALYZE,OVER FILL COLOR=226:125:024 FILS=0 GRTN=18 TEMP
ANALYZE,OVER FILL COLOR=243:103:044 FILS=0 GRTN=20 TEMP
ANALYZE,OVER FILL COLOR=242:086:019 FILS=0 GRTN=22 TEMP
ANALYZE,OVER FILL COLOR=214:072:012 FILS=0 GRTN=24 TEMP
ANALYZE,OVER FILL COLOR=168:056:009 FILS=0 GRTN=26 TEMP
stamp
export,C:\Dokumente und Einstellungen\Hans-Stefan Lichius\Desktop\bodenkarte_300_13.jpg
upload,[url]ftp://lichius:george13@ftp.gdhm.de/bodenkarte_300_13.jpg,C:\Dokumente[/url] und Einstellungen\Hans-Stefan Lichius\Desktop\bodenkarte_300_13.jpg

Author:  texsky [ Wed Nov 24, 2004 6:03 pm ]
Post subject: 

Stefan,

On the third line, try changing 'import' to 'ingest' and see if that doesn't fix the problem.

Also, you can speed things up a bit by combining script commands onto the same line...like

Code:
ANALYZE,OVER FILL COLOR=65:7:220 FILS=0 LSTN=0 OVER FILL COLOR=65:2:224 FILS=0 LSTN=5 OVER FILL COLOR=65:85:251 FILS=0 lsTN=10 OVER FILL COLOR=79:100:251 FILS=0 lsTN=15 OVER FILL COLOR=86:140:250 FILS=0 lsTN=20 OVER FILL COLOR=107:191:249 FILS=0 lsTN=25 OVER FILL COLOR=103:249:237 FILS=0 lsTN=30 OVER FILL COLOR=62:250:181 FILS=0 lsTN=35 DEGF TEMP
ANALYZE,OVER FILL COLOR=247:137:85 FILS=0 GRTN=70 OVER FILL COLOR=245:177:109 FILS=0 GRTN=65 OVER FILL COLOR=245:237:153 FILS=0 GRTN=60 OVER FILL COLOR=222:232:116 FILS=0 GRTN=55 OVER FILL COLOR=183:250:48 FILS=0 GRTN=50 OVER FILL COLOR=161:220:68 FILS=0 GRTN=45 OVER FILL COLOR=128:210:89 FILS=0 GRTN=40 OVER FILL COLOR=74:240:112 FILS=0 GRTN=35 DEGF TEMP
ANALYZE,OVER FILL COLOR=255:7:12 FILS=0 GRTN=100 OVER FILL COLOR=255:17:22 FILS=0 GRTN=95 OVER FILL COLOR=255:27:32 FILS=0 GRTN=90 OVER FILL COLOR=255:47:42 FILS=0 GRTN=85 OVER FILL COLOR=254:77:42 FILS=0 GRTN=80 OVER FILL COLOR=254:77:42 FILS=0 GRTN=75 CONT LINE=2 COLOR=50:77:242 EQUA=32 CONT CINT=10 LINE=2 COLOR=30:37:202 equa=0 degf TEMP


By reducing the number of ANALYZE commands, the script runs more efficiently.

hth,
Bob

Author:  Stefan Lichius [ Fri Nov 26, 2004 5:42 pm ]
Post subject: 

Hi Bob,

the problem is fixed - it works.
Thank you so much - I`m so happy.

With many greetings,
Stefan

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/