Vnmr File Exporter

Home Download Data Help Contact

Vnmr does not save all of the data required to convert spectra into UCSF format (rNMR's accepted format). The Vnmr "Export" macro provided here allows previously saved spectra to be updated with the requisite information for conversion to UCSF format. Vnmr stores acquistion/processing parameters in a file called "procpar" and the processed data in a file called "phasefile". When spectra are saved in Vnmr, the processed data is not trasfered to the saved directory. The macro operates by reprocessing all of the Varian spectra present in a user-defined directory, updating the "procpar" parameter file, and saving the processed "phasefile" data to the directory.


  1. Download the Vnmr macro: Export.
  2. Copy the "Export" macro to the "maclib" folder within the "vnmrsys" directory, as shown below.

  3. Open Vnmr and type "macrold('Export')" in the command line to load the macro.


  1. Open Vnmr and type "macrold('Export')" in the command line to load the macro.
  2. Type "Export" in the command line.
  3. Type in the path for the directory containing your saved spectra, or hit Return if the current directory is correct.
  4. If you would like to confirm the export operation for each spectrum contained within directory, press "y" when prompted. Otherwise hit Return and the appropriate files for every spectrum in the directory will be exported automatically. Press CTRL+C at any time to quit.

  5. When the macro is complete, the directories for the saved spectra should each contain files named "procpar" and "phasefile", which contain the processing parameters and processed data for each spectrum, respectively.


In order to export processed data, the "Export" macro must open and process each spectrum before saving "procpar"and "phasefile". The macro contains a set of processing commands which may not be ideal for all spectra. If you wish to alter the processing commands within the macro, please follow the steps below.

  1. Open the "Export" macro for editing.
  2. Find the processing commands in the macro. These are clearly maked with comments, as shown below.

  3. Make the desired changes follwing the guidelines detailed below.
  4. Type "macrold('Export')" in the command line to load the macro.

Guidelines for customizing Vnmr processing commands

To ensure proper conversion in rNMR, Varian spectra must be processed using the following commands:

  • 1D spectra: fn=np*2 ft f full vsadj dc ds flush
  • Arrayed 1D spectra: fn=np*2 ft f full vsadj dc dssh flush
  • 2D spectra: trace='f1' wft2da f full dconi flush

These commands can be altered using the following guidelines:

  • The "ft" and "wft2da" commands can be substituted with equivalent Fourier transform commands.
  • Alterations to the processing parameters (e.g. zero filling, window functions, phasing) must precede the Fourier transform command.
  • For 2D spectra, "trace" must be set to "f1" directly before the data is transformed.
  • All commands listed above that follow the Fourier transform command are required.
  • For arrayed 1D experiments, the "dssh" command is necessary to display the full array.

Assuming these guidelines are followed, the "phasefile" and "procpar" files can also be copied manually (without using the "Export" macro) from the "vnmrsys" directory to the saved directory for the spectrum.

Please refer to the rNMR manual for information on using rNMR.

Hosted by NMRFAM at UW-Madison. Last updated: June 10, 2010