source: trunk/INTERP2/interp2.pro @ 2

Last change on this file since 2 was 2, checked in by pinsard, 18 years ago

initial import from /usr/work/fvi/OPA/geomag/

File size: 1.6 KB
Line 
1;------------------------------------------------------------
2;------------------------------------------------------------
3;------------------------------------------------------------
4;
5; NAME: interp2.pro
6;
7; PURPOSE: Enables interpolation from a given ORCA grid to its
8; closest geographical equivalent grid
9;
10; CATEGORY : Subroutine
11;
12; CALLING SEQUENCE : interp2
13;
14; INPUTS :
15;         A full ORCA grid file + a 1D or 2D field on this grid
16; OUTPUTS :
17;        - A grid file for the geographical equivalent to the given
18;         ORCA grid   
19;        - The interpolated field on this new grid + the weights and
20;          pointers required to creat it.
21;
22; COMMON BLOCKS:
23;
24;         None
25;
26; SIDE EFFECTS:
27;
28; RESTRICTIONS: REQUIRES SAXO TOOL
29;
30; EXAMPLE:
31;
32; MODIFICATION HISTORY: 08/2002 Robinson Hordoir
33;
34;------------------------------------------------------------
35pro interp2
36
37
38
39@initorca
40@naminterp2
41
42
43
44;----------------------------------------------------------
45; GEOGRID COMPUTATION (Grid & Mask)
46;----------------------------------------------------------
47
48
49if geogrid_mesh EQ 0 then begin
50
51     print, 'Geogrid will be calculated, this may take a while, please wait...'
52
53     make_geogrid
54
55endif
56
57;----------------------------------------------------------
58; WEIGHT & POINTER FILE COMPUTATION
59;----------------------------------------------------------
60
61if weight_file EQ 0 then begin
62
63     print, 'Weight file must calculated, this will take quite a while...'
64
65     make_weight
66
67endif
68
69;----------------------------------------------------------
70; Output fields calculation
71;----------------------------------------------------------
72
73     newinterp
74
75
76end
77
78
Note: See TracBrowser for help on using the repository browser.