Changes for page MeasurementFile
Last modified by Matej Durcik on 2022/05/17 14:37
Change comment:
Imported from XAR
Summary
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.m durcik1 +XWiki.msibayan - Content
-
... ... @@ -1,6 +1,4 @@ 1 -{{warning}} 2 -As of January 2016 the Measurement File format has been changed from the old tab delimited variables, to the new JSON format. 3 -{{/warning}} 1 +{{warning}}As of January 2016 the Measurement File format has been changed from the old tab delimited variables, to the new JSON format.{{/warning}} 4 4 5 5 6 6 The "Measurement File" or "m-file" is an ASCII text, human readable, JSON format file which holds information pertaining to a measurement or group of measurements. In general, a measurement file will hold all data from sensors sampled at a particular time (i.e. - measure a group of five thermocouples at 11:30am on Dec. 1, 2012). However, it is not limited to this, as one could group a single sensor, or even a group of sensors, over an extended period of time. The format of this file is a JSON array of JSON objects containing information about the sensor and it's measurement. ... ... @@ -7,14 +7,15 @@ 7 7 8 8 Below is an example of a sensor named "MySensor" that measures speed and direction with raw measurements of voltage and counts. 9 9 10 -> {{code language="<JSON>"}}[{"sensorcode":"MySensor","sensorid":102,"variablecode":"Volts","variableid":1,"value":1.54,"units":"V","DateTime":"2016-03-18 19:00:00"} 8 +> {{code language="<Apache"}} 9 +[{"sensorcode":"MySensor","sensorid":102,"variablecode":"Volts","variableid":1,"value":1.54,"units":"V","DateTime":"2016-03-18 19:00:00"} 11 11 ,{"sensorcode":"MySensor","sensorid":102,"variablecode":"Direction","variableid":3,"value":224,"units":"Degrees","DateTime":"2016-03-18 19:00:00"} 12 12 ,{"sensorcode":"MySensor","sensorid":102,"variablecode":"Counts","variableid":1,"value":6,"units":"#","DateTime":"2016-03-18 19:00:00"} 13 13 ,{"sensorcode":"MySensor","sensorid":102,"variablecode":"Velocity","variableid":4,"value":0.112,"units":"m/s","DateTime":"2016-03-18 19:00:00"} 14 -]{{/code}} 13 +] 14 +{{/code}} 15 15 16 16 Useful fields: 17 - 18 18 * SensorCode - Unique name of a sensor (string) 19 19 * VariableCode - Unique name of a variable (string) 20 20 * Value - Numeric value of the measurement (float) ... ... @@ -26,10 +26,9 @@ 26 26 * DBID - The user account that manages the sensor information (string) 27 27 * DataTable - The table within the schema to which data is stored (string) 28 28 29 -{{info}} 30 -The information below is provided for reference and is no longer the standard format. 31 -{{/info}} 32 32 29 +{{info}}The information below is provided for reference and is no longer the standard format.{{/info}} 30 + 33 33 The "Measurement File" or "m-file" is an ASCII text, human readable, tab-delimited file which holds information pertaining to a measurement or group of measurements. In general, a measurement file will hold all data from sensors sampled at a particular time (i.e. - measure a group of five thermocouples at 11:30am on Dec. 1, 2012). However, it is not limited to this, as one could group a single sensor, or even a group of sensors, over an extended period of time. 34 34 35 35 **The measurement file has strict conventions. Measurement files uploaded to the LEO Data Server must follow these guidelines**