-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
Manually constructed from the official project release. Archive downloaded and extracted as-is from https://opensource.umr-cnrm.fr/attachments/download/1555/TEB_open_source_v2.4406.tar.gz
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
!SFX_LIC Copyright 1994-2014 CNRS, Meteo-France and Universite Paul Sabatier | ||
!SFX_LIC This is part of the SURFEX software governed by the CeCILL-C licence | ||
!SFX_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt | ||
!SFX_LIC for details. version 1. | ||
! ###################### | ||
MODULE MODD_REPROD_OPER | ||
! ###################### | ||
! | ||
!!**** *MODD_REPROD_OPER* - declaration of ISBA parameters | ||
!! | ||
!! PURPOSE | ||
!! ------- | ||
! The purpose of this declarative module is to specify temporary | ||
! old parameters related to the surface parameterization ISBA | ||
! to ensure reproductibility with previous oper cycle | ||
! | ||
!! | ||
!! | ||
!! | ||
!! AUTHOR | ||
!! ------ | ||
!! B. Decharme *Meteo France* | ||
!! | ||
!! MODIFICATIONS | ||
!! ------------- | ||
!! Original 04/2013 | ||
!------------------------------------------------------------------------------- | ||
! | ||
!* 0. DECLARATIONS | ||
! ------------ | ||
! | ||
IMPLICIT NONE | ||
! | ||
!------------------------------------------------------------------------------------ | ||
! Old global ISBA param temporary activated in NAM_SURF_REPROD_OPER (for reproductibility) | ||
!------------------------------------------------------------------------------------ | ||
! | ||
! * Tropical evergreen forest parameter | ||
! | ||
!XEVERG_RSMIN : old = 250. (Manzi 1993) but observations range | ||
! from 140 to 180. According to Delire et al. (1997) and | ||
! new tests over 6 local sites, 175. is recommended | ||
! Should be the default after check with AROME/ALADIN | ||
! | ||
REAL :: XEVERG_RSMIN | ||
! | ||
!XEVERG_VEG : old = 0.99 (Manzi 1993) but according to Delire et al. (1997) and | ||
! new tests over 6 local sites, 1.0 is recommended because 0.99 | ||
! induces unrealistic bare soil evaporation for Tropical forest | ||
! Should be the default after check with AROME/ALADIN | ||
! | ||
REAL :: XEVERG_VEG | ||
! | ||
! * Soil depth average | ||
! | ||
!CDGAVG : old = 'ARI' Arithmetic average for all depths | ||
! recommended = 'INV' Harmonic average for all depths | ||
! | ||
CHARACTER(LEN=3) :: CDGAVG | ||
! | ||
! * Soil depth with ISBA-DF | ||
! | ||
!CDGDIF : old = 'SOIL' Total soil depth (d3) in Ecoclimap | ||
! recommended = 'ROOT' Root depth (d2) in Ecoclimap | ||
! | ||
CHARACTER(LEN=4) :: CDGDIF | ||
! | ||
! * wind implicitation | ||
! | ||
CHARACTER(LEN=3) :: CIMPLICIT_WIND ! wind implicitation option | ||
! ! 'OLD' = direct | ||
! ! 'NEW' = Taylor serie, order 1 (recommended) | ||
! | ||
! * qsat computation | ||
! | ||
CHARACTER(LEN=3) :: CQSAT ! qsat computation option | ||
! ! 'OLD' = do not depend on temperature | ||
! ! 'NEW' = qsat and qsati merged (recommended) | ||
! | ||
! * Charnock parameter | ||
! | ||
CHARACTER(LEN=3) :: CCHARNOCK ! Charnock parameter option | ||
! ! 'OLD' = constant equal to XVCHRNK | ||
! ! 'NEW' = vary between 0.011 et 0.018 according | ||
! ! to Chris Fairall's data as in coare3.0 | ||
! ! (recommended) | ||
! | ||
!-------------------------------------------------------------------------------- | ||
! | ||
END MODULE MODD_REPROD_OPER | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,169 @@ | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
! Copyright 1998-2013 Meteo-France | ||
! This is part of the TEB software governed by the CeCILL-C licence version 1. | ||
! See LICENCE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt for details. | ||
! http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.txt | ||
! http://www.cecill.info/licences/Licence_CeCILL-C_V1-fr.txt | ||
! The CeCILL-C licence is compatible with L-GPL | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
! ######### | ||
SUBROUTINE GARDEN(HIMPLICIT_WIND, TPTIME, PTSUN, PPEW_A_COEF, PPEW_B_COEF, & | ||
PPET_A_COEF, PPEQ_A_COEF, PPET_B_COEF, PPEQ_B_COEF, & | ||
PTSTEP, PZ_LOWCAN, & | ||
PT_LOWCAN, PQ_LOWCAN, PEXNS, PRHOA, PCO2, PPS, PRR, PSR, PZENITH, & | ||
PSW, PLW, PU_LOWCAN, & | ||
PRN_GARDEN,PH_GARDEN,PLE_GARDEN,PGFLUX_GARDEN,PSFCO2, & | ||
PEVAP_GARDEN, PUW_GARDEN, PRUNOFF_GARDEN, & | ||
PAC_GARDEN,PQSAT_GARDEN,PTS_GARDEN, & | ||
PAC_AGG_GARDEN, PHU_AGG_GARDEN, PDRAIN_GARDEN, PIRRIG_GARDEN ) | ||
! ########################################################################## | ||
! | ||
!!**** *GARDEN* | ||
!! | ||
!! PURPOSE | ||
!! ------- | ||
! | ||
!!call a proxi of vegetation scheme inside TEB | ||
! | ||
!!======================================================================== | ||
!!======================================================================== | ||
!!======================================================================== | ||
!! | ||
!! ==> YOU ARE (MORE THAN) WELCOME TO USE YOUR OWN VEGETATION SCHEME HERE | ||
!! | ||
!!======================================================================== | ||
!!======================================================================== | ||
!!======================================================================== | ||
! | ||
!!** METHOD | ||
! ------ | ||
! | ||
! | ||
!! EXTERNAL | ||
!! -------- | ||
!! | ||
!! | ||
!! IMPLICIT ARGUMENTS | ||
!! ------------------ | ||
!! | ||
!! | ||
!! REFERENCE | ||
!! --------- | ||
!! | ||
!! | ||
!! AUTHOR | ||
!! ------ | ||
!! | ||
!! A. Lemonsu * Meteo-France * | ||
!! | ||
!! MODIFICATIONS | ||
!! ------------- | ||
!! Original 05/2009 | ||
!------------------------------------------------------------------------------- | ||
! | ||
!* 0. DECLARATIONS | ||
! ------------ | ||
! | ||
USE MODD_CSTS, ONLY : XLVTT , & ! Latent heat constant for evaporation | ||
XKARMAN ! Von Karman constant | ||
USE MODE_THERMOS ! Function to compute humidity at saturation | ||
USE MODD_TYPE_DATE_SURF, ONLY: DATE_TIME | ||
! | ||
IMPLICIT NONE | ||
! | ||
!* 0.1 Declarations of arguments | ||
! | ||
CHARACTER(LEN=*), INTENT(IN) :: HIMPLICIT_WIND ! wind implicitation option | ||
! ! 'OLD' = direct | ||
! ! 'NEW' = Taylor serie, order 1 | ||
TYPE(DATE_TIME) , INTENT(IN) :: TPTIME ! current date and time from teb | ||
REAL, DIMENSION(:) , INTENT(IN) :: PTSUN ! solar time (s from midnight) | ||
REAL, DIMENSION(:) , INTENT(IN) :: PPEW_A_COEF ! implicit coefficients | ||
REAL, DIMENSION(:) , INTENT(IN) :: PPEW_B_COEF ! for wind coupling | ||
REAL, DIMENSION(:) , INTENT(IN) :: PPEQ_A_COEF ! implicit coefficients | ||
REAL, DIMENSION(:) , INTENT(IN) :: PPEQ_B_COEF ! for humidity | ||
REAL, DIMENSION(:) , INTENT(IN) :: PPET_A_COEF ! implicit coefficients | ||
REAL, DIMENSION(:) , INTENT(IN) :: PPET_B_COEF ! for temperature | ||
REAL , INTENT(IN) :: PTSTEP ! time step | ||
REAL, DIMENSION(:) , INTENT(IN) :: PZ_LOWCAN ! height of atm. var. near the road | ||
REAL, DIMENSION(:) , INTENT(IN) :: PT_LOWCAN ! temp. near the road | ||
REAL, DIMENSION(:) , INTENT(IN) :: PQ_LOWCAN ! hum. near the road | ||
REAL, DIMENSION(:) , INTENT(IN) :: PPS ! pressure at the surface | ||
REAL, DIMENSION(:) , INTENT(IN) :: PEXNS ! surface exner function | ||
REAL, DIMENSION(:) , INTENT(IN) :: PRHOA ! air density at the lowest level | ||
REAL, DIMENSION(:) , INTENT(IN) :: PCO2 ! CO2 concentration in the air (kg/m3) | ||
REAL, DIMENSION(:) , INTENT(IN) :: PRR ! rain rate | ||
REAL, DIMENSION(:) , INTENT(IN) :: PSR ! snow rate | ||
REAL, DIMENSION(:) , INTENT(IN) :: PZENITH ! solar zenithal angle | ||
REAL, DIMENSION(:), INTENT(IN) :: PSW ! incoming total solar rad on an horizontal surface | ||
REAL, DIMENSION(:) , INTENT(IN) :: PLW ! atmospheric infrared radiation | ||
REAL, DIMENSION(:) , INTENT(IN) :: PU_LOWCAN ! wind near the road | ||
|
||
REAL, DIMENSION(:) , INTENT(OUT) :: PRN_GARDEN ! net radiation over green areas | ||
REAL, DIMENSION(:) , INTENT(OUT) :: PH_GARDEN ! sensible heat flux over green areas | ||
REAL, DIMENSION(:) , INTENT(OUT) :: PLE_GARDEN ! latent heat flux over green areas | ||
REAL, DIMENSION(:) , INTENT(OUT) :: PGFLUX_GARDEN ! flux through the green areas | ||
REAL, DIMENSION(:) , INTENT(OUT) :: PSFCO2 ! flux of CO2 positive toward the atmosphere (kg/m2/s) | ||
REAL, DIMENSION(:) , INTENT(OUT) :: PEVAP_GARDEN ! total evaporation over gardens (kg/m2/s) | ||
REAL, DIMENSION(:) , INTENT(OUT) :: PUW_GARDEN ! friction flux (m2/s2) | ||
REAL, DIMENSION(:) , INTENT(OUT) :: PRUNOFF_GARDEN ! runoff over garden (kg/m2/s) | ||
REAL, DIMENSION(:) , INTENT(OUT) :: PAC_GARDEN ! aerodynamical conductance | ||
REAL, DIMENSION(:) , INTENT(OUT) :: PQSAT_GARDEN ! saturation humidity | ||
REAL, DIMENSION(:) , INTENT(INOUT) :: PTS_GARDEN ! radiative surface temp. (snow free) | ||
REAL, DIMENSION(:) , INTENT(OUT) :: PAC_AGG_GARDEN ! aggreg. aeodynamic resistance for green areas for latent heat flux | ||
REAL, DIMENSION(:) , INTENT(OUT) :: PHU_AGG_GARDEN ! aggreg. relative humidity for green areas for latent heat flux | ||
REAL, DIMENSION(:) , INTENT(OUT) :: PDRAIN_GARDEN ! garden total (vertical) drainage | ||
REAL, DIMENSION(:) , INTENT(OUT) :: PIRRIG_GARDEN ! garden summer irrigation rate | ||
! | ||
! | ||
!* 0.2 Declarations of local variables | ||
! | ||
! | ||
!------------------------------------------------------------------------------- | ||
! | ||
!* 1. Proxi model based on a fixed Bowen ratio | ||
! ---------------------------------------- | ||
! | ||
!* albedo fixed to 0.15 | ||
PRN_GARDEN(:) = (1.-0.15) * PSW(:) | ||
! | ||
!* Bowen ratio fixed to 0.25 | ||
PH_GARDEN (:) = 0.2 * PRN_GARDEN(:) | ||
PLE_GARDEN(:) = 0.8 * PRN_GARDEN(:) | ||
! | ||
!* Conduction heat flux is neglected | ||
PGFLUX_GARDEN(:) = 0. | ||
! | ||
!* CO2 flux is neglected | ||
PSFCO2(:) = 0. | ||
! | ||
!* evaporation | ||
PEVAP_GARDEN(:) = PLE_GARDEN(:) / XLVTT | ||
! | ||
!* Friction flux: assumes neutral formulation with roughness length of 0.1m | ||
PUW_GARDEN(:) = - (XKARMAN/LOG(PZ_LOWCAN(:)/0.1))**2 * PU_LOWCAN(:)**2 | ||
! | ||
!* Aerodynamical conductance: neglected because used further only for | ||
! implicitation of canyon air temperature when the heat flux depends on the | ||
! surface temperature | ||
! | ||
PAC_GARDEN(:) = 0. | ||
! | ||
!* surface saturation humidity | ||
PQSAT_GARDEN(:) = QSAT(PT_LOWCAN(:),PPS(:)) | ||
! | ||
!* Surface temperature : set equal to air temperature | ||
PTS_GARDEN(:) = PT_LOWCAN(:) | ||
! | ||
!* aerocynamical conductance for latent heat and surface humidity | ||
PAC_AGG_GARDEN(:) = 0. ! neglected (latent flux does not depend on surface humidity) | ||
PHU_AGG_GARDEN(:) = 0.8 ! surface humidity set to 80% | ||
! | ||
!* garden hydrological diagnostics | ||
PRUNOFF_GARDEN(:) = 0. ! garden surface runoff | ||
PDRAIN_GARDEN (:) = 0. ! garden total (vertical) drainage | ||
PIRRIG_GARDEN (:) = 0. ! garden irrigation during time step | ||
!------------------------------------------------------------------------------- | ||
! | ||
! | ||
END SUBROUTINE GARDEN |