RadiaCodeCSVConverter
Converts exported CSV files by the RadiaCode-101 pocket gamma spectrometer into XML.
Install / Use
/learn @medienlampe/RadiaCodeCSVConverterREADME
RadiaCode-101 CSV-to-XML Converter
Converts exported CSV files by the RadiaCode-101 pocket gamma spectrometer into XML.
Prerequisites
- this script needs Node 14.8+
Usage
- Clone this repository
- Copy
config.json.sampletoconfig.jsonand adjust your settings- You can find most of the values inside the device settings menu of the RadiaCode-101 Windows application
- Put all the CSV files you want to convert into the folder
./input- make sure you add
-t<measurementtime>to your file names, e.g.measurement.csvwhich took 2000 seconds should becomemeasurement-t2000.csv
- make sure you add
- Run the script with
npm startornode convert.js - You can find the converted files in the folder
./outputafterwards
Configuration
The config-sample.json contains everything you need to setup a config.json for a single webhook endpoint deploying multiple projects:
{
"serialnumber": "RC-101-000000",
"coefficients": [
0.193228,
9.5851,
0.00662241
],
"devicename": "RadiaCode-101",
"polynomialorder": 2,
"formatversion": 120920,
"channels": 256
}
| Setting | Description |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------- |
| serialnumber | The serial number of your device (change this to your value if you feel like it) |
| coefficients | The calibration coefficients of your device, which can be found in the Android and Windows applications |
| devicename | The device model (doesn't need to be changed) |
| polynomialorder | The device's polynomial order setting (doesn't need to be changed) |
| formatversion | The current XML format version (doesn't need to be changed) |
| channels | The channels to display, for the RadiaCode-101 this is 256 for now and doesn't need to be changed |
