Download GAMMA Graphics Documentation
Transcript
GAMMA User Documentation 7.5 NMRiFile NMRiFile Figures and Tables 122 7.3 Class NMRiFile Description 7.5.1 Introduction Every data file suitable for use in the NMR data processing packages from New Methods Research, Inc.1 (e.g. NMR1 and NMR2) has a standard internal format. Class NMRiFile was constructed in order that users of GAMMA are able to efficiently manipulate such files. 7.5.2 NMRiFile Structure The internal design of Class NMRiFile is quite simple. It contains the quantities defined in the following table. Table 9: NMRiFile Internal Structure Variable Type Units Description fp File The NMRi file on disk fsize int bytes Size of NMRi file in bytes cols_ int points Number of columns in the file row_ int points Number of rows in the file pos_ int bytes Current position in file fname String headersize int par_SIZE par_SPEC S Comments Set in constructor External NMRi file name Set in constructor parameters Size of NMRi file header Set Constant: 512 int parameters File position of parameter SIZE Set Constant: 99 int parameters File position of parameter SPECS Set Constant: 219 Most manipulations within NMRiFile are performed with the C++ class File. The other quantities are defined mostly for convenience and/or because they are constants for all NMRi files. 1. NMR1 and NMR2 are a products of New Methods Research, Inc., 7 East Genesee Street, Syracuse, NY, 13210. Phone: (315) 424-0329, FAX: (315) 424-0356.GAMMA was tested on Sun systems running the Sunviews operating system. NMR1 release 3.8 and NMR2 release 3.5 were the manuals referred to during the programming. Copyright Scott A, Smith May 22, 1998