| 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 | DataSetSection_multivars |
|---|
| 11 | </DIV> |
|---|
| 12 | <DIV CLASS="valimg"> |
|---|
| 13 | Function to get a section (values along multiple variables) of a given data-set |
|---|
| 14 | </DIV> |
|---|
| 15 | <DIV CLASS="valhelp"> |
|---|
| 16 | DataSetSection_multivars(values, filen, varn)<BR> |
|---|
| 17 | values= [varn1],[beg1],[end1],[int1]@[...[[varnM],[begM],[endM],[intM]]]<BR> |
|---|
| 18 | [varni]: name of the variable with exception of:<BR> |
|---|
| 19 | 'dist;[var1],[val1]|[...,[varN],val2]] distance computed from sqrt[sum_i([vari]-[vali])^2)]<BR> |
|---|
| 20 | variables have to be of the same shape and share dimensions<BR> |
|---|
| 21 | [begi],[endi],[inti]: beginning, end and interval along the variable<BR> |
|---|
| 22 | [endi] = -1, maximum value<BR> |
|---|
| 23 | [inti] = -1, all the values within the range (default)<BR> |
|---|
| 24 | = 0, single value. [begi] will be taken as the reference value<BR> |
|---|
| 25 | NOTE: variables without section by the variables are taken allover their size<BR> |
|---|
| 26 | NOTE2: if inti = 'str', it is assumed that the variable is a string-list of values<BR> |
|---|
| 27 | then [begi] must be the string to be used for the search ('!', for spaces)<BR> |
|---|
| 28 | filen= netCDF with the data-set<BR> |
|---|
| 29 | varn= ',' list of variables ('all', for all variables)<BR> |
|---|
| 30 | </DIV> |
|---|
| 31 | <DIV CLASS="valins"> |
|---|
| 32 | $ python ${pyHOME}/nc_var.py -o DataSetSection_multivars -S 'dist;XLONG,-65.25|XLAT,-8.@Times,1995-01-01_00:00:00,1995-01-03_00:00:00,str' -f ~/PY/wrfout_d01_1995-01-01_00\:00\:00 -v HGT,T2,QVAPOR |
|---|
| 33 | $ python ${pyHOME}/nc_var.py -o DataSetSection_multivars -f WFD-land-lat-long-z.nc -S 'dist;Longitude,-65.25|Latitude,-8.25' -v all |
|---|
| 34 | </DIV> |
|---|
| 35 | </BODY> |
|---|
| 36 | </HTML> |
|---|
| 37 | |
|---|