Subversion Repositories lagranto.ecmwf

Rev

Rev 5 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5 Rev 39
Line 307... Line 307...
307
 
307
 
308
echo
308
echo
309
echo '---- INPUT FILES ----------------------------------------'
309
echo '---- INPUT FILES ----------------------------------------'
310
echo
310
echo
311
 
311
 
-
 
312
 
312
# Take the time increment from flag list ('nil', if not defined)
313
# Take the time increment from flag list ('nil', if not defined)
313
set timeinc = ${flag_i}
314
set timeinc = ${flag_i}
314
 
315
 
315
# Find a first data file (if possible corresponding to start/end date
316
# Find a first data file (if possible corresponding to start/end date
316
# If starttime is not a data time, take the first file in the direectory
317
# If starttime is not a data time, take the first file in the direectory
Line 511... Line 512...
511
 
512
 
512
# Loop over all variables - check availability
513
# Loop over all variables - check availability
513
foreach v ( $vars )
514
foreach v ( $vars )
514
  if ( $calf[1] == 0 ) then
515
  if ( $calf[1] == 0 ) then
515
    set v0 = `echo $v | awk 'BEGIN {FS = ":"}; {print $1}'`
516
    set v0 = `echo $v | awk 'BEGIN {FS = ":"}; {print $1}'`
-
 
517
 
-
 
518
    ${LAGRANTO}/goodies/getvars $tfil[1]$datfiles[1]
-
 
519
 
516
    set flag=`${LAGRANTO}/goodies/getvars $tfil[1]$datfiles[1] | grep " $v0 " | wc -l`
520
    set flag=`${LAGRANTO}/goodies/getvars $tfil[1]$datfiles[1] | grep " $v0 " | wc -l`
517
    set iscomment=`echo $v0 | cut -c 1` 
521
    set iscomment=`echo $v0 | cut -c 1` 
-
 
522
    
-
 
523
    if ( "$v0" == "PMIN" ) set flag = 1
-
 
524
    if ( "$v0" == "PMAX" ) set flag = 1
-
 
525
    
518
    if ( "${iscomment}" != "#" ) then 
526
    if ( "${iscomment}" != "#" ) then 
519
	 if ( $flag == 0 ) then
527
	 if ( $flag == 0 ) then
520
           echo " ERROR: variable $v listed in $tvfile is not on the $tfil[1]-files ***"
528
           echo " ERROR: variable $v listed in $tvfile is not on the $tfil[1]-files ***"
521
           exit 1
529
           exit 1
522
	 endif
530
	 endif