How to deal with missing data values
The request for the following events
[{"gid":450,"query_date":"2013-01-07T00:00:00.000Z"},{"gid":450,"query_date":"2013-06-03T00:00:00.000Z"}]
Returns the following result set:
...
"ed": {"name": "Event duration",
"general_description": "Duration of the runoff events in days",
"data": {"ed":
{"type": "scalar",
"description": "Days between the event start and event end",
"value": 6,
"data_type": "int",
"unit": "days"}}},
"epf": {"name": "Event peak flow",
"general_description": "Peak flow during the event",
"data": {
"epf":
{"type": "scalar",
"description": "Event peak flow",
"value": null,
"data_type": "float",
"unit": "m\u00b03 / s"},
"nepf":
{"description": "Event peak normalized with catchment area in square kilometers",
"value": null,
"data_type": "float",
"unit": "m\u00b03 / s"}}},
"esf": {"name": "Event start flow",
"general_description": "Stream flow at the event start",
"data": {
"esf":
{"description": "Stream flow at the event start",
"value": null,
"data_type": "float",
"unit": "m\u00b03 / s"},
"nesf":
{"description": "Stream flow at the event start normalized with catchment area in square kilometers",
"value": null,
"data_type": "float",
"unit": "m\u00b03 / s"}}},
"eprp": {"name": "Event peak return period",
"general_description": "Return period at the event peak or maximum return period during the event",
"data": {
"eprp":
{"description": "Maxium event return period",
"value": null,
"data_type": "int",
"unit": null}}}
}},
All data_type="float"
entries have a null
value attribute.
My first guess is, that the value attribute is not a primitive python data type and therefore not serialized correctly. Or it is indeed missing, because it couldn't be calculated for some reason.
Edited by Daniel Eggert