!///////////////////////////////////////////////////////////////////////////////////////
!// ecev3 guess.ins - adapted from global crop benchmark guess.ins


import "global.ins"
import "crop_n.ins"


!///////////////////////////////////////////////////////////////////////////////////////
! ecev3 - Import landcover and land use (e.g. LUH2) files

param "file_gridlist"	(str "ece_gridlist.txt")
import "landuse.ins"


!///////////////////////////////////////////////////////////////////////////////////////
! Output files

file_aiso "aiso.out"
file_amon "amon.out"

file_miso "miso.out"
file_mmon "mmon.out"


!///////////////////////////////////////////////////////////////////////////////////////
!// RUN PARAMETERS AND OPTIONS 

! ecev3 - overrides ifbvoc 0 in global.ins
ifbvoc 1

! ecev3 - set to 1
ifintercropgrass 1	! Whether to grow grass as cover crop between growing periods


!///////////////////////////////////////////////////////////////////////////////////////
!// ecev3 - Parameters and options specific to LPJ-GUESS coupled to EC-Earth

! N deposition (blank string to use constant pre-industrial level of 2 kgN/ha/year)
! NB! not used in EC-Earth coupling
!param "file_ndep"     (str "c:/ndep/GlobalNitrogenDeposition.bin")
param "file_ndep"     (str "") ! NB! MUST be cru_ncep version of this file

! CMIP6 N deposition - replaces file_ndep
!param "ndep_cmip6_dir" (str "D:/DATA/J/MODELDATA/ndep/cmip6/") ! Windows PC
param "ndep_cmip6_dir" (str "../ndep/") 

! Whether to use soil water content and soil temperature sent from IFS (1), or use GUESS' own
! hydrology (driven by precipitation) and analytic soil temperature (0).
param "useifssoilmoist" (num 0)
param "useifssoiltemp" (num 1)

! Determine which RCP to use
! 0 - historical only (i.e. use file_co2 below)
! 1 - use ghg_rcp3PD.txt
! 2 - use ghg_rcp45.txt
! 3 - use ghg_rcp60.txt
! 4 - use ghg_rcp85.txt
param "nrcp" (num 0)

! State file name and directory 
! For saving and reading .bin files.
!state_path "./" 
param "state_path" (str "..") 	! directory containing the .bin state files
param "state_name" (str "lpjg")	! state filenames
param "restart" (num 1) ! 		! 1: restart from .bin files. 0: start from bare ground

! Paths to IFS spinup data - MUST have trailing "/" (linux/unix systems) or "\" (Windows)

! NSC ECE 3p1:
!param "ifs_spinup_dir" (str "/nobackup/rossby15/sm_paumi/ecev3/processed/daily/")
! NSC ECE 3p2 AMIP output:
!param "ifs_spinup_dir" (str "/nobackup/rossby18/sm_wyser/ecearth3-amip/processed/daily/")
! Fast AMIP output:
param "ifs_spinup_dir" (str "/nobackup/rossby20/sm_paumi/amipspinupforcing/")

! Paul Miller's PC:
!param "ifs_spinup_dir" (str "D:\DATA\J\EC-Earth\Version3p1_output\se21\daily\") ! Older set
!param "ifs_spinup_dir" (str "D:\DATA\J\EC-Earth\Version3p2_output\AMIP\") 


! N deposition (default is pre-industrial level of 2 kgN/ha/year)
param "ndep" (num 2)

! Print Lon/Lat with extra precision. Default is 1
coordinates_precision 6
