diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/schemas/dataproduct_feedback_template-pulp.json b/SAS/TMSS/backend/src/tmss/tmssapp/schemas/dataproduct_feedback_template-pulp.json new file mode 100644 index 0000000000000000000000000000000000000000..f731916f10ee6eb6a8336dd3d5b4dd67b90f7ceb --- /dev/null +++ b/SAS/TMSS/backend/src/tmss/tmssapp/schemas/dataproduct_feedback_template-pulp.json @@ -0,0 +1,175 @@ +{ + "$id":"http://tmss.lofar.org/api/schemas/dataproductfeedbacktemplate/feedback/1#", + "$schema": "http://json-schema.org/draft-06/schema#", + "title": "feedback", + "type": "object", + "default": {}, + "properties": { + "percentage_written": { + "title": "Percentage written", + "type": "integer", + "default": 0 + }, + "frequency": { + "title": "Frequency", + "type": "object", + "default": {}, + "properties": { + "subbands": { + "title": "Subbands", + "type": "array", + "default": [], + "items": { + "title": "Subband", + "type": "integer", + "minimum": 0, + "maximum": 511 + } + }, + "central_frequencies": { + "title": "Central frequencies", + "type": "array", + "default": [], + "items": { + "title": "frequency", + "type": "number", + "default": 0.0, + "minimum": 0.0 + } + }, + "channel_width": { + "title": "Channel width", + "type": "number", + "default": 3051.8, + "minimum": 0.0 + }, + "channels_per_subband": { + "title": "Channels per subband", + "type": "integer", + "default": 64, + "minimum": 1 + } + }, + "required": [ "subbands", "central_frequencies", "channel_width", "channels_per_subband" ] + }, + "time": { + "title": "Time", + "type": "object", + "default": {}, + "properties": { + "start_time": { + "title": "Start time", + "$ref": "http://tmss.lofar.org/api/schemas/commonschematemplate/datetime/1/#/definitions/timestamp", + "default": "1970-01-01T00:00:00Z" + }, + "duration": { + "title": "Duration", + "type": "number", + "default": 0.0 + }, + "sample_width": { + "title": "Sample width", + "type": "number", + "default": 0.0 + } + }, + "required": [ "start_time", "duration", "sample_width" ] + }, + "antennas": { + "$ref": "http://tmss.lofar.org/api/schemas/commonschematemplate/stations/1/#/definitions/antennas", + "default": {} + }, + "target": { + "title": "Target", + "type": "object", + "default": {}, + "properties": { + "pointing": { + "title": "Pointing", + "$ref": "http://tmss.lofar.org/api/schemas/commonschematemplate/pointing/1/#/definitions/pointing", + "default": {} + } + }, + "required": [ "pointing" ] + }, + "samples": { + "title": "Samples", + "type": "object", + "default": {}, + "properties": { + "polarisations": { + "title": "Polarisations", + "type": "array", + "default": [ + "XX", + "XY", + "YX", + "YY" + ], + "items": { + "title": "Polarisation", + "type": "string", + "default": "I", + "enum": [ + "XX", + "XY", + "YX", + "YY", + "I", + "Q", + "U", + "V", + "Xr", + "Xi", + "Yr", + "Yi" + ] + } + }, + "type": { + "title": "Type", + "type": "string", + "default": "float", + "enum": [ + "float", + "integer" + ] + }, + "complex": { + "title": "Complex values", + "type": "boolean", + "default": true + }, + "bits": { + "title": "Bits per sample", + "type": "integer", + "default": 32, + "enum": [ + 4, + 8, + 16, + 32, + 64 + ] + }, + "writer": { + "title": "Writer", + "type": "string", + "default": "standard", + "enum": [ + "lofarstman", + "standard", + "dysco" + ] + }, + "writer_version": { + "title": "Writer version", + "type": "string", + "default": "UNKNOWN" + } + }, + "required": [ "polarisations", "type", "complex", "bits", "writer" ] + } + }, + "required": [ "percentage_written", "frequency", "time", "antennas", "target", "samples" ] +}