SURFEX v7.3
General documentation of Surfex
 All Classes Files Functions Variables Typedefs
/home/dasprezs/EXPORT_v7_3/src/SURFEX/get_grid_coord_lonlat_reg.F90
Go to the documentation of this file.
00001 !     ###############################################
00002       SUBROUTINE GET_GRID_COORD_LONLAT_REG(KGRID_PAR,KL,PGRID_PAR,PX,PY)
00003 !     ###############################################
00004 !
00005 !!****  *GET_GRID_COORD_LONLAT_REG* - computes X and Y of ALL points
00006 !!
00007 !!    PURPOSE
00008 !!    -------
00009 !!
00010 !!**  METHOD
00011 !!    ------
00012 !!
00013 !!    EXTERNAL
00014 !!    --------
00015 !!
00016 !!
00017 !!    IMPLICIT ARGUMENTS
00018 !!    ------------------
00019 !!
00020 !!    REFERENCE
00021 !!    ---------
00022 !!
00023 !!
00024 !!    AUTHOR
00025 !!    ------
00026 !!      V. Masson   *Meteo France*      
00027 !!
00028 !!    MODIFICATIONS
00029 !!    -------------
00030 !!      Original    01/2004 
00031 !-------------------------------------------------------------------------------
00032 !
00033 !*       0.    DECLARATIONS
00034 !              ------------
00035 !
00036 !
00037 USE MODE_GRIDTYPE_LONLAT_REG
00038 !
00039 !
00040 USE YOMHOOK   ,ONLY : LHOOK,   DR_HOOK
00041 USE PARKIND1  ,ONLY : JPRB
00042 !
00043 IMPLICIT NONE
00044 !
00045 !*       0.1   Declarations of arguments
00046 !              -------------------------
00047 !
00048 INTEGER,                    INTENT(IN)  :: KGRID_PAR  ! size of PGRID_PAR
00049 INTEGER,                    INTENT(IN)  :: KL         ! number of points
00050 REAL, DIMENSION(KGRID_PAR), INTENT(IN)  :: PGRID_PAR  ! parameters defining this grid
00051 REAL, DIMENSION(KL),        INTENT(OUT) :: PX         ! X (m)
00052 REAL, DIMENSION(KL),        INTENT(OUT) :: PY         ! Y (m)
00053 REAL(KIND=JPRB) :: ZHOOK_HANDLE
00054 !
00055 !*       0.2   Declarations of local variables
00056 !              -------------------------------
00057 !
00058 !---------------------------------------------------------------------------
00059 !
00060 !*       1.    Grid parameters
00061 !              ---------------
00062 !
00063 IF (LHOOK) CALL DR_HOOK('GET_GRID_COORD_LONLAT_REG',0,ZHOOK_HANDLE)
00064  CALL GET_GRIDTYPE_LONLAT_REG(PGRID_PAR,PLON=PX,PLAT=PY)
00065 IF (LHOOK) CALL DR_HOOK('GET_GRID_COORD_LONLAT_REG',1,ZHOOK_HANDLE)
00066 !
00067 !---------------------------------------------------------------------------
00068 !
00069 END SUBROUTINE GET_GRID_COORD_LONLAT_REG