# Copyright 2008-2021 Earth Sciences Department, BSC-CNS
#
# NMMB and MONARCH preprocessing codes.
#
# This file is part of MONARCH.
#
# MONARCH is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# MONARCH is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with MONARCH. If not, see <http://www.gnu.org/licenses/>.
#
# The NMMB code was developed by the National Oceanic and Atmospheric
# Administration. NMMB is provided on an AS IS basis, without warranties
# or conditions of any kind, either express or implied.

The programs in this directory define the geographical data that
do not change in time on the model grid.  The raw data used for 
this purpose are located in the directory ../geodata.  The output
fields are stored in the directory ../output that you have to
create first.

The .inc files define the model grid and the data grids.

To define the fields on the model grid run the interactive script
JOB/TEMPLATE/NMMBrrtm_RUN_TEMPLATE.sh with DO_FIXED=1.  This takes
some time since huge data files are processed. However this needs
to be done only the first time the specific model grid is used. 
The output fields have recognizable names.

N.B.
If you use the GFDL Eta radiation, you will need precomputed co2
transmission functions for your specific distribution of model
levels.  To get the transmission functions, later on you can set
the appropriate flag in the model configuration file to 1. 
Alternatively, you can run the script runco2 in this directory.
For this you need the input data that are in ../geodata/co2data 
and the file ../output/dsg that is not available yet, but will be
defined after running the program allprep.f in the directory
../VARIABLE.  The file lmimjm.inc describes the model grid for the
f70 program gfdlco2.f and must agree with the modelgrid.inc file
used in the f90 programs.
