source: lmdz_wrf/trunk/tools/documentation/ncmanage/addVar.html

Last change on this file was 1496, checked in by lfita, 8 years ago

Adding new documentations: addDim', addVar', addvarattr', addvarattrk', `setvar_asciivalues'

File size: 1.2 KB
Line 
1<HTML>
2  <HEAD>
3    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8">
4    <LINK REL="stylesheet" TYPE="text/css" HREF="../PyNCplot.css"/>
5  </HEAD>
6
7  </HEAD>
8  <BODY>
9    <DIV CLASS="valheader">
10      addVar
11    </DIV>
12    <DIV CLASS="valimg">
13      Operation to add a new variable in a file using exisintg dimensions
14    </DIV>
15    <DIV CLASS="valhelp">
16      addVar(values, ncfile, varn)<BR>
17      values= [dnames]|[varattributes]|[kind]<BR>
18      &nbsp;&nbsp;[dnames]: [dimn1],...,[dimnN], ',' list of name of dimensions for the new variable (already existing)<BR>
19      &nbsp;&nbsp;&nbsp;&nbsp;'scalar', for scalar variables<BR>
20      &nbsp;&nbsp;[attributes]: [std_name]@[long_name]@[units], standard name, long name and units of the variable ('!' for spaces)<BR>
21      &nbsp;&nbsp;&nbsp;&nbsp;'None' for no standard attributes<BR>
22      &nbsp;&nbsp;[kind]: type of variable (standard netCDF4/C-like values, 'c', 'i', 'f', 'f8',...)<BR>
23      ncfile= name of the file<BR>
24      varn= name of the new variable
25    </DIV>
26    <DIV CLASS="valins">
27      $ python ${pyHOME}/nc_var.py -o addVar -S 'reg,Lstring|region_name@name!of!the!regions@-|c' -f SouthAm_Climzones.nc -v regionn
28    </DIV>
29  </BODY>
30</HTML>
31
Note: See TracBrowser for help on using the repository browser.