Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update patchs.rst #354

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 24 additions & 35 deletions doc/functions/patchs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -177,39 +177,6 @@ each point in the patch.
{"pcid":1,"pt":[-126.41,45.59,59,5]} | 7


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PC_PatchAvg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

:PC_PatchAvg(p pcpatch, dimname text) returns numeric:

Reads the values of the requested dimension for all points in the patch and
returns the average of those values. Dimension name must exist in the schema.

.. code-block::

SELECT PC_PatchAvg(pa, 'intensity')
FROM patches WHERE id = 7;

5.0000000000000000


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PC_PatchMax
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

:PC_PatchMax(p pcpatch, dimname text) returns numeric:

Reads the values of the requested dimension for all points in the patch and
returns the maximum of those values. Dimension name must exist in the schema.

.. code-block::

SELECT PC_PatchMax(pa, 'x')
FROM patches WHERE id = 7;

-126.41

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PC_PatchMin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -241,6 +208,18 @@ Returns a PcPoint with the minimum values of each dimension in the patch.
PC_PatchAvg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

:PC_PatchAvg(p pcpatch, dimname text) returns numeric:

Reads the values of the requested dimension for all points in the patch and
returns the average of those values. Dimension name must exist in the schema.

.. code-block::

SELECT PC_PatchAvg(pa, 'intensity')
FROM patches WHERE id = 7;

5.0000000000000000

:PC_PatchAvg(p pcpatch) returns pcpoint:

Returns a PcPoint with the average values of each dimension in the patch.
Expand All @@ -256,6 +235,18 @@ Returns a PcPoint with the average values of each dimension in the patch.
PC_PatchMax
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

:PC_PatchMax(p pcpatch, dimname text) returns numeric:

Reads the values of the requested dimension for all points in the patch and
returns the maximum of those values. Dimension name must exist in the schema.

.. code-block::

SELECT PC_PatchMax(pa, 'x')
FROM patches WHERE id = 7;

-126.41

:PC_PatchMax(p pcpatch) returns pcpoint:

Returns a PcPoint with the maximum values of each dimension in the patch.
Expand All @@ -267,7 +258,6 @@ Returns a PcPoint with the maximum values of each dimension in the patch.

{"pcid":1,"pt":[-126.41,45.59,59,5]}


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PC_FilterGreaterThan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand All @@ -284,7 +274,6 @@ value for the requested dimension.

{"pcid":1,"pts":[[-126.42,45.58,58,5],[-126.41,45.59,59,5]]}


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PC_FilterLessThan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down