nmrglue.sparky¶
Functions for reading and writing Sparky (.ucsf) files.
This modules is imported as nmrglue.sparky and can be called as such.
User Information¶
User Functions¶
|
Read a Sparky file. |
|
Write a Sparky file. |
|
Reads in a Sparky .save file and the corresponding spectrum (.ucsf) file. |
|
Read a Sparky file using minimal memory. |
|
Write a Sparky using minimum amounts of memory (tile by tile) |
|
Create a unit conversion object. |
|
Guess parameter of universal dictionary from dic,data pair. |
|
Create a Sparky parameter dictionary from universal dictionary. |
|
Add datetime object to dictionary |
|
Create a datetime object from a Sparky dictionary |
Developer Information¶
Sparky file format information¶
Information on the Sparky file format can be found online at: http://www.cgl.ucsf.edu/home/sparky/manual/files.html and in the Sparky source file ucsffile.cc.
Developer Functions¶
These functions are typically not used directly by users. Developers who want fine control over Sparky files may be interested in these functions.
|
Create a Sparky data array (recast into float32 array) |
|
Make an Sparky axis dictionary from a universal axis dictionary. |
|
Calculate a tile shape from data shape. |
|
Read a 2D sparky file. |
|
Write a 2D Sparky file. |
|
Read a 3D Sparky file. |
|
Write a 3D Sparky file. |
|
Read a 2D Sparky file using minimal memory. |
|
Read a 3D sparky file using minimal memory. |
|
Read a tile from a Sparky file object. |
|
Read the next tile from a Sparky file object. |
|
Put a tile to a Sparky file object. |
|
Read all data from sparky file object. |
|
Put data to a Sparky file object. |
|
Return a tile from a 2D NMR data set. |
|
Tile 2D data into a 1D array. |
|
Rearrange 2D Tiled/Sparky formatted data into standard format. |
|
Return a single tile from a 3D NMR data set. |
|
Tile 3D data into a 1D numpy array |
|
Rearrange 3D tiled/Sparky formatted data into standard format. |
Get fileheader from file and return a list. |
|
|
Write fileheader list to file (180-bytes). |
|
Convert a fileheader list into a Sparky parameter dictionary. |
|
Convert a Sparky parameter dictionary into a fileheader list. |
Get an axisheader from file and return a list. |
|
|
Write an axisheader list to file (128-bytes written). |
|
Convert an axisheader list into Sparky parameter axis dictionary. |
|
Convert a Sparky parameter axis diction into a axisherder list. |