The Weather Forecasting Forum

Discussions about the latest in meteorology, programs, tools, and techniques
It is currently Thu Oct 19, 2017 2:43 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Aug 22, 2008 9:04 am 
Offline
Member

Joined: Mon Apr 07, 2008 11:42 am
Posts: 34
can anyone tell me how to script it so it saves the chart with a file name like:
winds(year)(month)(day)(hour).gif
otherwise i have to create a script for each hour and tell it to save the file name.....


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 23, 2008 9:50 am 
Offline
Junior Member

Joined: Fri Feb 22, 2008 4:34 am
Posts: 2
hi,
you can use this example to try out what you want to do.

i have used it successfuly to make copy the downladed files with date and time to do the archival.

@echo off
rem rename syn.dat With Name Date and Time
for /f "tokens=2-4 delims=/- " %%a in ('date /t') do set XDate=%%a-%%b-%%c
for /f "tokens=1-2 delims=: " %%a in ('time /t') do set XTime=%%a-%%b
copy c:\digatmos\data\syn.dat c:\digatmos\data\%XDate%%XTime%_syn.dat
copy c:\digatmos\data\fsusyn.dat c:\digatmos\data\%XDate%%XTime%_fsusyn.dat
copy c:\digatmos\data\albanyboy.dat c:\digatmos\data\%XDate%%XTime%_albanyboy.dat
copy c:\digatmos\data\codupa.dat c:\digatmos\data\%XDate%%XTime%_codupa.dat

copy command copies the .dat files with date time suffix.

cheers
Bala.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 23, 2008 1:55 pm 
Offline
Member

Joined: Mon Apr 07, 2008 11:42 am
Posts: 34
hi
how can i get it save the time on 24 hour format?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 24, 2008 9:06 pm 
Offline
Member

Joined: Mon Jan 26, 2004 4:33 pm
Posts: 62
Location: Dorking, ENGLAND
Sorry,
But I can not get this batch file to work.


Top
 Profile  
 
PostPosted: Thu Aug 28, 2008 8:30 pm 
Offline
Member

Joined: Wed Jan 11, 2006 6:27 pm
Posts: 18
I use a script for each hour I want a plot
with the following:

# write map to gif file
EXPORT,F:\program files\DigAtmEquinox\archive\@FFZ@MMZ@DDZ12.gif

you could add any name along with the @FFZ etc. I've just added 12 for 12:00 in this example


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: 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