Opened 12 years ago
Closed 11 years ago
#346 closed enhancement (fixed)
use of case - when statement (sequential evaluation) for dealing with no-data in log() expressions
Reported by: | Owned by: | Vlad Merticariu | |
---|---|---|---|
Priority: | major | Milestone: | 8.5.1 |
Component: | petascope | Version: | 8.4 |
Keywords: | wcps | Cc: | Peter Baumann |
Complexity: | Hard |
Description
As discussed in the meeting in Vienna, the need fro sequential evaluation has become a priority for users with no-data values they wish to exclude from the built-in log() function.
The currently proposed way (below) fails due to the log expression being evaluated before the masking of the scalar expression
for c in (myocean_test)
return
encode (
(c[t(4)] = -999)* (-999)
+ (c[t(4)] != -999)*log(c[t(4)]),
"png" )
The future proposed method includes the use of the proposed case-when statement, which has been proposed for the WCPS 2.0 standard
for c in (myocean_test)
return
encode (
case
when (c[t(4)] != -999 then log(c[t(4)])
else -999
end,
"png" )
Change History (7)
comment:1 by , 12 years ago
Component: | DEB → petascope |
---|---|
Milestone: | → Future |
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 11 years ago
Milestone: | Future → 9.0-alpha1 |
---|
comment:3 by , 11 years ago
When you say include at WCPS level, do you mean in the current implementation or in the upcoming WCPS 2.0 standard?
comment:4 by , 11 years ago
For a tech preview that would be a preliminary implementation on a draft or proposed standard, if available.
comment:5 by , 11 years ago
Cc: | added |
---|
comment:6 by , 11 years ago
Milestone: | 9.0-alpha1 → 8.5.1 |
---|---|
Owner: | changed from | to
comment:7 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
It seems we have case available in rasql since changeset 170df10605a20dce69d71e8fc0c61d8457b47aa0.
Can we include this at WCPS level in the tech preview for 9.0 alpha?
Tentatively scheduling accordingly meanwhile.