Yes you can use the WIN built in scheduler and you as batch file like e.g. pcptype.bat
@ECHO OFF
set FileDate=%date:~9,4%%date:~6,2%%date:~3,2%
set FileTime=%time:~0,2%
if /i %FileTime% gtr 00 (
set T=12
set /a FD=%FileDate% - 1
)
if /i %FileTime% gtr 01 (
set T=18
set /a FD=%FileDate% - 1
)
if /i %FileTime% gtr 05 (
set T=00
set FD=%FileDate%
)
if /i %FileTime% gtr 11 (set T=06)
if /i %FileTime% gtr 17 (set T=12) @echo Year = %FD% @echo Time = %FileTime%
echo %T%
opengrads -lbxc ‘pcptype.gs %FD% %T%’
It auto detects the time when you run it and use it for the latest GFS run (Now I have the runs set to 6,12,18,02 hours CET)
Then I also auto run the programm TurboFTP which uploads all the new files to my web page.
you need to run the bat file at times 6,12,18,02 CET, otherwise you get that error msg, because it is trying to do the new forecast, but the data file is not ready on the server.
Hi Marian,
Long Speak no Time.
Would I be Correct/Wrong in assuming that the new version of OpenGrads would require Minor/Major changes to our existing .gs scripts.
Kind Regards,
Hope you are well, Tony
I downloaded the new Superpack this morning and installed it. My modified version of Nordic.gs works but the background and legend colours are not right yet. I will have a further play today.
Simon,
I simply saved my scripts (and cbarm - in OpenGrADS/Contents/Resources), uninstalled OpenGrADS and then downloaded the superpack from Sourceforge using the link from Marian. I then reinstalled the missing files and all seemed to work.
I do have issues - the legends are all in white as opposed the original black. I will edit my Nordic.gs script to correct them, but I suspect that there must me a simpler solution.
Hi I did same as Chris with same result.
So did a fix (possibly not correct) but it worked for me.
In the " while ( i<maps ) " section prior to " ‘set gxout shaded’ " I added " ‘set display color white’ " as per image below, will not attach my scripts as they are modified for Aus.