Closed jonssonchristian closed 1 year ago
Here is a diagram showing the updates schema for the wind resource assessment. It will look similar for other parts of the schema, but with different sets of measurement quantities depending on the context.
Here is a simplified example of what the wind resource assessment section of a JSON document could look like.
Note that I left out the measurement
and height
dimensions from the probability
variable for simplicity, but those should be included in a valid set of results.
{
"wind_resource_assessments": [
{
"results": {
"air_density": [
{
"dimensions": [
"measurement",
"height"
],
"statistics": [
{
"statistic_type": "mean",
"values": [
[
[
"BF_M1",
120.0
],
1.234
]
]
}
]
}
],
"probability": [
{
"dimensions": [
"wind_from_direction",
"wind_speed"
],
"statistics": [
{
"statistic_type": "mean",
"values": [
[
[
0.0,
2.5
],
0.1
],
[
[
120.0,
2.5
],
0.2
],
[
[
240.0,
2.5
],
0.3
],
[
[
0.0,
10.0
],
0.1
],
[
[
120.0,
10.0
],
0.2
],
[
[
240.0,
10.0
],
0.1
]
]
}
]
}
],
"temperature": [
{
"dimensions": [
"measurement",
"height"
],
"statistics": [
{
"statistic_type": "mean",
"values": [
[
[
"BF_M1",
120.0
],
1.234
]
]
}
]
}
],
"wind_shear_exponent": [
{
"dimensions": [
"measurement"
],
"statistics": [
{
"statistic_type": "mean",
"values": [
[
[
"BF_M1"
],
0.18
]
]
}
]
}
],
"wind_speed": [
{
"dimensions": [
"measurement",
"height"
],
"statistics": [
{
"statistic_type": "mean",
"values": [
[
[
"BF_M1",
120.0
],
6.83
],
[
[
"BF_M1",
125.0
],
6.85
],
[
[
"BF_M1",
148.0
],
6.93
],
[
[
"BF_M1",
150.0
],
6.94
],
[
[
"BF_M1",
158.0
],
6.96
],
[
[
"BF_M1",
160.0
],
6.97
]
]
},
{
"statistic_type": "standard_deviation",
"values": [
[
[
"BF_M1",
120.0
],
0.27
],
[
[
"BF_M1",
125.0
],
0.27
],
[
[
"BF_M1",
148.0
],
0.29
],
[
[
"BF_M1",
150.0
],
0.29
],
[
[
"BF_M1",
158.0
],
0.31
],
[
[
"BF_M1",
160.0
],
0.31
]
]
}
]
}
]
},
"wind_resource_assessment_id": "BfWF_WRA_1"
}
]
}
Refine the schema for results to take the measurement quantity out of the results object and instead map each measurement quantity to a list of results objects.