Makefile
author Forrest Hoffman <forrest@climatemodeling.org>
Wed, 10 Oct 2007 11:59:02 -0400
changeset 4 dd8e6719647b
parent 2 978f4510987d
permissions -rw-r--r--
Added hg_summary_cb, which writes statistical outputs using climatology_bounds

h1_summary_cb - computes means and standard deviations of hourly output
netCDF files, creating two new netCDF files (one for the means and one
for the standard deviations) for each month by hour of day, just like
h1_summary and h1_summary2. However, this version does not create a
new "hour" dimension on every output field. Instead, it follows the
CF-1.0 standard that requires a "climatology_bounds" variable (instead
of the normal "time_bounds" variable) and each hour-of-day mean/standard
deviation is stored as a time slice.

h1_summary_cb will be used for the remaining C-LAMP experiments, starting
with Experiment 2.2.
forrest@0
     1
CC=gcc
forrest@0
     2
#
forrest@0
     3
# robin1 and phoenix
forrest@0
     4
LIBS=-L$(NETCDF)/lib -lnetcdf -lm
forrest@0
     5
# Penguins
forrest@1
     6
#LIBS=-L/usr/lib64/netcdf-3 -lnetcdf -lm
forrest@0
     7
#
forrest@0
     8
# robin1 and phoenix
forrest@0
     9
CPPFLAGS=-I$(NETCDF)/include
forrest@0
    10
# Penguins
forrest@1
    11
#CPPFLAGS=-I/usr/include/netcdf-3
forrest@0
    12
# phoenix
forrest@0
    13
#CC=cc
forrest@0
    14
#CFLAGS=-O -h list=m $(CPPFLAGS)
forrest@0
    15
# robin1 and Penguins
forrest@0
    16
CFLAGS=-g -Wall -O $(CPPFLAGS)
forrest@0
    17
forrest@4
    18
all: h1_summary h1_summary2 h1_summary_cb add_total_fields
forrest@0
    19
forrest@0
    20
h1_summary: h1_summary.o
forrest@0
    21
	$(CC) $(CFLAGS) -o $@ h1_summary.o $(LIBS)
forrest@0
    22
forrest@0
    23
h1_summary2: h1_summary2.o
forrest@0
    24
	$(CC) $(CFLAGS) -o $@ h1_summary2.o $(LIBS)
forrest@0
    25
forrest@4
    26
h1_summary_cb: h1_summary_cb.o
forrest@4
    27
	$(CC) $(CFLAGS) -o $@ h1_summary_cb.o $(LIBS)
forrest@4
    28
forrest@0
    29
add_total_fields: add_total_fields.o
forrest@0
    30
	$(CC) $(CFLAGS) -o $@ add_total_fields.o $(LIBS)
forrest@0
    31
forrest@0
    32
clean:
forrest@0
    33
	$(RM) -f h1_summary.o h1_summary
forrest@0
    34
	$(RM) -f h1_summary2.o h1_summary2
forrest@4
    35
	$(RM) -f h1_summary_cb.o h1_summary_cb
forrest@0
    36
	$(RM) -f add_total_fields.o add_total_fields
forrest@0
    37
forrest@0
    38
install: all
forrest@2
    39
	cp -p h1_summary $(HOME)/bin/h1_summary.`uname -n`
forrest@2
    40
	cp -p h1_summary2 $(HOME)/bin/h1_summary2.`uname -n`
forrest@4
    41
	cp -p h1_summary_cb $(HOME)/bin/h1_summary_cb.`uname -n`
forrest@2
    42
	cp -p add_total_fields $(HOME)/bin/add_total_fields.`uname -n`
forrest@0
    43