source: trunk/SRC/Documentation/idldoc_assistant_output/ToBeReviewed/LECTURE/read_ncdf.html @ 242

Last change on this file since 242 was 242, checked in by pinsard, 17 years ago

improvements/corrections of some *.pro headers + replace some message by some report

File size: 11.0 KB
Line 
1
2
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4  <head>
5    <title>read_ncdf.pro (SAXO Documentation Assistant)</title>
6  </head>
7
8  <body text="#000000" bgcolor="#FFFFFF">
9
10   
11<!-- Navbar template takes a structure with the following fields:
12       overview_href :
13       overview_selected :
14       dir_overview_href :
15       dir_overview_selected :
16       categories_href :
17       categories_selected :
18       index_href :
19       index_selected :
20       search_href :
21       search_selected :
22       file_selected :
23       source_href :
24       source_selected :
25       help_href :
26       help_selected :
27       etc_selected :
28
29       prev_file_href :
30       next_file_href :
31
32       view_single_page_href :
33       view_frames_href :
34
35       summary_fields_href :
36       summary_routine_href :
37       details_routine_href :
38
39       title :
40       subtitle :
41       user :
42-->
43
44
45<table border="0" cellpadding="0" cellspacing="0" width="98%" bgcolor="#F0F0FF" valign="bottom">
46  <tr>
47    <td width="10%">
48<a href="read_ftp.html"><img src="./../../prev.gif" border="0" alt="Previous"></a></td>
49    <td width="80%" align="center" valign="center">
50<font size=-1><i>SAXO Documentation Assistant</i>: <a href="./../../home.html">Overview</a></font></td>
51    <td width="10%" align="right">
52<a href="read_ncdf_varget.html"><img src="./../../next.gif" border="0" alt="Next"></a></td>
53  </tr>
54</table>
55
56
57    <h1><font size="-2">ToBeReviewed/LECTURE/</font></h1>
58    <h2>read_ncdf.pro</h2>
59
60    <dl>
61    </dl>
62
63   
64 Reading function for the file net_cdf.
65 This program is less universal than ncdf_lec (it appeal to declared
66 variables in common.pro) but it is very easier to be used. It considerate
67 the declaration of the different zooms which have been defined
68 (ixminmesh...premierx...), the declaration of the variable key_shift...
69 To put it in a nutshell, the result of read_ncdf can be directly used in plt...
70 This is also this program which is used by default in our reading widgets.
71
72
73   
74
75     
76      <a name="#_read_ncdf"></a>
77
78      <h2>read_ncdf  <font size="-1" color="#006633">
79 Reading
80</font></h2>
81
82      <p><font face="Courier"><i>result = </i>read_ncdf(<i><a href="#_read_ncdf_keyword_name">name</a>, <a href="#_read_ncdf_keyword_beginning">beginning</a>, <a href="#_read_ncdf_keyword_ending">ending</a>[, <a href="#_read_ncdf_keyword_compatibility">compatibility</a>]</i>, <a href="#_read_ncdf_keyword_BOXZOOM">BOXZOOM</a>=<i>BOXZOOM</i>, <a href="#_read_ncdf_keyword_FILENAME">FILENAME</a>=<i>string</i>, <a href="#_read_ncdf_keyword_PARENTIN">PARENTIN</a>=<i>PARENTIN</i>, <a href="#_read_ncdf_keyword_TIMESTEP">TIMESTEP</a>=<i>scalar: 0 or 1</i>, <a href="#_read_ncdf_keyword_TIMEVAR">TIMEVAR</a>=<i>string</i>, <a href="#_read_ncdf_keyword_TOUT">TOUT</a>=<i>scalar: 0 or 1</i>, <a href="#_read_ncdf_keyword_NOSTRUCT">NOSTRUCT</a>=<i>scalar: 0 or 1</i>, <a href="#_read_ncdf_keyword_CONT_NOFILL">CONT_NOFILL</a>=<i>CONT_NOFILL</i>, <a href="#_read_ncdf_keyword_INIT">INIT</a>=<i>scalar: 0 or 1</i>, <a href="#_read_ncdf_keyword_GRID">GRID</a>=<i>GRID</i>, <a href="#_read_ncdf_keyword_CALLITSELF">CALLITSELF</a>=<i>scalar: 0 or 1</i>, <a href="#_read_ncdf_keyword_ZETAFILENAME">ZETAFILENAME</a>=<i>string</i>, <a href="#_read_ncdf_keyword_ZETAZERO">ZETAZERO</a>=<i>scalar: 0 or 1</i>, <a href="#_read_ncdf_keyword__EXTRA">_EXTRA</a>=<i>_EXTRA</i>)</font></p>
83
84   
85
86
87    <h3>Return value</h3>
88 Structure readable by <a href=".//litchamp.html">litchamp</a> or an array if NOSTRUCT is activated.
89
90
91   
92    <h3>Parameters</h3>
93   
94
95    <a name="#_read_ncdf_keyword_name"></a>
96    <h4>name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
97      <font size="-1" color="#006633">in</font>
98     
99     
100      <font size="-1" color="#006633">required</font>
101     
102      <font size="-1" color="#006633">type:</font> <font size="-1" color="#006633"><i>string</i></font>
103     
104     
105    </h4>
106
107   
108 It define the field to be read.
109
110   
111
112    <a name="#_read_ncdf_keyword_beginning"></a>
113    <h4>beginning&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
114      <font size="-1" color="#006633">in</font>
115     
116     
117      <font size="-1" color="#006633">required</font>
118     
119     
120     
121     
122    </h4>
123
124   
125 Relative with the time axis.
126 These can be
127  - 2 date of the  type yyyymmdd and in this case, we select dates
128  which are included between these two dates.
129  - 2 indexes which define between which and which time step we have
130  to extract the temporal dimension.
131
132   
133
134    <a name="#_read_ncdf_keyword_ending"></a>
135    <h4>ending&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
136      <font size="-1" color="#006633">in</font>
137     
138     
139      <font size="-1" color="#006633">required</font>
140     
141     
142     
143     
144    </h4>
145
146   
147 Relative with the time axis.
148 See BEGINNING.
149
150   
151
152    <a name="#_read_ncdf_keyword_compatibility"></a>
153    <h4>compatibility&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
154      <font size="-1" color="#006633">in</font>
155     
156      <font size="-1" color="#006633">optional</font>
157     
158     
159     
160     
161     
162    </h4>
163
164   
165 Useless, defined for compatibility
166
167   
168   
169
170   
171    <h3>Keywords</h3>
172
173   
174    <a name="#_read_ncdf_keyword_BOXZOOM"></a>
175    <h4>BOXZOOM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
176     
177     
178     
179     
180     
181     
182     
183     
184    </h4>
185
186   
187 Contain the boxzoom on which we have to do the reading
188
189   
190    <a name="#_read_ncdf_keyword_FILENAME"></a>
191    <h4>FILENAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
192     
193     
194     
195      <font size="-1" color="#006633">required</font>
196     
197      <font size="-1" color="#006633">type:</font> <font size="-1" color="#006633"><i>string</i></font>
198     
199     
200    </h4>
201
202   
203 It contains he file's name.
204
205   
206    <a name="#_read_ncdf_keyword_PARENTIN"></a>
207    <h4>PARENTIN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
208     
209     
210     
211     
212     
213     
214     
215     
216    </h4>
217
218   
219   
220    <a name="#_read_ncdf_keyword_TIMESTEP"></a>
221    <h4>TIMESTEP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
222     
223     
224     
225     
226     
227      <font size="-1" color="#006633">type:</font> <font size="-1" color="#006633"><i>scalar: 0 or 1</i></font>
228      <font size="-1" color="#006633">default:</font> <font size="-1" color="#006633"><i>0</i></font>
229     
230    </h4>
231
232   
233 Specify that BEGINNING and ENDING refer to indexes of the time axis and not to dates
234
235   
236    <a name="#_read_ncdf_keyword_TIMEVAR"></a>
237    <h4>TIMEVAR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
238     
239     
240     
241     
242     
243      <font size="-1" color="#006633">type:</font> <font size="-1" color="#006633"><i>string</i></font>
244     
245     
246    </h4>
247
248   
249 It define the name of the variable that
250 contains the time axis. This keyword can be useful if there
251 is no unlimited dimension or if the time axis selected by default
252 (the first 1D array with unlimited dimension) is not the good one.
253
254   
255    <a name="#_read_ncdf_keyword_TOUT"></a>
256    <h4>TOUT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
257     
258     
259     
260     
261     
262      <font size="-1" color="#006633">type:</font> <font size="-1" color="#006633"><i>scalar: 0 or 1</i></font>
263      <font size="-1" color="#006633">default:</font> <font size="-1" color="#006633"><i>0</i></font>
264     
265    </h4>
266
267   
268 We activate it if we want to read the file on the whole domain without
269 considerate the sub-domain defined by the boxzoom or
270 lon1,lon2,lat1,lat2,vert1,vert2.
271
272   
273    <a name="#_read_ncdf_keyword_NOSTRUCT"></a>
274    <h4>NOSTRUCT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
275     
276     
277     
278     
279     
280      <font size="-1" color="#006633">type:</font> <font size="-1" color="#006633"><i>scalar: 0 or 1</i></font>
281      <font size="-1" color="#006633">default:</font> <font size="-1" color="#006633"><i>0</i></font>
282     
283    </h4>
284
285   
286 We activate it if we do not want that read_ncdf send back a structure
287 but only the array referring to the field.
288
289   
290    <a name="#_read_ncdf_keyword_CONT_NOFILL"></a>
291    <h4>CONT_NOFILL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
292     
293     
294     
295     
296     
297     
298     
299     
300    </h4>
301
302   
303   
304    <a name="#_read_ncdf_keyword_INIT"></a>
305    <h4>INIT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
306     
307     
308     
309     
310     
311      <font size="-1" color="#006633">type:</font> <font size="-1" color="#006633"><i>scalar: 0 or 1</i></font>
312      <font size="-1" color="#006633">default:</font> <font size="-1" color="#006633"><i>0</i></font>
313     
314    </h4>
315
316   
317 To call automatically initncdf, filename and thus
318 redefine all the grid parameters
319
320   
321    <a name="#_read_ncdf_keyword_GRID"></a>
322    <h4>GRID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
323     
324     
325     
326     
327     
328     
329     
330     
331    </h4>
332
333   
334 ='[UTVWF]' to specify the type of grid. Default is (1)
335 based on the name of the file if the file ends by
336 GRID[._][TUVFW].NC (not case sensible) or (2) T if case (1)
337 is not found.
338
339   
340    <a name="#_read_ncdf_keyword_CALLITSELF"></a>
341    <h4>CALLITSELF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
342     
343     
344     
345     
346     
347      <font size="-1" color="#006633">type:</font> <font size="-1" color="#006633"><i>scalar: 0 or 1</i></font>
348      <font size="-1" color="#006633">default:</font> <font size="-1" color="#006633"><i>0</i></font>
349     
350    </h4>
351
352   
353 For ROMS outputs. Use by read_ncdf itself to access auxilliary data (h and zeta).
354
355   
356    <a name="#_read_ncdf_keyword_ZETAFILENAME"></a>
357    <h4>ZETAFILENAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
358     
359     
360     
361     
362     
363      <font size="-1" color="#006633">type:</font> <font size="-1" color="#006633"><i>string</i></font>
364      <font size="-1" color="#006633">default:</font> <font size="-1" color="#006633"><i>FILENAME</i></font>
365     
366    </h4>
367
368   
369 For ROMS outputs. The filename of the file where zeta variable should be read
370
371   
372    <a name="#_read_ncdf_keyword_ZETAZERO"></a>
373    <h4>ZETAZERO&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
374     
375     
376     
377     
378     
379      <font size="-1" color="#006633">type:</font> <font size="-1" color="#006633"><i>scalar: 0 or 1</i></font>
380      <font size="-1" color="#006633">default:</font> <font size="-1" color="#006633"><i>0</i></font>
381     
382    </h4>
383
384   
385 For ROMS outputs. To define zeta to 0. instead of reading it
386
387   
388    <a name="#_read_ncdf_keyword__EXTRA"></a>
389    <h4>_EXTRA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
390     
391     
392     
393     
394     
395     
396     
397     
398    </h4>
399
400   
401 Used to pass keywords
402
403   
404   
405
406   
407    </pre><h3>Version history</h3>
408   
409    <h4>Version</h4>
410 $Id: read_ncdf.pro 240 2007-03-28 12:17:24Z pinsard $
411    <h4>History</h4>
412 Sebastien Masson (smasson@lodyc.jussieu.fr)
413                      15/10/1999
414
415   
416
417    <h3>Known issues</h3>
418   
419   
420   
421    <h4>Restrictions</h4>
422 The field must have a temporal dimension.
423
424
425    <h3>Other attributes</h3>
426   
427   
428    <h4>Uses routines</h4>
429 common.pro
430
431   
432   
433   
434
435    <font size="-3"><p>&nbsp;</p></font>
436    <hr size="1" color="#CCCCCC"/>
437     
438
439   
440
441    <p><font color="gray" size="-3">&nbsp;&nbsp;Produced by IDLdoc 2.0.</font></p>
442
443  </body>
444</html>
Note: See TracBrowser for help on using the repository browser.