source: CONFIG_DEVT/IPSLCM6.5_work_ENSEMBLES/modeles/NEMO/src/OCE/OBS/grt_cir_dis_saa.h90 @ 5501

Last change on this file since 5501 was 5501, checked in by aclsce, 4 years ago

First import of IPSLCM6.5_work_ENSEMBLES working configuration

File size: 1.2 KB
Line 
1   !!----------------------------------------------------------------------
2   !! NEMO/OCE 4.0 , NEMO Consortium (2018)
3   !! $Id: grt_cir_dis_saa.h90 10068 2018-08-28 14:09:04Z nicolasmartin $
4   !! Software governed by the CeCILL license (see ./LICENSE)
5   !!----------------------------------------------------------------------
6
7   REAL(KIND=wp) FUNCTION grt_cir_dis_saa( pa, pb, pc )
8      !!----------------------------------------------------------------------
9      !!                     *** FUNCTION grt_cir_dis_saa ***
10      !!
11      !! ** Purpose : Great circle distance between pts (lat1,lon1)
12      !!               & (lat2,lon2) with a small-angle approximation
13      !!
14      !! ** Method  : Geometry
15      !!
16      !! ** Action  :
17      !!
18      !! History
19      !!      !  95-12 (G. Madec, E. Durand, A. Weaver, N. Daget) Original
20      !!      !  06-03 (A. Vidard) Migration to NEMOVAR
21      !!      !  06-10 (A. Weaver) Cleanup
22      !!----------------------------------------------------------------------
23     
24      !! * Arguments
25      REAL(KIND=wp) :: pa   !  lon1 - lon2
26      REAL(KIND=wp) :: pb   !  lat1 - lat2
27      REAL(KIND=wp) :: pc   !  cos(lat2)
28
29      grt_cir_dis_saa = SQRT( pa * pa + ( pb * pc )**2 )
30
31   END FUNCTION grt_cir_dis_saa
32 
Note: See TracBrowser for help on using the repository browser.