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

source: branches/dev_1784_OBS/NEMO/OPA_SRC/OBS/grt_cir_dis_saa.h90 @ 2001

Last change on this file since 2001 was 2001, checked in by djlea, 14 years ago

Adding observation operator code

File size: 937 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) :: &
20         & pa, & !  lon1 - lon2
21         & pb, & !  lat1 - lat2
22         & pc    !  cos(lat2)
23
24      grt_cir_dis_saa = SQRT( pa * pa + ( pb * pc )**2 )
25
26   END FUNCTION grt_cir_dis_saa
27 
Note: See TracBrowser for help on using the repository browser.