Ugrid restrict: Difference between revisions

From OPeNDAP Documentation
⧼opendap2-jumptonavigation⧽
(Created page with "= 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...")
 
Line 3: Line 3:


== Input Arguments ==
== Input Arguments ==
Calls to the function take the form ugrid_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.
Calls to the function take the form:ugrid_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")
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:
ugrid_restrict(0,"X>-68.0&X<0&Y>41.5&Y<42.78&nodedata>0.0&nodedata<500")


== Definitions ==
== Definitions ==

Revision as of 03:11, 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 form:ugrid_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") 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: ugrid_restrict(0,"X>-68.0&X<0&Y>41.5&Y<42.78&nodedata>0.0&nodedata<500")

Definitions

Background

Design

Deliverables

Period of use