Thanks Bakman2 for looking into this!
Now I see that I did at least two mistakes when publishing this topic:
- The one noted by Bakman2
- Published wrong example, the one where I had manually removed the hyphens.
So instead of editing the first post, I give here a correct sample of my data below.
How can I then modify Bakman2's query to get a single value?
(or suggest another solution. Maybe there is a node that can remove the hyphen?)
Query:
**.location[longitude='11.00' and latitude='56.75'].**.uvi_forecast
Data:
{
"weatherdata": {
"-xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
"product": {
"-class": "uvforecast",
"time": {
"-to": "2019-07-09T12:00:00Z",
"-from": "2019-07-09T12:00:00Z",
"location": [
{
"-altitude": "0.00",
"-longitude": "11.00",
"-latitude": "56.75",
"uv": {
"uvi_clear": {
"-value": "5.21",
"-unit": "uv-index"
},
"uvi_partly_cloudy": {
"-value": "4.43",
"-unit": "uv-index"
},
"uvi_cloudy": {
"-value": "1.35",
"-unit": "uv-index"
},
"uvi_forecast": {
"-value": "5.18",
"-unit": "uv-index"
},
"ozon": {
"-value": "7.755525e-03",
"-unit": "kg/m^-2"
},
"snowcover": {
"-value": "0.00",
"-unit": "percentage"
},
"cloud_cover": {
"-value": "1.00",
"-unit": "parts of 8"
},
"albedo": {
"-value": "0.05",
"-unit": "percentage"
},
"solar_zenith": {
"-value": "34.41",
"-unit": "angle"
}
}
},
{
"-altitude": "0.19",
"-longitude": "29.00",
"-latitude": "64.00",
"uv": {
"uvi_clear": {
"-value": "4.51",
"-unit": "uv-index"
},
"uvi_partly_cloudy": {
"-value": "3.83",
"-unit": "uv-index"
},
"uvi_cloudy": {
"-value": "1.17",
"-unit": "uv-index"
},
"uvi_forecast": {
"-value": "1.17",
"-unit": "uv-index"
},
"ozon": {
"-value": "7.077940e-03",
"-unit": "kg/m^-2"
},
"snowcover": {
"-value": "0.00",
"-unit": "percentage"
},
"cloud_cover": {
"-value": "8.00",
"-unit": "parts of 8"
},
"albedo": {
"-value": "0.05",
"-unit": "percentage"
},
"solar_zenith": {
"-value": "41.66",
"-unit": "angle"
}
}
},
{
"-altitude": "0.32",
"-longitude": "22.25",
"-latitude": "67.75",
"uv": {
"uvi_clear": {
"-value": "4.10",
"-unit": "uv-index"
},
"uvi_partly_cloudy": {
"-value": "3.49",
"-unit": "uv-index"
},
"uvi_cloudy": {
"-value": "1.07",
"-unit": "uv-index"
},
"uvi_forecast": {
"-value": "3.07",
"-unit": "uv-index"
},
"ozon": {
"-value": "6.717272e-03",
"-unit": "kg/m^-2"
},
"snowcover": {
"-value": "0.00",
"-unit": "percentage"
},
"cloud_cover": {
"-value": "5.00",
"-unit": "parts of 8"
},
"albedo": {
"-value": "0.05",
"-unit": "percentage"
},
"solar_zenith": {
"-value": "45.40",
"-unit": "angle"
}
}
}
]
}
}
}
}