src/GamIO/XWinProcPar.cc
// ____________________________________________________________________________
// ii                 XWinNMR Procs File Default Parmameters
// ____________________________________________________________________________
ii                 XWinNMR Procs File Default Parmameters
ii XWinNMR Procs File Default Parmameters
void XWinProcPar::SetDefaults(const string& fname)
  {
  parfile   = fname;
  _TITLE    = "Parameter File,  Version xwinnmr1.1  GAMMA";
  _JCAMPDX  = 5.0;
  _DATATYPE = "Parameter Values";
  _ORIGIN   = "UXNMR, Bruker Analytische Messtechnik GmbH";
  _OWNER    = "GAMMA";
  time_t longtime;              
  longtime = NULL;	
#ifdef _MSC_VER
  struct tm newtime;		 For setting current date
  localtime_s(&newtime, &longtime);
	char date[31];
	asctime_s(date,30,&newtime);
  _DATE = date;
#else
  struct tm *ptr;		 For setting current date
  ptr = localtime(&longtime);
  _DATE = asctime(ptr);	
#endif
  _ABSF1   = 0;
  _ABSF2   = 0;
  _ABSG    = 0;
  _ABSL    = 0;
  _XALPHA   = 0;
  _AQORDER = 0;
  _ASSFAC  = 0;
  _ASSFACI = 0;
  _ASSFACX = 0;
  _ASSWID  = 0;
  _AUNMP   = "<>";		 For AU
  _AZFE    = 0;			 Intetral ends
  _AZFW    = 0;			 Multiplet integral
  _BCFW    = 0;			 Unknown
  _BC_mod  = 0;			 BC modify
  _BYTORDP = WeRBigEnd();	 Byte ordering
  _COROFFS = 0;			 Unknown
  _DATMOD  = 1;			 Add spectra
  _DC      = 2;			 For spectra add
  _DFILT   = "<>";		 Filter file
  _DTYPP   = 0;			 Unknown
  _FCOR    = 0.0;		 1st pt multiply
  _FTSIZE  = 0;			 Unknown
  _FT_mod  = 0;			 FT aquire mod
  _GAMMA   = 1;			 Quad correct. 
  _GB      = 0;			 Gauss. multiply
  _INTBC   = 1;			 Integration param.
  _INTSCL  = 1;			 Integral compare
  _ISEN    = 128;		 Small integral
  _LB      = 0.3;		 Line broadening
  _LEV0    = 0;			 Contouring param
  _LPBIN   = 0;			 Linear prediction
  _MAXI    = 1000;		 Peak picking
  _MC2     = 0;			 2D tranform type
  _MEAN    = 0;			 Unknown
  _ME_mod  = 0;			 Linear prediciton
  _MI      = 0;			 Peak picking
  _NCOEF   = 0;			 LP coefficients
  _NC_proc = 0;			 2D processing
  _NLEV    = 6;			 Contour levels
  _NOISF1  = 0;			 SN ratio
  _NOISF2  = 0;			 SN ratio
  _NSP     = 0;			 Left shift
  _NTH_PI  = 0;			 Unknown
  _NZP     = 0;			 For zp
  _OFFSET  = 2000.0;		 1st pt shift (Hz)
  __PC      = 1;		 Peak search
  _PHC0    = 0.0;		 Zero order phase
  _PHC1    = 0.0;		 1st order phase
  _PH_mod  = 0;			 How to do phasing
  _PKNL    = 0;			 5th order phase
  _PPARMOD = 0;			 Parameter display
  _PSCAL   = 4;			 Peak picking
  _PSIGN   = 0;			 Unknown
  _REVERSE = 0;			 Spectrum Reverse
  _SF      = 400.0;		 Spect. Freq.
  _SI      = 32768;		 Size
  _SIGF1   = 0;			 Signal/Noise
  _SIGF2   = 0;			 Signal/Noise
  _SINO    = 0;			 Signal/Noise
  _SIOLD   = 0;			 Unknown
  _SREGLST = "<>";		 Unknown
  _SSB     = 2;			 Sin Window
  _STSI    = 0;			 2D storage
  _STSR    = 0;			 2D storage
  _SW_p    = 10.0*_SF;		 Sweep Width (Hz)
  _SYMM    = 0;			 Symmetrization
  _S_DEV   = 0;			 Std. Dev.
  _TDeff   = 0;			 Effective FFT size
  _TDoff   = 0;			 FFT offset
  _TI      = "<>";		 Unknown
  _TILT    = "no";		 Tilt flag (2D)
  _TM1     = 0;			 Unknown
  _TM2     = 0;			 Unknown
  _TOPLEV  = 0;			 Contour top level
  _USERP1  = "<user>";		 User Permission?
  _USERP2  = "<user>";		 Unknown
  _USERP3  = "<user>";		 Unknown
  _USERP4  = "<user>";		 Unknown
  _USERP5  = "<user>";		 Unknown
  _WDW     = 1;			 Window function
  _XDIM    = 64;		 Submatrix size
  _YMAX_p  = 0;			 2D Max
  _YMIN_p  = 0;			 2D Min
sosi  soffset  = 0;			 Spectrum Offset
  }
