New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
grt_cir_dis_saa.h90 in branches/devukmo2010/NEMO/OPA_SRC/OBS – NEMO

source: branches/devukmo2010/NEMO/OPA_SRC/OBS/grt_cir_dis_saa.h90 @ 2128

Last change on this file since 2128 was 2128, checked in by rfurner, 14 years ago

merged branches OBS, ASM, Rivers, BDY & mixed_dynldf ready for vn3.3 merge

File size: 945 bytes
Line 
1   REAL(KIND=wp) FUNCTION grt_cir_dis_saa( pa, pb, pc )
2      !!----------------------------------------------------------------------
3      !!                     *** FUNCTION grt_cir_dis_saa ***
4      !!
5      !! ** Purpose : Great circle distance between pts (lat1,lon1)
6      !!               & (lat2,lon2) with a small-angle approximation
7      !!
8      !! ** Method  : Geometry
9      !!
10      !! ** Action  :
11      !!
12      !! History
13      !!      !  95-12 (G. Madec, E. Durand, A. Weaver, N. Daget) Original
14      !!      !  06-03 (A. Vidard) Migration to NEMOVAR
15      !!      !  06-10 (A. Weaver) Cleanup
16      !!----------------------------------------------------------------------
17     
18      !! * Arguments
19      REAL(KIND=wp) :: pa   !  lon1 - lon2
20      REAL(KIND=wp) :: pb   !  lat1 - lat2
21      REAL(KIND=wp) :: pc   !  cos(lat2)
22
23      grt_cir_dis_saa = SQRT( pa * pa + ( pb * pc )**2 )
24
25   END FUNCTION grt_cir_dis_saa
26 
Note: See TracBrowser for help on using the repository browser.