Last change
on this file since 1535 was
1496,
checked in by lfita, 8 years ago
|
Adding new documentations: addDim', addVar', addvarattr', addvarattrk', `setvar_asciivalues'
|
File size:
1.2 KB
|
Rev | Line | |
---|
[1496] | 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 | [dnames]: [dimn1],...,[dimnN], ',' list of name of dimensions for the new variable (already existing)<BR> |
---|
| 19 | 'scalar', for scalar variables<BR> |
---|
| 20 | [attributes]: [std_name]@[long_name]@[units], standard name, long name and units of the variable ('!' for spaces)<BR> |
---|
| 21 | 'None' for no standard attributes<BR> |
---|
| 22 | [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.