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,7 +7,7 @@ 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>"}}8 +> {{code language="<Apache"}} 11 11 [{"sensorcode":"MySensor","sensorid":102,"variablecode":"Volts","variableid":1,"value":1.54,"units":"V","DateTime":"2016-03-18 19:00:00"} 12 12 ,{"sensorcode":"MySensor","sensorid":102,"variablecode":"Direction","variableid":3,"value":224,"units":"Degrees","DateTime":"2016-03-18 19:00:00"} 13 13 ,{"sensorcode":"MySensor","sensorid":102,"variablecode":"Counts","variableid":1,"value":6,"units":"#","DateTime":"2016-03-18 19:00:00"} ... ... @@ -16,7 +16,6 @@ 16 16 {{/code}} 17 17 18 18 Useful fields: 19 - 20 20 * SensorCode - Unique name of a sensor (string) 21 21 * VariableCode - Unique name of a variable (string) 22 22 * Value - Numeric value of the measurement (float) ... ... @@ -28,10 +28,9 @@ 28 28 * DBID - The user account that manages the sensor information (string) 29 29 * DataTable - The table within the schema to which data is stored (string) 30 30 31 -{{info}} 32 -The information below is provided for reference and is no longer the standard format. 33 -{{/info}} 34 34 29 +{{info}}The information below is provided for reference and is no longer the standard format.{{/info}} 30 + 35 35 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. 36 36 37 37 **The measurement file has strict conventions. Measurement files uploaded to the LEO Data Server must follow these guidelines**