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/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC/OBS – NEMO

source: branches/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC/OBS/grt_cir_dis_saa.h90 @ 2281

Last change on this file since 2281 was 2281, checked in by smasson, 14 years ago

set proper svn properties to all files...

  • Property svn:keywords set to Id
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.