#!/bin/csh

# do it at year level

set doy = $1
set alln = (akd1 akd2 ban1 ban2 ban3 bar1 bar2 bar3 bar4 bar5 ebr1 emed eura igs1 igs2 igs3 igs4 igs5 net1 net2 net3 net4 net5 net6 net7 net8 net9 neta neu1 nwu1 pan1 pan2 pan3 seu1 swu1)

set yy = (`pwd | tr '/' ' '`)
set yy = (`echo $yy[$#yy] | cut -c3-`)

echo -n "" > tmp.tmp
foreach n ($alln)
	set f = ($doy/h$n[1]a.$yy[1]$doy.Z)
	if (-e $f) then
		echo -n "$f " | cut -c5- >> tmp.tmp
		zcat $f | grep Post >> tmp.tmp
	else
		echo "Network $n is missing" >> tmp.tmp
	endif
end
nedit tmp.tmp
