netcdf-gcms
Advanced tools
{ | ||
"name": "netcdf-gcms", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Parser from NetCDF files to JSON usable for GCMS", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -9,2 +9,3 @@ 'use strict'; | ||
const finniganGCMS = require('./finniganGCMS'); | ||
const shimadzuGCMS = require('./shimadzuGCMS'); | ||
const aiaTemplate = require('./aiaTemplate'); | ||
@@ -23,2 +24,4 @@ | ||
// console.log(reader.toString()); | ||
let instrument_mfr = reader.getDataVariableAsString('instrument_mfr'); | ||
@@ -29,2 +32,3 @@ let dataset_origin = reader.attributeExists('dataset_origin'); | ||
let aia_template_revision = reader.attributeExists('aia_template_revision'); | ||
let source_file_format = reader.getAttribute('source_file_format'); | ||
const globalAttributes = reader.globalAttributes; | ||
@@ -44,2 +48,8 @@ | ||
ans = brukerGCMS(reader); | ||
} else if ( | ||
mass_values && | ||
source_file_format && | ||
source_file_format.match(/shimadzu/i) | ||
) { | ||
ans = shimadzuGCMS(reader); | ||
} else if (detector_name && detector_name.match(/dad/i)) { | ||
@@ -46,0 +56,0 @@ // diode array agilent HPLC |
34992
21.38%11
10%603
23.31%