Kevin Marlis created SDAP-516:
---------------------------------
Summary: Harmonize meta fields in algorithm responses
Key: SDAP-516
URL: https://issues.apache.org/jira/browse/SDAP-516
Project: Apache Science Data Analytics Platform
Issue Type: Improvement
Reporter: Kevin Marlis
The `meta` section of algorithm responses are inconsistent and in some cases
incorrect. They should make better use of the params in the algorithm when
constructing the `meta` response.
The typical `meta` section of the response:
{code:java}
{
"meta": [
{
"shortName": "ECCO_L4_TEMP_SALINITY_05DEG_MONTHLY_V4R4_SALT",
"bounds": {
"east": 180.0,
"west": -180.0,
"north": 90.0,
"south": -90.0
},
"time": {
"start": 695584800,
"stop": 735584800,
"iso_start": "1992-01-16T18:00:00+0000",
"iso_stop": "1993-04-23T17:06:40+0000"
}
}
], {code}
`DailyDifferenceAverageSpark` is more descriptive but uses hard coded values
for `title`, `description`, `units`, and `label` instead of pulling what's
available from the algorithm itself or the params:
{code:java}
{
"meta": {
"title": "Anomalies",
"description": "Anomalies are departures from the 5-day pixel mean",
"units": "",
"label": "Anomalies ()",
"shortName": "ECCO_L4_TEMP_SALINITY_05DEG_MONTHLY_V4R4_SALT",
"bounds": {
"east": -120.0,
"west": -180.0,
"north": 0.0,
"south": -45.0
},
"time": {
"start": 695584800,
"stop": 735584800,
"iso_start": "1992-01-16T18:00:00+0000",
"iso_stop": "1993-04-23T17:06:40+0000"
},
"climatology": "ECCO_L4_TEMP_SALINITY_05DEG_MONTHLY_V4R4_SALT_clim"
},{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)