Opened 11 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: olcl@… 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 Dimitar Misev, 11 years ago

Component: DEBpetascope
Milestone: Future
Owner: changed from Dimitar Misev to abeccati
Status: newassigned

comment:2 by abeccati, 11 years ago

Milestone: Future9.0-alpha1

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.

comment:3 by Dimitar Misev, 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 abeccati, 11 years ago

For a tech preview that would be a preliminary implementation on a draft or proposed standard, if available.

comment:5 by abeccati, 11 years ago

Cc: Peter Baumann added

comment:6 by Dimitar Misev, 11 years ago

Milestone: 9.0-alpha18.5.1
Owner: changed from abeccati to Vlad Merticariu

comment:7 by Vlad Merticariu, 11 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.