Opened 4 years ago

Closed 4 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: vmerticariu
Priority: major Milestone: 8.5.1
Component: petascope Version: 8.4
Keywords: wcps Cc: pbaumann
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 Changed 4 years ago by dmisev

  • Component changed from DEB to petascope
  • Milestone set to Future
  • Owner changed from dmisev to abeccati
  • Status changed from new to assigned

comment:2 Changed 4 years ago by abeccati

  • Milestone changed from Future to 9.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 Changed 4 years ago by dmisev

When you say include at WCPS level, do you mean in the current implementation or in the upcoming WCPS 2.0 standard?

comment:4 Changed 4 years ago by abeccati

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

comment:5 Changed 4 years ago by abeccati

  • Cc pbaumann added

comment:6 Changed 4 years ago by dmisev

  • Milestone changed from 9.0-alpha1 to 8.5.1
  • Owner changed from abeccati to vmerticariu

comment:7 Changed 4 years ago by vmerticariu

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.