Opened 12 years ago

Closed 11 years ago

#357 closed task (fixed)

Implement `pow()' WCPS function

Reported by: Piero Campalani Owned by: Dimitar Misev
Priority: critical Milestone: 9.0
Component: petascope Version: 8.4
Keywords: pow unary Cc: Peter Baumann
Complexity: Medium

Description (last modified by abeccati)

Despite all exponentialExpr are implemented in Petascope (see WCPS standard Sec.7.1.17), only pow(C,p) function is missing, and should be implemented despite easily reproducible by means of sequences of products.

Pow is a unary expression (src/main/java/petascope/wcps/server/core/UnaryOperationCoverageExpr.java).

Examples:

for c in (mean_summer_airtemp)
   return encode(
      coverage averagesOverTime
      over     $T t(1:5)
      values   pow($T,3),
   "csv")
for c in (mean_summer_airtemp)
  return encode(
       pow(c[x:"CRS:1"(100:101),y:"CRS:1"(300)],3),
    "csv")

See how other similar operators are implemented, e.g. log, ln, exp.

Depends on #374

Change History (15)

comment:1 by abeccati, 12 years ago

Owner: changed from abeccati to swingit
Status: newassigned

Assigning that as initial easy task to familiarize with petascope code.

comment:2 by Dimitar Misev, 12 years ago

Cc: Peter Baumann added
Complexity: EasyMedium
Resolution: fixed
Status: assignedclosed

There's no pow equivalent function in rasdaman, I guess that's why it wasn't implemented in petascope in the first place.

So the first task is to implement pow in rasdaman, and then in petascope.

comment:3 by Dimitar Misev, 12 years ago

Resolution: fixed
Status: closedreopened

comment:4 by abeccati, 12 years ago

Description: modified (diff)
Status: reopenedassigned

Opened ticket for rasdaman component (#374), this one will only address petascope component for WCPS compliance.

comment:5 by Dimitar Misev, 12 years ago

Patch for rasql has been submitted, how is implementation in petascope progressing?

comment:6 by abeccati, 12 years ago

Milestone: Future8.4.3

comment:7 by Dimitar Misev, 11 years ago

Milestone: 8.4.38.4.4

comment:8 by Dimitar Misev, 11 years ago

Milestone: 8.4.48.5

Marco, what's the status of this, it was supposed to be done quite some time ago?

comment:9 by swingit, 11 years ago

The code is written, grammar updated. To be tested. Needed to restore Rasdaman installation because of an error in updating repository. Just recovered from it. The patch will be submitted soon.

Last edited 11 years ago by swingit (previous) (diff)

comment:10 by Dimitar Misev, 11 years ago

The patch still hasn't been applied?

comment:11 by Dimitar Misev, 11 years ago

Milestone: 8.58.5.1

I'm setting this to milestone 8.5.1 - end of August, let's please close it by then.

comment:12 by Peter Baumann, 11 years ago

the patch has some issues, unfortunately, and needs extra effort from our side to close it. Indeed, should be closed soon.

comment:13 by Dimitar Misev, 11 years ago

Milestone: 8.5.19.0
Owner: changed from swingit to Dimitar Misev
Priority: minorcritical

I can't find this patch in the patchmanager, can someone attach here?

comment:14 by Dimitar Misev, 11 years ago

Status: assignedaccepted

Ok I submitted patch.

comment:15 by Peter Baumann, 11 years ago

Resolution: fixed
Status: acceptedclosed

patch is in.

Note: See TracTickets for help on using tickets.