forked from Open-EO/openeo-processes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
is_valid.json
59 lines (59 loc) · 1.72 KB
/
is_valid.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"id": "is_valid",
"summary": "Value is valid data",
"description": "Checks whether the specified value `x` is valid. The following values are considered valid:\n\n* Any finite numerical value (integers and floating-point numbers). The definition of finite numbers follows the [IEEE Standard 754](https://ieeexplore.ieee.org/document/4610935) and excludes the special value `NaN` (not a number).\n* Any other value that is not a no-data value according to ``is_nodata()``. Thus all arrays, objects and strings are valid, regardless of their content.",
"categories": [
"comparison"
],
"parameters": [
{
"name": "x",
"description": "The data to check.",
"schema": {
"description": "Any data type is allowed."
}
}
],
"returns": {
"description": "`true` if the data is valid, otherwise `false`.",
"schema": {
"type": "boolean"
}
},
"examples": [
{
"arguments": {
"x": 1
},
"returns": true
},
{
"arguments": {
"x": "Test"
},
"returns": true
},
{
"arguments": {
"x": null
},
"returns": false
},
{
"arguments": {
"x": [
null,
null
]
},
"returns": true
}
],
"links": [
{
"rel": "about",
"href": "https://ieeexplore.ieee.org/document/4610935",
"title": "IEEE Standard 754-2008 for Floating-Point Arithmetic"
}
]
}