1 | SUBROUTINE nagsst (pflda, kmska, kvmska, kngxa, kngya, |
---|
2 | $ prbtoa, kbtoa, kwbtoa, |
---|
3 | $ pfldb, kngxb, kngyb) |
---|
4 | C**** |
---|
5 | C ***************************** |
---|
6 | C * OASIS ROUTINE - LEVEL 3 * |
---|
7 | C * ------------- ------- * |
---|
8 | C ***************************** |
---|
9 | C |
---|
10 | C**** *nagsst* - Interpolation Anais-global without constraints |
---|
11 | C |
---|
12 | C Purpose: |
---|
13 | C ------- |
---|
14 | C Interpolate with a nearest neighbor method |
---|
15 | C |
---|
16 | C** Interface: |
---|
17 | C --------- |
---|
18 | C *CALL* *nagsst(pflda, kmska, kvmska, kngxa, kngya, |
---|
19 | C prbtoa, kbtoa, kwbtoa, |
---|
20 | C pfldb, kngxb, kngyb)* |
---|
21 | C |
---|
22 | C Input: |
---|
23 | C ----- |
---|
24 | C kmska : mask for target grid (integer 2D) |
---|
25 | C kvmska : the value of the mask for target grid |
---|
26 | C kngxa : number of longitudes for target grid |
---|
27 | C kngya : number of latitudes for target grid |
---|
28 | C prbtoa : weights for Anaisg interpolation (real 2D) |
---|
29 | C kbtoa : source grid neighbors adresses (integer 2D) |
---|
30 | C kwbtoa : maximum number of nearest neighbors |
---|
31 | C pfldb : field on source grid (real 2D) |
---|
32 | C kngxb : number of longitudes for source grid |
---|
33 | C kngyb : number of latitudes for source grid |
---|
34 | C |
---|
35 | C Output: |
---|
36 | C ------ |
---|
37 | C pflda: field on target grid (real 2D) |
---|
38 | C |
---|
39 | C Workspace: |
---|
40 | C --------- |
---|
41 | C None |
---|
42 | C |
---|
43 | C External: |
---|
44 | C -------- |
---|
45 | C qlsst |
---|
46 | C |
---|
47 | C References: |
---|
48 | C ---------- |
---|
49 | C O. Thual, Simple ocean-atmosphere interpolation. |
---|
50 | C Part A: The method, EPICOA 0629 (1992) |
---|
51 | C Part B: Software implementation, EPICOA 0630 (1992) |
---|
52 | C See also OASIS manual (1995) |
---|
53 | C |
---|
54 | C History: |
---|
55 | C ------- |
---|
56 | C Version Programmer Date Description |
---|
57 | C ------- ---------- ---- ----------- |
---|
58 | C 1.1 O. Thual 93/04/15 created |
---|
59 | C 2.0 L. Terray 95/10/01 modified: new structure |
---|
60 | C 2.3 S. Valcke 99/04/30 added: printing levels |
---|
61 | C |
---|
62 | C %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
63 | C |
---|
64 | C* ---------------------------- Include files --------------------------- |
---|
65 | C |
---|
66 | USE mod_kinds_oasis |
---|
67 | USE mod_unit |
---|
68 | USE mod_printing |
---|
69 | C |
---|
70 | C* ---------------------------- Argument declarations ------------------- |
---|
71 | C |
---|
72 | REAL (kind=ip_realwp_p) pflda(kngxa,kngya), pfldb(kngxb,kngyb) |
---|
73 | REAL (kind=ip_realwp_p) prbtoa(kwbtoa,kngxb*kngyb) |
---|
74 | INTEGER (kind=ip_intwp_p) kmska(kngxa,kngya), |
---|
75 | $ kbtoa(kwbtoa,kngxb*kngyb) |
---|
76 | C |
---|
77 | C* ---------------------------- Poema verses ---------------------------- |
---|
78 | C |
---|
79 | C %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
80 | C |
---|
81 | C* 1. Initializations and checkings |
---|
82 | C ----------------------------- |
---|
83 | C |
---|
84 | IF (nlogprt .GE. 2) THEN |
---|
85 | WRITE (UNIT = nulou,FMT = *) ' ' |
---|
86 | WRITE (UNIT = nulou,FMT = *) ' ' |
---|
87 | WRITE (UNIT = nulou,FMT = *) |
---|
88 | $ ' ROUTINE nagsst - Level 3' |
---|
89 | WRITE (UNIT = nulou,FMT = *) |
---|
90 | $ ' ************** *******' |
---|
91 | WRITE (UNIT = nulou,FMT = *) ' ' |
---|
92 | WRITE (UNIT = nulou,FMT = *) |
---|
93 | $ ' Does Anais-global interpolation' |
---|
94 | WRITE (UNIT = nulou,FMT = *) ' ' |
---|
95 | WRITE (UNIT = nulou,FMT = *) ' ' |
---|
96 | ENDIF |
---|
97 | C |
---|
98 | C* Define global dimensions |
---|
99 | C |
---|
100 | inga = kngxa * kngya |
---|
101 | ingb = kngxb * kngyb |
---|
102 | C |
---|
103 | C |
---|
104 | C* 2. Interpolation |
---|
105 | C ------------- |
---|
106 | C |
---|
107 | CALL qlsst (pflda, prbtoa, kbtoa, kwbtoa, inga, pfldb, |
---|
108 | $ ingb, kmska, kvmska) |
---|
109 | C |
---|
110 | C |
---|
111 | C* 3. End of routine |
---|
112 | C -------------- |
---|
113 | C |
---|
114 | IF (nlogprt .GE. 2) THEN |
---|
115 | WRITE (UNIT = nulou,FMT = *) ' ' |
---|
116 | WRITE (UNIT = nulou,FMT = *) |
---|
117 | $ ' --------- End of routine nagsst ---------' |
---|
118 | CALL FLUSH (nulou) |
---|
119 | ENDIF |
---|
120 | RETURN |
---|
121 | END |
---|