Closed lpatiny closed 2 months ago
@lpatiny in the type MeasurementXYVariables
the property label
is mandatory, looking in your example, do you prefer it to be optional?
I suggest this
const data = {
x: {
data: xy.x,
label: 'Chemical Shift (ppm)',
},
r: {
data: xy.y,
label: 'Real data',
},
};
const jcamp = from1DNMRVariables(data, {
xyEncoding: 'DIFDUP',
info: {
title: '1H NMR',
dataType: 'NMR Spectrum',
'.OBSERVE FREQUENCY': frequency,
},
});
we need to manage the possibility of complex data. so { x, r } and { x, r, i }
It is not clear what is required and what is not. What is required should not be optional parameters and because it ends up in ##. or ##$ it should be in the corresponding parameters info or meta.
I would like to create a JCAMP-DX file using something like or even simpler if possible.