JF,
nmrglue does not support writing processed Bruker data, only
reading this data. If you are interested in adding support for
writing this type of data, I would be happy to review a pull request
that added such a feature.
The source code for the `read_pdata` [1] and `read_pdata_binary`
[2] functions in the bruker module would be a good place to start.
Bruker processed data is stored on disk as four by signed integers
(int32) with the endiness given in the metadata files. The spectrum
is divided into smaller sub-matrices, these would need to be formed
prior to writing the data.
My guess is that either the endiness or the lack of sub-matrices is
the reason that you are no seeing anything resembling a spectrum.
Cheers,
- Jonathan Helmus
[1]
https://github.com/jjhelmus/nmrglue/blob/master/nmrglue/fileio/bruker.py#L862
[2]
https://github.com/jjhelmus/nmrglue/blob/master/nmrglue/fileio/bruker.py#L1076