Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
bern2time: refine system commands,and *.dat header layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
sean0921 committed Aug 23, 2019
1 parent 8e62e74 commit 3f4f6b3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions 00_bern2time/bern2time.for
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,16 @@ c
if(alive) call system('del fil.dat')
inquire(file='error.msg',exist=alive)
if(alive) call system('del error.msg')
call system('del ts_????_n_b.gmt ts_????_e_b.gmt ts_????_h_b.gmt')
call system('del ts_????_b.dat ts_????_n_b.dat ts_????_e_b.dat ts_
+????_u_b.dat')
call system('for %f in (FN??????.OUT) do echo %f >> fil.dat')
#else
inquire(file='fil.dat',exist=alive)
if(alive) call system('rm -f fil.dat')
inquire(file='error.msg',exist=alive)
if(alive) call system('rm -f error.msg')
call system('rm -f ts_????n_b.gmt ts_????e_b.gmt ts_????h_b.gmt')
call system('rm -f ts_????_b.dat ts_????_n_b.dat ts_????_e_b.dat t
+s_????_u_b.dat')
call system('for f in $(ls FN??????.OUT);do echo $f;done >> fil.da
+t')
#endif
Expand Down Expand Up @@ -213,8 +215,8 @@ c***********************************************************************
open(15,file=out3)
open(16,file=out4)

write(16,*)'year doy hr dn sn de se
+ dh sh (unit: mm)'
write(16,'(a)')'year doy hr dn sn de s
+e dh sh (unit: mm)'

n=0
avgn=0.
Expand Down

0 comments on commit 3f4f6b3

Please sign in to comment.