SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
get_grid_coord_lonlat_rot.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 get_grid_coord_lonlat_rot(KGRID_PAR,KL,PGRID_PAR,PX,PY)
7 ! ###############################################
8 !
9 !!**** *GET_GRID_COORD_LONLAT_ROT* - computes X and Y of ALL points
10 !!
11 !! PURPOSE
12 !! -------
13 !!
14 !!** METHOD
15 !! ------
16 !!
17 !! EXTERNAL
18 !! --------
19 !!
20 !!
21 !! IMPLICIT ARGUMENTS
22 !! ------------------
23 !!
24 !! REFERENCE
25 !! ---------
26 !!
27 !!
28 !! AUTHOR
29 !! ------
30 !! P. Samuelsson SMHI
31 !!
32 !! MODIFICATIONS
33 !! -------------
34 !! Original 12/2012
35 !-------------------------------------------------------------------------------
36 !
37 !* 0. DECLARATIONS
38 ! ------------
39 !
40 !
42 !
43 !
44 USE yomhook ,ONLY : lhook, dr_hook
45 USE parkind1 ,ONLY : jprb
46 !
47 IMPLICIT NONE
48 !
49 !* 0.1 Declarations of arguments
50 ! -------------------------
51 !
52 INTEGER, INTENT(IN) :: kgrid_par ! size of PGRID_PAR
53 INTEGER, INTENT(IN) :: kl ! number of points
54 REAL, DIMENSION(KGRID_PAR), INTENT(IN) :: pgrid_par ! parameters defining this grid
55 REAL, DIMENSION(KL), INTENT(OUT) :: px ! (deg)
56 REAL, DIMENSION(KL), INTENT(OUT) :: py ! (deg)
57 REAL(KIND=JPRB) :: zhook_handle
58 !
59 !* 0.2 Declarations of local variables
60 ! -------------------------------
61 !
62 !---------------------------------------------------------------------------
63 !
64 !* 1. Grid parameters
65 ! ---------------
66 !
67 IF (lhook) CALL dr_hook('GET_GRID_COORD_LONLAT_ROT',0,zhook_handle)
68  CALL get_gridtype_lonlat_rot(pgrid_par,plon=px,plat=py)
69 IF (lhook) CALL dr_hook('GET_GRID_COORD_LONLAT_ROT',1,zhook_handle)
70 !
71 !---------------------------------------------------------------------------
72 !
73 END SUBROUTINE get_grid_coord_lonlat_rot
subroutine get_gridtype_lonlat_rot(PGRID_PAR, PWEST, PSOUTH, PDLON, PDLAT, PPOLON, PPOLAT, KLON, KLAT, KL, PLON, PLAT)
subroutine get_grid_coord_lonlat_rot(KGRID_PAR, KL, PGRID_PAR, PX, PY)