Ugrid restrict: Difference between revisions

From OPeNDAP Documentation
⧼opendap2-jumptonavigation⧽
Line 10: Line 10:


ugrid_restrict(0,"nodedata>0.0")
ugrid_restrict(0,"nodedata>0.0")
ugrid_restrict(0,"X>-68.0&X<0&Y>41.5&Y<42.78&nodedata>0.0&nodedata<500")
ugrid_restrict(0,"X>-68.0&X<0&Y>41.5&Y<42.78&nodedata>0.0&nodedata<500")



Revision as of 03:17, 9 August 2012

ugrid_restrict

ugrid_restrict is a function creates a grid object out of an input grid according to to an input restriction constraint. At this time the input grid is assumed to be an unstructured grid made up of counter-clockwise oriented triangles.

Input Arguments

Calls to the function take the formugrid_restrict(int dim,string constraint). The first input must be an integer that denotes the dimension which will be restricted. For example setting dim to be 0 would indicate the restriction will occur on nodes.The second input is a string which describes the constraint that should be enforced.


Some examples:

ugrid_restrict(0,"nodedata>0.0")


ugrid_restrict(0,"X>-68.0&X<0&Y>41.5&Y<42.78&nodedata>0.0&nodedata<500")


The first call is pretty basic. This call is restricting the mesh to the nodes such that nodedata (some array bound to the nodes) is greater than 0. You can also have much more complicated constraints: The second call actually combines 6 constraints.

Definitions

Background

Design

Deliverables

Period of use