SURFEX v8.1
General documentation of Surfex
Surfex_Git2
src
OFFLIN
ol_read_atm_netcdf.F90
Go to the documentation of this file.
1
!SFX_LIC Copyright 1994-2014 CNRS, Meteo-France and Universite Paul Sabatier
2
!SFX_LIC This is part of the SURFEX software governed by the CeCILL-C licence
3
!SFX_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
4
!SFX_LIC for details. version 1.
5
! #########
6
SUBROUTINE
ol_read_atm_netcdf
(&
7
HSURF_FILETYPE, &
8
PTA,PQA,PWIND,PDIR_SW,PSCA_SW,PLW,PSNOW, &
9
PRAIN,PPS,PCO2,PDIR )
10
!**************************************************************************
11
!
12
!! PURPOSE
13
!! -------
14
! Read in the netcdf file the atmospheric forcing for the actual time
15
! step KFORC_STEP, and for the next one.
16
! The two time step are needed for the time interpolation of the
17
! forcing.
18
! If the end of the file is reached, set the two step to the last
19
! values.
20
! Return undef value if the variable is not present
21
!!
22
!!** METHOD
23
!! ------
24
!!
25
!! EXTERNAL
26
!! --------
27
!!
28
!! IMPLICIT ARGUMENTS
29
!! ------------------
30
!!
31
!! REFERENCE
32
!! ---------
33
!!
34
!!
35
!! AUTHOR
36
!! ------
37
!! F. Habets *Meteo France*
38
!!
39
!! MODIFICATIONS
40
!! -------------
41
!! Original 06/2003
42
!! P. Le Moigne 10/2004: set INB to 2 because of revised temporal loop in offline.f90:
43
!! time evolution is done at the end of isba time step so first
44
!! isba computation is done on first forcing time step
45
!! P. Le Moigne 10/2005: consistency checking between orographies read from forcing
46
!! file and from initial file
47
48
!
49
!
50
!
51
!
52
!
53
USE
modd_io_surf_ol
, ONLY
:
xcount
54
USE
modi_read_surf
55
!
56
USE
yomhook
,ONLY
:
lhook
,
dr_hook
57
USE
parkind1
,ONLY
:
jprb
58
!
59
IMPLICIT NONE
60
!
61
!
62
! global variables
63
!
64
!
65
REAL
,
DIMENSION(:,:)
,
INTENT(OUT)
:: PTA
66
REAL
,
DIMENSION(:,:)
,
INTENT(OUT)
:: PQA
67
REAL
,
DIMENSION(:,:)
,
INTENT(OUT)
:: PWIND
68
REAL
,
DIMENSION(:,:)
,
INTENT(OUT)
:: PDIR_SW
69
REAL
,
DIMENSION(:,:)
,
INTENT(OUT)
:: PSCA_SW
70
REAL
,
DIMENSION(:,:)
,
INTENT(OUT)
:: PLW
71
REAL
,
DIMENSION(:,:)
,
INTENT(OUT)
:: PSNOW
72
REAL
,
DIMENSION(:,:)
,
INTENT(OUT)
:: PRAIN
73
REAL
,
DIMENSION(:,:)
,
INTENT(OUT)
:: PPS
74
REAL
,
DIMENSION(:,:)
,
INTENT(OUT)
:: PCO2
75
REAL
,
DIMENSION(:,:)
,
INTENT(OUT)
:: PDIR
76
CHARACTER(LEN=6)
,
INTENT(IN)
:: HSURF_FILETYPE
77
78
! local variables
79
INTEGER
:: IRET
80
REAL(KIND=JPRB)
:: ZHOOK_HANDLE
81
!
82
83
IF
(
lhook
)
CALL
dr_hook
(
'OL_READ_ATM_NETCDF'
,0,zhook_handle)
84
CALL
read_surf
(&
85
'OFFLIN'
,
'Tair'
, pta(:,1:
xcount
),iret)
86
CALL
read_surf
(&
87
'OFFLIN'
,
'Qair'
, pqa(:,1:
xcount
),iret)
88
CALL
read_surf
(&
89
'OFFLIN'
,
'Wind'
, pwind(:,1:
xcount
),iret)
90
CALL
read_surf
(&
91
'OFFLIN'
,
'LWdown'
, plw(:,1:
xcount
),iret)
92
CALL
read_surf
(&
93
'OFFLIN'
,
'DIR_SWdown'
,pdir_sw(:,1:
xcount
),iret)
94
CALL
read_surf
(&
95
'OFFLIN'
,
'SCA_SWdown'
,psca_sw(:,1:
xcount
),iret)
96
CALL
read_surf
(&
97
'OFFLIN'
,
'Rainf'
, prain(:,1:
xcount
),iret)
98
CALL
read_surf
(&
99
'OFFLIN'
,
'Snowf'
, psnow(:,1:
xcount
),iret)
100
CALL
read_surf
(&
101
'OFFLIN'
,
'PSurf'
, pps(:,1:
xcount
),iret)
102
CALL
read_surf
(&
103
'OFFLIN'
,
'Wind_DIR'
, pdir(:,1:
xcount
),iret)
104
CALL
read_surf
(&
105
'OFFLIN'
,
'CO2air'
, pco2(:,1:
xcount
),iret)
106
IF
(
lhook
)
CALL
dr_hook
(
'OL_READ_ATM_NETCDF'
,1,zhook_handle)
107
108
END SUBROUTINE
ol_read_atm_netcdf
modd_io_surf_ol::xcount
integer xcount
Definition:
modd_io_surf_ol.F90:47
yomhook::dr_hook
Definition:
yomhook.F90:20
modi_read_surf::read_surf
Definition:
read_surf.F90:44
parkind1::jprb
integer, parameter jprb
Definition:
parkind1.F90:32
yomhook::lhook
logical lhook
Definition:
yomhook.F90:15
modd_io_surf_ol
Definition:
modd_io_surf_ol.F90:6
parkind1
Definition:
parkind1.F90:1
ol_read_atm_netcdf
subroutine ol_read_atm_netcdf(HSURF_FILETYPE, PTA, PQA, PWIND, PDIR_SW, PSCA_SW, PLW, PSNOW, PRAIN, PPS, PCO2, PDIR)
Definition:
ol_read_atm_netcdf.F90:10
modi_read_surf
Definition:
read_surf.F90:6
yomhook
Definition:
yomhook.F90:1
Generated on Tue Jan 16 2018 16:23:22 for SURFEX v8.1 by
1.8.13