1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
---|
2 | "http://www.w3.org/TR/REC-html40/loose.dtd"> |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <title>Description of read_netcdf</title> |
---|
6 | <meta name="keywords" content="read_netcdf"> |
---|
7 | <meta name="description" content="'read_netcdf': reads a list of fields and constants in a netcdf file"> |
---|
8 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
9 | <meta name="generator" content="m2html © 2003 Guillaume Flandin"> |
---|
10 | <meta name="robots" content="index, follow"> |
---|
11 | <link type="text/css" rel="stylesheet" href="../../../../m2html.css"> |
---|
12 | </head> |
---|
13 | <body> |
---|
14 | <a name="_top"></a> |
---|
15 | <div><a href="../../../../index.html">Home</a> > <a href="#">coriolis</a> > <a href="#">bigone</a> > <a href="#">PROJETS</a> > <a href="#">UVMAT.new</a> > read_netcdf.m</div> |
---|
16 | |
---|
17 | <!--<table width="100%"><tr><td align="left"><a href="../../../../index.html"><img alt="<" border="0" src="../../../../left.png"> Master index</a></td> |
---|
18 | <td align="right"><a href="index.html">Index for /coriolis/bigone/PROJETS/UVMAT.new <img alt=">" border="0" src="../../../../right.png"></a></td></tr></table>--> |
---|
19 | |
---|
20 | <h1>read_netcdf |
---|
21 | </h1> |
---|
22 | |
---|
23 | <h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../../../../up.png"></a></h2> |
---|
24 | <div class="box"><strong>'read_netcdf': reads a list of fields and constants in a netcdf file</strong></div> |
---|
25 | |
---|
26 | <h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../../../../up.png"></a></h2> |
---|
27 | <div class="box"><strong>function [cte_detect,var_detect,cte_read,var_read,choice,cte2_detect,var2_detect,cte2_read,var2_read]=read_netcdf(filename,cte1,nb1,var1,cte2,nb2,var2,option) </strong></div> |
---|
28 | |
---|
29 | <h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../../../../up.png"></a></h2> |
---|
30 | <div class="fragment"><pre class="comment">'read_netcdf': reads a list of fields and constants in a netcdf file |
---|
31 | ------------------------------------------------------------------ |
---|
32 | [cte_detect,var_detect,cte_read,var_read,choice,cte2_detect,var2_detect,cte2_read,var2_read]=... |
---|
33 | read_netcdf(filename,cte1,nb1,var1,cte2,nb2,var2,option) |
---|
34 | OUTPUT: |
---|
35 | cte_detect: array with the dimension of cte1 or cte2 (option 'or'), =1 if the constant is detected 0 else. |
---|
36 | var_detect: like cte_detect for the variables |
---|
37 | cte_read: list of the values for the constants (global attributes), =0 if not detected |
---|
38 | var_read(ind,:): variable array number ind, the variable #i is determined as var_read(ind(i),:), with ind=cumsum(var_detect); |
---|
39 | choice=1 if the first list is chosen (or with the option 'and'), 2 else. |
---|
40 | cte2_detect,var2_detect, cte2_read,var2_read, second set of v ctes and variables (only with the option 'and') |
---|
41 | |
---|
42 | INPUT: |
---|
43 | filename (netcdf file) |
---|
44 | cte1: cell array listing the constants (global attributes) to read |
---|
45 | nb1: name (string) of the constant in the netcdf file giving the length of var1 (if absent no variable is read) |
---|
46 | var1: list of variables arrays to read with length nb1 |
---|
47 | cte2,nb2,var2: second list of cte and variables (optional) |
---|
48 | option: |
---|
49 | 'first' read only the first field series (default) |
---|
50 | 'or' : read one of them, the first one in priority if it exists |
---|
51 | 'and' : read the two field series |
---|
52 | |
---|
53 | related FUNCTION |
---|
54 | 'varname_generator.m': generates the appropriate list of variables and constants</pre></div> |
---|
55 | |
---|
56 | <!-- crossreference --> |
---|
57 | <h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../../../../up.png"></a></h2> |
---|
58 | This function calls: |
---|
59 | <ul style="list-style-image:url(../../../../matlabicon.gif)"> |
---|
60 | </ul> |
---|
61 | This function is called by: |
---|
62 | <ul style="list-style-image:url(../../../../matlabicon.gif)"> |
---|
63 | <li><a href="RUN_STLIN.html" class="code" title="function RUN_STLIN(filecell_ncA,filecell_ncB,vel_type,file_st,nx_patch,ny_patch,thresh_patch,fileAxml,fileBxml)">RUN_STLIN</a> 'RUN_STLIN': combine velocity fields for stereo PIV</li><li><a href="read_scalar.html" class="code" title="function [A,time,dt,rangx,rangy,vel_type_out,error,pixcmx,pixcmy]=read_scalar(filename,vel_type,scal_type,rgx_in,rgy_in,npxy_in,maskname,transform);">read_scalar</a> 'read_scalar': reads and calculates the vort div or any scalar from a file</li><li><a href="read_vel.html" class="code" title="function [dt,time,pixcmx,pixcmy,vec_X,vec_Y,vec_Z,vec_U,vec_V,vec_W,vec_C,vec_F,fixflag,vel_type_out,error,nb_coord,nb_dim,Civ,CivStage]=read_vel(filename,vel_type,scal_type,vec_X_in,vec_Y_in,vec_Z_in);">read_vel</a> 'read_vel': reads one or two velocity fields and associated parameters from a file or a pair of files.</li><li><a href="series.html" class="code" title="function varargout = series(varargin)">series</a> 'series': master function associated to the GUI series.m for analysis field series</li></ul> |
---|
64 | <!-- crossreference --> |
---|
65 | |
---|
66 | |
---|
67 | |
---|
68 | <hr><address>Generated on Tue 14-Apr-2009 22:21:41 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address> |
---|
69 | </body> |
---|
70 | </html> |
---|