GfsOutputGRD

From Gerris

(Difference between revisions)
Jump to: navigation, search
Revision as of 03:23, 18 May 2010
Popinet (Talk | contribs)
(added note on nodata_value)
← Previous diff
Revision as of 03:23, 18 May 2010
Popinet (Talk | contribs)

Next diff →
Line 9: Line 9:
The "nodata_value" is set to -9999. This can be used to mask out some of the output. For example exporting only the positive values of the pressure could be written: The "nodata_value" is set to -9999. This can be used to mask out some of the output. For example exporting only the positive values of the pressure could be written:
- [[OutputGRD]] { start = end } end.asc { v = (P > 0 ? P : -9999) }+ [[GfsOutputGRD|OutputGRD]] { start = end } end.asc { v = (P > 0 ? P : -9999) }
Note that this object is only available for 2D simulations. Note that this object is only available for 2D simulations.

Revision as of 03:23, 18 May 2010

OutputGRD writes a raster (or gridded) dataset using the ESRI grid ASCII format. This is typically used to import 2D fields into a GIS application.

The syntax in parameter files is:

[ GfsOutputScalar ]

By default the grid "pixels" are the square cells at the highest level of refinement. The level of the cells taken into account can be controlled using the maxlevel option of GfsOutputScalar. Setting maxlevel can also be useful to control the size (in grid points) of the file produced: when maxlevel is set the size of the grid will always be a multiple (depending on the number of boxes in the computation domain) of 2^maxlevel. This holds even when the number of levels in the simulation changes due to adaptive refinement.

The "nodata_value" is set to -9999. This can be used to mask out some of the output. For example exporting only the positive values of the pressure could be written:

OutputGRD { start = end } end.asc { v = (P > 0 ? P : -9999) }

Note that this object is only available for 2D simulations.

Note also that this object has not been "parallelised" yet.


Personal tools
communication