void XWinProcPar :: SetDefaults ( const string & fname ) { parfile = fname ; _TITLE = " " ; _JCAMPDX = 5.0 ; _DATATYPE = " " ; _ORIGIN = " " ; _OWNER = " " ; time_t longtime ; longtime = NULL ; #ifdef _MSC_VER struct tm newtime ; localtime_s ( & newtime , & longtime ) ; char date [ 31 ] ; asctime_s ( date , 30 , & newtime ) ; _DATE = date ; #else struct tm * ptr ; ptr = localtime ( & longtime ) ; _DATE = asctime ( ptr ) ; #endif _ABSF1 = 0 ; _ABSF2 = 0 ; _ABSG = 0 ; _ABSL = 0 ; _XALPHA = 0 ; _AQORDER = 0 ; _ASSFAC = 0 ; _ASSFACI = 0 ; _ASSFACX = 0 ; _ASSWID = 0 ; _AUNMP = " " ; _AZFE = 0 ; _AZFW = 0 ; _BCFW = 0 ; _BC_mod = 0 ; _BYTORDP = WeRBigEnd ( ) ; _COROFFS = 0 ; _DATMOD = 1 ; _DC = 2 ; _DFILT = " " ; _DTYPP = 0 ; _FCOR = 0.0 ; _FTSIZE = 0 ; _FT_mod = 0 ; _GAMMA = 1 ; _GB = 0 ; _INTBC = 1 ; _INTSCL = 1 ; _ISEN = 128 ; _LB = 0.3 ; _LEV0 = 0 ; _LPBIN = 0 ; _MAXI = 1000 ; _MC2 = 0 ; _MEAN = 0 ; _ME_mod = 0 ; _MI = 0 ; _NCOEF = 0 ; _NC_proc = 0 ; _NLEV = 6 ; _NOISF1 = 0 ; _NOISF2 = 0 ; _NSP = 0 ; _NTH_PI = 0 ; _NZP = 0 ; _OFFSET = 2000.0 ; __PC = 1 ; _PHC0 = 0.0 ; _PHC1 = 0.0 ; _PH_mod = 0 ; _PKNL = 0 ; _PPARMOD = 0 ; _PSCAL = 4 ; _PSIGN = 0 ; _REVERSE = 0 ; _SF = 400.0 ; _SI = 32768 ; _SIGF1 = 0 ; _SIGF2 = 0 ; _SINO = 0 ; _SIOLD = 0 ; _SREGLST = " " ; _SSB = 2 ; _STSI = 0 ; _STSR = 0 ; _SW_p = 10.0 * _SF ; _SYMM = 0 ; _S_DEV = 0 ; _TDeff = 0 ; _TDoff = 0 ; _TI = " " ; _TILT = " " ; _TM1 = 0 ; _TM2 = 0 ; _TOPLEV = 0 ; _USERP1 = " " ; _USERP2 = " " ; _USERP3 = " " ; _USERP4 = " " ; _USERP5 = " " ; _WDW = 1 ; _XDIM = 64 ; _YMAX_p = 0 ; _YMIN_p = 0 ; }
____________________________________________________________________________
ii                 XWinNMR Procs File Default Parmameters
____________________________________________________________________________
____________________________________________________________________________ ii XWinNMR Procs File Default Parmameters ____________________________________________________________________________
// Need a time structure // // For setting current date // For setting current date // For AU // Intetral ends // Multiplet integral // Unknown // BC modify // Byte ordering // Unknown // Add spectra // For spectra add // Filter file // Unknown // 1st pt multiply // Unknown // FT aquire mod // Quad correct.  // Gauss. multiply // Integration param. // Integral compare // Small integral // Line broadening // Contouring param // Linear prediction // Peak picking // 2D tranform type // Unknown // Linear prediciton // Peak picking // LP coefficients // 2D processing // Contour levels // SN ratio // SN ratio // Left shift // Unknown // For zp // 1st pt shift (Hz) // Peak search // Zero order phase // 1st order phase // How to do phasing // 5th order phase // Parameter display // Peak picking // Unknown // Spectrum Reverse // Spect. Freq. // Size // Signal/Noise // Signal/Noise // Signal/Noise // Unknown // Unknown // Sin Window // 2D storage // 2D storage // Sweep Width (Hz) // Symmetrization // Std. Dev. // Effective FFT size // FFT offset // Unknown // Tilt flag (2D) // Unknown // Unknown // Contour top level // User Permission? // Unknown // Unknown // Unknown // Unknown // Window function // Submatrix size // 2D Max // 2D Min //sosi  soffset  = 0;			// Spectrum Offset