Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#594 closed feature (fixed)

Add .lo and .hi selections in domain( ) and imagecrsdomain( ) WCPS functions

Reported by: Piero Campalani Owned by: Piero Campalani
Priority: minor Milestone: Future
Component: petascope Version: development
Keywords: lo hi domain Cc: Peter Baumann, mantovani@…, Vlad Merticariu, Alex Dumitru
Complexity: Medium

Description

Self-explanatory title.

In practice, it would be a useful feature to extend to WCPS the RasQL capability to extract high and low bounds of an sdom.

Use case:

# Eg: weekly-aggregated pixel history on daily time-series
for c in (eobstest) return encode (
   coverage averaged_pixel_history
       over $t t ( imagecrsdomain(c,t).lo : imagecrsdomain(c,t).hi / 7 )
     values avg(c[Lat(0), Long(51:52), t:"CRS:1"($t:$t+6)])
, "csv")

The WCPS standard does not foresee this feature, but might be added to the upcoming WCPS 2.0.

Change History (4)

comment:1 by Peter Baumann, 10 years ago

Indeed, this will be possible in WCPS 2, and much more:

  • there is a DescribeCoverage request returning the same as in WCS = domain + range type
  • there is XPath/XQuery support allowing to specifically extract any particular item.

comment:2 by Piero Campalani, 10 years ago

Cc: Vlad Merticariu Alex Dumitru added

comment:3 by Dimitar Misev, 10 years ago

Resolution: fixed
Status: newclosed

Closing then, I assume it has been addressed in WCPS 2.0.

comment:4 by Peter Baumann, 10 years ago

these functions do not occur any longer in WCPS 2. Rather, the DescribeCoverage request is emulated in a function returning the same XML structure, so that XPath etc allows extracting any element.

Note: See TracTickets for help on using tickets.