#
#**************************************************************************
#                    Namelist for ORCHIDEE_OL
#**************************************************************************
#
#**************************************************************************
#          OPTIONS NOT SET
#**************************************************************************
#
#
#**************************************************************************
#          Management of display in the run of DRIVER
#**************************************************************************

# Flag for debug information
# This option allows to switch on the output of debug
#         information without recompiling the code.
DEBUG_INFO = n
#default = n


#---------------------------------------------------------------------
# Forcing file name
# Name of file containing the forcing data
# This is the name of the file which should be opened
# for reading the forcing data of the dim0 model.
# The format of the file has to be netCDF and COADS
# compliant. Cabauw.nc, islscp_for.nc, WG_cru.nc
FORCING_FILE = forcing_file.nc
# default = islscp_for.nc

# split time step :
#---------------------------------------------------------------------

# Splits the timestep imposed by the forcing
# With this value the time step of the forcing
#  will be devided. In principle this can be run
#  in explicit mode but it is strongly suggested
#  to use the implicit method so that the
#  atmospheric forcing has a smooth evolution.
SPLIT_DT = 12
# default = 12

#  Time in the forcing file at which the model is started.
#  This time give the point in time at which the model
#  should be started. 
#  If exists, the date of the restart file is use.
#  The FORMAT of this date can be either of the following :
#  n   : time step n within the forcing file
#  nS  : n seconds after the first time-step in the file
#  nD  : n days after the first time-step
#  nM  : n month after the first time-step (year of 365 days)
#  nY  : n years after the first time-step (year of 365 days)
#      Or combinations :
#  nYmM: n years and m month
TIME_SKIP = 0
# default = 0

# Spread the precipitation.
# Spread the precipitaiton over n steps of the splited forcing time step. 
#  This is ONLY applied if the forcing time step has been splited (SPLIT_DT).
#  If the value indicated is greater than SPLIT_DT, SPLIT_DT is used for it.
SPRED_PREC = 1
# default = 1





# Input and output restart file for the driver
#---------------------------------------------------------------------

# Name of restart to READ for initial conditions
# This is the name of the file which will be opened
#  to extract the initial values of all prognostic
#  values of the model. This has to be a netCDF file.
#  Not truly COADS compliant. NONE will mean that
#  no restart file is to be expected.
RESTART_FILEIN = NONE
# default = NONE

# Name of restart files to be created by the driver
# This variable give the  name for
#  the restart file. The restart software within
#  IOIPSL will add .nc if needed
RESTART_FILEOUT = driver_rest_out.nc
# default = driver_rest_out.nc


#**************************************************************************
#                             Area location
#**************************************************************************
#  The model will use the smalest regions from
#  region specified here and the one of the forcing file.

# Western limit of region
# Western limit of the region we are 
#  interested in. Between -180 and +180 degrees
LIMIT_WEST = -180.
# default = -180.

# Eastern limit of region
# Eastern limit of the region we are
#  interested in. Between -180 and +180 degrees
LIMIT_EAST = 180.
# default = 180.

# Northern limit of region
# Northern limit of the region we are
#  interested in. Between +90 and -90 degrees
LIMIT_NORTH = 90.
# default = 90.

# Southern limit of region
# Southern limit of the region we are
#  interested in. Between 90 and -90 degrees
LIMIT_SOUTH = -90.
# default = -90.

##**************************************************************************
#                       Simulation parameters
#**************************************************************************

# method of forcing
# A method is proposed by which the first atmospheric
#   level is not directly forced by observations but
#   relaxed with a time constant towards observations.
#   For the moment the methods tends to smooth too much
#   the diurnal cycle and introduces a time shift.
#   A more sophisticated method is needed.
RELAXATION = n
# default = n

# Time constant of the relaxation layer RELAXATION
# The time constant associated to the atmospheric
#  conditions which are going to be computed
#  in the relaxed layer. To avoid too much
#  damping the value should be larger than 1000.
RELAX_A = 1000.
# default = 1000.0

# Height at which T and Q are given
# The atmospheric variables (temperature and specific
#  humidity) are measured at a specific level.
#  The height of this level is needed to compute
#  correctly the turbulent transfer coefficients.
#  Look at the description of the forcing
#  DATA for the correct value.
HEIGHT_LEV1 = 2.0
# default  = 2.0

