Skip to content

nanalysis/spinlab-dataset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spinlab dataset

A Java library to read RS2D / Spinlab datasets.

Sample usage

// parse XML header
Header header = new HeaderParser().parse(new FileInputStream("/path/to/header.xml"));

// Access predefined parameters - using the Parameter enum
NumberValue sw = header.get(Parameter.SPECTRAL_WIDTH); 
System.out.println(sw.getNumberEnum());
System.out.println(sw.getValue());
System.out.println(sw.getValueAs(Unit.Hertz, header)); // handles hz conversion from ppm if needed

// Access sequence-specific parameters - using String
ListNumberValue tau = header.get("Tau_2D");
System.out.println(tau.getValue());
System.out.println(tau.getOrder());

Licensing

This library is published under the GNU GPL v3, and an internal proprietary license for use in Nanalysis, RS2D and OneMoonScientific projects.

About

Library to read RS2D / spinlab datasets

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages