// ****************************
// setting file for iBLM-EC
// ****************************

// TSE: Teshio CC-LaG experiment site
// Conifer-Hardwood mixed forest 
//  mean air temperature : 5.7 degree C
//  annual precipitation : 1000 mm
//  Foliage Area Index   : 3 and 4-4.5 in a full-growing period for canopy and  Sasa layer, respectively

// site information
Latitude                   45.055833  // degree
Longitude                 142.107222  // degree
Elevation                       70.0  // m
CanopyHeight                    21.5  // m (18-25 m)
MeasurementHeight               32.0  // m

// general setting
RunPerDay                         48  // Run per day
WindowSize_optimization            8  // window size for parameter optimization
WindowSize_conductance             8  // window size for conductance analysis by Oren
ForwarmdMode                       0  // 0 : inverse mode,  1 : forward mode 

// model setting
CanopyStructure                    1  // 0 : Big Leaf Model
                                      // 1 : Two Leaf Model (de Pury and Farquhar, 1997; PCE)
StomatalModel                      0  // stomatal conductance model;   0 : Ball-Berry model,  1 : Leuning model
PhotosynthesisFunctions            0  // kinetic function of photosynthesis model; 
                                      // 0 : de Pury and Farquhar (1997; PCE)
                                      // 1 : Bernacchi et al. (2001; PCE, 2003; PCE)
                                      // 2 : von Caemmerer et al. (2009)
                                      // 3 : Collatz et al. (1991; AFM)
                                      // 4 : Kosugi et al. (2003; PCE)
                                      // 5 : Kattge and Knorr (2007; PCE)
Soil_Evaporation                   1  // 0  : neglecting bare soil evaporation
                                      // 1  : potential evaporation
                                      // 2  : potential evaporation considering dryness (Thornton et al., 2002AFM)
                                      // 3  : grassland (Hu et al., 2009AFM; empirical)
                                      // 4  : rice paddy (Sakuratani & Horie 1985JAM; empirical)
                                      // 11 : global emprical function for natural systems (Wang et al., 2014GLR)
                                      // 12 : global emprical function for agric. systems  (Wang et al., 2014GLR)
                                      // 13 : global emprical function for all systems     (Wang et al., 2014GLR)
UseAPAR                            3  // for calculating APAR 
                                      // 0 : APPFD = PPFD 
                                      // 1 : use PPFD_ref (APPFD = PPFD - PPFD_ref)
                                      // 2 : use FPAR     (APPFD = PPFD * FPAR)
                                      // 3 : use radiative transfer model (APPFD = PPFD * FPAR_model)
UseKB_inverse                      1  // use kB-1 for calculating boundary layer conductance
Filling                            1  // filling ga (using u* or U ) or Ts (using Ta)
PrecipitationFilter                2  // rejecting data after the rainfall conditions
                                      //    negative numbers is set when this filtering is not applied.
UstarThreshold                   0.1  // friction velocity threshold (m s-1)

// radiative transfer model
AdvancedRadiativeTransfer          1  // type of radiative transfer model
                                      // 0 : simple version (de Pury and Farquhar, 1997; PCE)
                                      // 1 : advanced version including clumping and shape factor.
Omega                           0.69  // clumping index
Shape                              1  // shape factor;  0 : Spherical, 1 : Planophile, 2 : Erectrophile
leaf_scatter_PAR                0.12  // leaf scattering coefficient for PAR
leaf_scatter_NIR                0.55  // leaf scattering coefficient for NIR
soil_reflectance_PAR            0.11  // soil reflectance for PAR
soil_reflectance_NIR            0.23  // soil reflectance for NIR

// foliage nitrogen decay coefficient
Kn                               -0.1 // foliage nitrogen decay coefficient
                                      //  in case setting negative value, Kn determined by Lloyed et al. (2010BG)

// sec-ua setting
SceUaItteration_all                1  // itteration of optimization for whole dataset
SceUaItteration_each              10  // itteration of optimization for each window

// files
//  file name must not contain blank space.
SCE-UA            C:\iBLM-EC\input\scein.prm.dat
met               C:\iBLM-EC\input\TSE.2002.BigLeaf.co2.csv
out_dir           C:\iBLM-EC\output
forward_prm       C:\iBLM-EC\
