Last change
on this file since 169 was
169,
checked in by pinsard, 15 years ago
|
add compile_opt idl2, strictarrsubs and subsequent modifications
|
-
Property svn:keywords set to
Id
|
File size:
818 bytes
|
Line | |
---|
1 | ;+ |
---|
2 | ; |
---|
3 | ; Depth along isopycnal (computed in bining.pro) |
---|
4 | ; |
---|
5 | ; @version |
---|
6 | ; $Id$ |
---|
7 | ; |
---|
8 | ;- |
---|
9 | FUNCTION make_depth, file_name, ncdf_db $ |
---|
10 | , BOXZOOM=boxzoom $ |
---|
11 | , TIME_1=time_1 $ |
---|
12 | , TIME_2=time_2 $ |
---|
13 | , ALL_DATA=all_data $ |
---|
14 | , ZMTYP=zmtyp $ |
---|
15 | , _EXTRA=extra |
---|
16 | ; |
---|
17 | compile_opt idl2, strictarrsubs |
---|
18 | ; |
---|
19 | @common |
---|
20 | @com_eg |
---|
21 | ; |
---|
22 | IF splot NE 1 THEN BEGIN |
---|
23 | print, ' WARNING @@vodepth/@@vosigvol requires density projection !' |
---|
24 | return, -1 |
---|
25 | ENDIF |
---|
26 | |
---|
27 | ; declarations |
---|
28 | ; |
---|
29 | fieldr = {name: '', data: fltarr(jpi, jpj, jpk), legend: '', units: '', origin: '', dim: 0, direc:''} |
---|
30 | |
---|
31 | IF strpos(ncdf_db, ':') GE 1 THEN directory = (strsplit(ncdf_db, ':', /EXTRACT))[1] $ |
---|
32 | ELSE directory = ncdf_db |
---|
33 | |
---|
34 | fieldr.origin = directory+file_name |
---|
35 | fieldr.dim = 3 |
---|
36 | fieldr.direc = 'xys' |
---|
37 | |
---|
38 | return, fieldr |
---|
39 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.