Changed h1_summary/h1_summary2 to write a timestamp that is centered on the time bounds.
h1_summary and h1_summary2 previously wrote out a timestamp representing the
last time entry in the last file to be summarized. Now, to follow convention,
the timestamp is recomputed as the mean of the first and last time_bounds,
where the first time_bounds value is the first value from the first time
entry in the first file and the last time_bounds is the second value from
the last time entry in the last file.
4 LIBS=-L$(NETCDF)/lib -lnetcdf -lm
6 #LIBS=-L/usr/lib64/netcdf-3 -lnetcdf -lm
9 CPPFLAGS=-I$(NETCDF)/include
11 #CPPFLAGS=-I/usr/include/netcdf-3
14 #CFLAGS=-O -h list=m $(CPPFLAGS)
16 CFLAGS=-g -Wall -O $(CPPFLAGS)
18 all: h1_summary h1_summary2 add_total_fields
20 h1_summary: h1_summary.o
21 $(CC) $(CFLAGS) -o $@ h1_summary.o $(LIBS)
23 h1_summary2: h1_summary2.o
24 $(CC) $(CFLAGS) -o $@ h1_summary2.o $(LIBS)
26 add_total_fields: add_total_fields.o
27 $(CC) $(CFLAGS) -o $@ add_total_fields.o $(LIBS)
30 $(RM) -f h1_summary.o h1_summary
31 $(RM) -f h1_summary2.o h1_summary2
32 $(RM) -f add_total_fields.o add_total_fields
35 cp -p h1_summary $(HOME)/bin/h1_summary.`uname -n`
36 cp -p h1_summary2 $(HOME)/bin/h1_summary2.`uname -n`
37 cp -p add_total_fields $(HOME)/bin/add_total_fields.`uname -n`