Warning: Undefined array key 1 in /home/np29546/public_html/elmerice/wiki/inc/auth.php on line 78

Warning: Cannot modify header information - headers already sent by (output started at /home/np29546/public_html/elmerice/wiki/inc/auth.php:78) in /home/np29546/public_html/elmerice/wiki/inc/auth.php on line 431

Warning: Cannot modify header information - headers already sent by (output started at /home/np29546/public_html/elmerice/wiki/inc/auth.php:78) in /home/np29546/public_html/elmerice/wiki/inc/actions.php on line 38
solvers:grid2dinterpolator [Elmer/Ice Wiki]

Warning: Undefined array key -1 in /home/np29546/public_html/elmerice/wiki/inc/html.php on line 1458

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
solvers:grid2dinterpolator [2013/04/26 18:42]
gag [SIF contents]
solvers:grid2dinterpolator [2016/05/16 08:39] (current)
tzwinger [General Description]
Line 4: Line 4:
 ==== General Description ==== ==== General Description ====
  
-This solver interpolates data given on a regular 2D regular grid in an ASCII file (x y Value). A bilinear interpolation is used. The data in the ASCII file have to be ordered such that   +This solver interpolates data given on a regular 2D grid in an ASCII file (x y Value). A bilinear interpolation is used. By default, the data in the ASCII file have to be ordered such that   
 <code> <code>
   x1 y1 val11   x1 y1 val11
Line 12: Line 12:
   x1 y2 val12   x1 y2 val12
   ...   ...
-  xn yn valnn +  xn ym valnm 
 </code> </code>
 +
 +If the second column (the y-value) is changing faster, i.e.,
 +<code>
 +  x1 y1 val11
 +  x1 y2 val12
 +  ...
 +  x1 ym val1m 
 +  ...
 +  xn y1 valn1
 +  xn y2 valn2
 +  ...
 +  xn ym valnm 
 +</code>
 +
 + one can give the keyword
 +<code>
 + Variable 1 Invert = Logical True
 +</code>
 +
 +In any case, it is essential, that the order ''(x1 < x2 < x3 < ... < xn)'' as well as ''(y1 < y2 < y3 < ... < ym)'' applies.
 +
 +Further, if there are those points with no-data simply missing from the file (saves space), the keyword
 +<code>
 + Variable 1 Fill = Logical True
 +</code>
 +will insert either the default no-data value or the one given with the ''Variable 1 No Data'' value at the missing coordinates. Mind, that if this keyword is either ''False'' or not given, any missing entry will stop the routine.
  
 The grid is described by giving: The grid is described by giving:
   * (x0, y0) the left-bottom corner coordinate   * (x0, y0) the left-bottom corner coordinate
   * (lx, ly) the x and y lengths of the covered domain   * (lx, ly) the x and y lengths of the covered domain
-  * (Nx, Ny) the number of cells in x and y directions  +  * (Nx, Ny) the number of levels in x and y directions (n,m in the tables above) 
-  * No data are given by -9999+  * Cells with no data are identified by value (within a given tolerance) 
 + 
 +WARNING: All data with values between (noData tol) and (noData + tol) will be ignored (where noData and tol are the no data value and tolerance, see below).  In the case a node fails in a cell of the DEM containing no data, the nodal value is assigned to the closest DEM value. This robust feature might be dangerous if too many nodes are outside of the DEM domain. The solver gives the number of nodes outside of the DEM domain and the farthest DEM point used to evaluate the nodal values.   
  
 ==== SIF contents ==== ==== SIF contents ====
Line 37: Line 65:
   Variable 1 Nx = Integer 268   Variable 1 Nx = Integer 268
   Variable 1 Ny = Integer 118   Variable 1 Ny = Integer 118
 +  Variable 1 no data = Real -999.0
 +  Variable 1 no data tol = Real 0.1
  
   Variable 2 = String "bedrockDEM"   Variable 2 = String "bedrockDEM"
Line 48: Line 78:
 End End
 </code> </code>
 +
 +Note that the "no data" and "no data tol" keywords are optional for each variable.  If these keywords are not given in the sif file the no data value defaults to -9999.0 and the tolerance to 0.001.
  
 The variables ''bedrockDEM'' and ''ZsDEM'' have to exported from an other solver The variables ''bedrockDEM'' and ''ZsDEM'' have to exported from an other solver
Line 73: Line 105:
 </code> </code>
  
 +==== SIF contents ==== 
 +An example using the Tete Rousse surface and bedrock DEM can be found in ''[ELMER_TRUNK]/elmerice/Tests/Grid2DInterpolator''
solvers/grid2dinterpolator.1367001731.txt.gz · Last modified: 2013/04/26 18:42 by gag
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0