# Height at which the wind is given
# The height at which wind is needed to compute
#  correctly the turbulent transfer coefficients.
HEIGHT_LEVW = 10.0
# default  = 10.0

#---------------------------------------------------------------------
# Weather generator or not :
#---------------------------------------------------------------------

# Allow weather generator to create data.
# This flag allows the forcing-reader to generate
#  synthetic data if the data in the file is too sparse
#  and the temporal resolution would not be enough to
#  run the model.
ALLOW_WEATHERGEN = n
# default = n

# North-South Resolution
# If ALLOW_WEATHERGEN
# North-South Resolution of the region we are
#  interested in. In degrees
MERID_RES = 2.
# default = 2.

# East-West Resolution
# If ALLOW_WEATHERGEN
# East-West Resolution of the region we are
#  interested in. In degrees
ZONAL_RES = 2.
# default = 2.

# Use prescribed values
# If ALLOW_WEATHERGEN
# If this is set to 1, the weather generator
#   uses the monthly mean values for daily means.
#   If it is set to 0, the weather generator
#   uses statistical relationships to derive daily
#   values from monthly means.
IPPREC = 0
# default = 0

# Interpolation  or not IF split is larger than 1
# Choose IF you wish to interpolate linearly or not.
NO_INTER = y
INTER_LIN = n
# default :
#  NO_INTER = y
#  INTER_LIN = n

# Exact monthly precipitation
# If ALLOW_WEATHERGEN
# If this is set to y, the weather generator
#   will generate pseudo-random precipitations
#   whose monthly mean is exactly the prescribed one.
#   In this case, the daily precipitation (for rainy
#   days) is constant (that is, some days have 0 precip,
#   the other days have precip = Precip_month/n_precip,
#   where n_precip is the prescribed number of rainy days
#   per month).
WEATHGEN_PRECIP_EXACT = n
# default = n

# Calling frequency of weather generator (s)
# Determines how often the weather generator
#  is called (time step in s). Should be equal
#  to or larger than Sechiba's time step (say,
#  up to 6 times Sechiba's time step or so).
DT_WEATHGEN = 1800.
# default = 1800.

# Conserve net radiation in the forcing
# When the interpolation is used the net radiation
#  provided by the forcing is not conserved anymore.
#  This should be avoided and thus this option should
#  be TRUE (y).
#  This option is not used for short-wave if the
#  time-step of the forcing is longer than an hour.
#  It does not make sense to try and reconstruct
#  a diurnal cycle and at the same time conserve the 
#  incoming solar radiation.
NETRAD_CONS = y
# default = y

# Write weather from generator into a forcing file
# This flag makes the weather generator dump its
#  generated weather into a forcing file which can
#  then be used to get the same forcing on different
#  machines. This only works correctly if there is
#  a restart file (otherwise the forcing at the first
#  time step is slightly wrong).
DUMP_WEATHER = n
# default = n

# Name of the file that contains
#  the weather from generator
# If DUMP_WEATHER
DUMP_WEATHER_FILE = weather_dump.nc
# default = 'weather_dump.nc'

# Dump weather data on gathered grid
# If 'y', the weather data are gathered
#  for all land points.
# If DUMP_WEATHER
DUMP_WEATHER_GATHERED = y
# default = y


# Read Orbital Parameters

# Eccentricity Effect
# Use prescribed values
# IF ALLOW_WEATHERGEN
ECCENTRICITY = 0.016724
# default = 0.016724

# Longitude of perihelie
# Use prescribed values
# If ALLOW_WEATHERGEN
PERIHELIE = 102.04
# default = 102.04

# Use prescribed values
# If ALLOW_WEATHERGEN
OBLIQUITY = 23.446
# default = 23.446

#**************************************************************************
# length of simulation :
#---------------------------------------------------------------------
# Length of the integration in time.
# Length of integration. By default the entire length
#        of the forcing is used. The FORMAT of this date can
#        be either of the following :
# n   : time step n within the forcing file
# nS  : n seconds after the first time-step in the file
# nD  : n days after the first time-step
# nM  : n month after the first time-step (year of 365 days)
# nY  : n years after the first time-step (year of 365 days)
#        Or combinations :
# nYmM: n years and m month
TIME_LENGTH = default
# default = depend on the time length and the number of time step in forcing file
#         = itau_len = itau_fin-itau_dep



