source: lmdz_wrf/trunk/tools/documentation/ncmanage/maskvar.html @ 1494

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

Adding new `maskvar'

File size: 1.7 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      maskvar
11    </DIV>
12    <DIV CLASS="valimg">
13      Function to mask a variable using another variable to mask it. Only need to share at least 1 dimension with the same size (no need same name)
14    </DIV>
15    <DIV CLASS="valhelp">
16    maskvar(values, filename, varparameters) <BR>
17    values= [maskfilename]:[maskvarn]:[dimsmask]:[timename] <BR>
18    &nbsp;&nbsp;  [maskfilename]= file with the mask <BR>
19    &nbsp;&nbsp;  [maskvarn]= name of the variable with the mask <BR>
20    &nbsp;&nbsp;  [dimsmask]= ',' list of [dimn]|[sec] to use for slicing [maskvar] <BR>
21    &nbsp;&nbsp;&nbsp;&nbsp;    [sec]: section <BR>
22    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      * [integer]: which value of the dimension <BR>
23    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      * -1: all along the dimension <BR>
24    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      * -9: last value of the dimension <BR>
25    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      * [beg]@[end]@[frq] slice from [beg] to [end] every [frq] <BR>
26    &nbsp;&nbsp;&nbsp;&nbsp;    * NOTE: no value provided is for all dimension range <BR>
27    &nbsp;&nbsp;  [maskvalue]= value to use for maskking <BR>
28    filename= netCF file name <BR>
29    varparameters= [varn]|[dimsmask] <BR>
30    &nbsp;&nbsp;  [varn]: variable name <BR>
31    &nbsp;&nbsp;  [samedimsmask]: ',' list of name of dimensions which fits [maskvarn] slice <BR>
32    </DIV>
33    <DIV CLASS="valins">
34      $ python ${pyHOME}/nc_var.py -o maskvar -f SouthAm_Climzones_masked.nc -S 'geo_em.d01.nc:LANDMASK:Time|0:0' -v region:lon,lat
35    </DIV>
36  </BODY>
37</HTML>
38
Note: See TracBrowser for help on using the repository browser.