SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
read_topd_header_connex.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 ! #######################
7  SUBROUTINE read_topd_header_connex(HPROGRAM,HFILE,HFORM,KNMC)
8 ! #######################
9 !
10 !!**** *READ_TOPD_HEADER*
11 !!
12 !! PURPOSE
13 !! -------
14 ! This routine aims at reading topographic files
15 !!** METHOD
16 !! ------
17 !
18 !! EXTERNAL
19 !! --------
20 !!
21 !! none
22 !!
23 !! IMPLICIT ARGUMENTS
24 !! ------------------
25 !!
26 !!
27 !!
28 !!
29 !!
30 !! REFERENCE
31 !! ---------
32 !!
33 !!
34 !!
35 !! AUTHOR
36 !! ------
37 !!
38 !! B. Vincendon * Meteo-France *
39 !!
40 !! MODIFICATIONS
41 !! -------------
42 !!
43 !! Original 11/2006
44 !-------------------------------------------------------------------------------
45 !
46 !* 0. DECLARATIONS
47 ! ------------
48 !
49 USE modi_get_luout
50 USE modi_open_file
51 USE modi_close_file
52 !
53 USE modd_topd_par, ONLY : nunit
54 USE modd_topodyn, ONLY : npmax
55 !
56 USE yomhook ,ONLY : lhook, dr_hook
57 USE parkind1 ,ONLY : jprb
58 !
59 IMPLICIT NONE
60 !
61 !* 0.1 declarations of arguments
62 !
63  CHARACTER(LEN=*), INTENT(IN) :: hprogram !
64  CHARACTER(LEN=*), INTENT(IN) :: hfile ! File to be read
65  CHARACTER(LEN=*), INTENT(IN) :: hform ! Format of the file to be read
66 INTEGER, INTENT(OUT) :: knmc ! number of pixels in a catchment
67 !
68 !* 0.2 declarations of local variables
69 !
70 !
71 INTEGER :: jj ! loop control
72 INTEGER :: iluout ! Unit of the files
73 REAL(KIND=JPRB) :: zhook_handle
74 !-------------------------------------------------------------------------------
75 IF (lhook) CALL dr_hook('READ_TOPD_HEADER_CONNEX',0,zhook_handle)
76 !
77 !* 0.2 preparing file openning
78 ! ----------------------
79 !
80  CALL get_luout(hprogram,iluout)
81 !
82 WRITE(iluout,*) 'Open ',hfile,'header'
83 !
84  CALL open_file(hprogram,nunit,hfile,hform,haction='READ')
85 !
86 READ(nunit,*)
87 READ(nunit,*) knmc
88 !
89 DO jj=1,5
90  READ(nunit,*)
91 ENDDO
92 !
93  CALL close_file(hprogram,nunit)
94 !
95 IF (lhook) CALL dr_hook('READ_TOPD_HEADER_CONNEX',1,zhook_handle)
96 !
97 END SUBROUTINE read_topd_header_connex
98 
99 
100 
101 
102 
103 
104 
subroutine read_topd_header_connex(HPROGRAM, HFILE, HFORM, KNMC)
subroutine close_file(HPROGRAM, KUNIT)
Definition: close_file.F90:6
subroutine get_luout(HPROGRAM, KLUOUT)
Definition: get_luout.F90:6
subroutine open_file(HPROGRAM, KUNIT, HFILE, HFORM, HACTION, HACCESS, KRECL)
Definition: open_file.F90:6