Changes for page MeasurementFile
Last modified by Matej Durcik on 2022/05/17 14:37
Change comment:
There is no comment for this version
Summary
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.m sibayan1 +XWiki.mdurcik - Content
-
... ... @@ -1,4 +1,6 @@ 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}} 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}} 2 2 3 3 4 4 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. ... ... @@ -5,8 +5,7 @@ 5 5 6 6 Below is an example of a sensor named "MySensor" that measures speed and direction with raw measurements of voltage and counts. 7 7 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"} 10 +> {{code language="<Apache>"}}[{"sensorcode":"MySensor","sensorid":102,"variablecode":"Volts","variableid":1,"value":1.54,"units":"V","DateTime":"2016-03-18 19:00:00"} 10 10 ,{"sensorcode":"MySensor","sensorid":102,"variablecode":"Direction","variableid":3,"value":224,"units":"Degrees","DateTime":"2016-03-18 19:00:00"} 11 11 ,{"sensorcode":"MySensor","sensorid":102,"variablecode":"Counts","variableid":1,"value":6,"units":"#","DateTime":"2016-03-18 19:00:00"} 12 12 ,{"sensorcode":"MySensor","sensorid":102,"variablecode":"Velocity","variableid":4,"value":0.112,"units":"m/s","DateTime":"2016-03-18 19:00:00"} ... ... @@ -14,6 +14,7 @@ 14 14 {{/code}} 15 15 16 16 Useful fields: 18 + 17 17 * SensorCode - Unique name of a sensor (string) 18 18 * VariableCode - Unique name of a variable (string) 19 19 * Value - Numeric value of the measurement (float) ... ... @@ -25,9 +25,10 @@ 25 25 * DBID - The user account that manages the sensor information (string) 26 26 * DataTable - The table within the schema to which data is stored (string) 27 27 30 +{{info}} 31 +The information below is provided for reference and is no longer the standard format. 32 +{{/info}} 28 28 29 -{{info}}The information below is provided for reference and is no longer the standard format.{{/info}} 30 - 31 31 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. 32 32 33 33 **The measurement file has strict conventions. Measurement files uploaded to the LEO Data Server must follow these guidelines**