source: trunk/procs/macros/make_denflw.pro @ 203

Last change on this file since 203 was 203, checked in by pinsard, 14 years ago

remove trailing blanks

  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1;+
2;
3;
4; @param FILE_NAME {in}{required}{type=string}
5;
6; @param NCDF_DB {in}{required}{type=string}
7; <location>:<path> or just <path>
8;
9; @keyword BOXZOOM
10;
11; @keyword TIME_1
12;
13; @keyword TIME_2
14;
15; @keyword ALL_DATA
16;
17; @keyword ZMTYP
18;
19; @returns
20; structure
21; -1 in case of error
22;
23; @uses
24; <pro>common</pro>
25; <propost_it>com_eg</propost_it>
26; <propost_it>make_transfo</propost_it>
27;
28; @history
29; - fplod 20100119T094252Z aedon.locean-ipsl.upmc.fr (Darwin)
30;
31;   * check parameters
32;
33; @version
34; $Id$
35;
36;-
37FUNCTION make_denflw, file_name, ncdf_db $
38         , BOXZOOM=boxzoom $
39         , TIME_1=time_1 $
40         , TIME_2=time_2 $
41         , ALL_DATA=all_data $
42         , ZMTYP=zmtyp
43;
44  compile_opt idl2, strictarrsubs
45;
46@common
47@com_eg
48;
49 usage='result=make_denflw(file_name, ncdf_db ' $
50         + ', BOXZOOM=boxzoom ' $
51         + ', TIME_1=time_1 ' $
52         + ', TIME_2=time_2 ' $
53         + ', ALL_DATA=all_data ' $
54         + ', ZMTYP=zmtyp)'
55
56 nparam = N_PARAMS()
57 IF (nparam LT 2) THEN BEGIN
58    ras = report(['Incorrect number of arguments.' $
59          + '!C' $
60          + 'Usage : ' + usage])
61    return, -1
62 ENDIF
63
64 arg_type = size(file_name,/type)
65 IF (arg_type NE 7) THEN BEGIN
66   ras = report(['Incorrect arg type file_name' $
67          + '!C' $
68          + 'Usage : ' + usage])
69   return, -1
70 ENDIF
71
72 arg_type = size(ncdf_db,/type)
73 IF (arg_type NE 7) THEN BEGIN
74   ras = report(['Incorrect arg type ncdf_db' $
75          + '!C' $
76          + 'Usage : ' + usage])
77   return, -1
78 ENDIF
79
80   denflx = make_transfo(file_name, ncdf_db,'denflw', BOXZOOM = boxzoom, TIME_1 = time_1, TIME_2 = time_2, ALL_DATA = all_data, ZMTYP = zmtyp)
81
82; output
83
84   field = {name: '', data: denflx, legend: '', units: '', origin: '', dim: 0, direc: ''}
85
86   field.origin = 'computed'
87   field.dim = 2
88   IF jpt EQ 1 THEN field.direc = 'xy' ELSE field.direc = 'xyt'
89
90   return, field
91END
Note: See TracBrowser for help on using the repository browser.