src/GamIO/XWinPSet.cc
/* These functions perform ASCII output of processing parameters.  The format
   here is similar to issuing a "dpp" command in XWinNMR or using the menu
   choice "Output/Display status pars./Processing only".  It isn't as complete
   as the Bruker output because I'm bored and its often a mystery how they
   get some of their values.....  Most of the values output are taken from the
   parameter set which holds all the values which were read in from the
   Bruker parameter file.  It makes no sense to use these functions if on
   hasn't first read such a file since all the parameters will be empty.  A
   couple of values are used directly from the class when parameters need to
   be calculated.						             */
These functions perform ASCII output of processing parameters.  The format
here is similar to issuing a "dpp" command in XWinNMR or using the menu
choice "Output/Display status pars./Processing only".  It isn't as complete
as the Bruker output because I'm bored and its often a mystery how they
get some of their values.....  Most of the values output are taken from the
parameter set which holds all the values which were read in from the
Bruker parameter file.  It makes no sense to use these functions if on
hasn't first read such a file since all the parameters will be empty.  A
couple of values are used directly from the class when parameters need to
be calculated.
These functions perform ASCII output of processing parameters . The format here is similar to issuing a " dpp " command in XWinNMR or using the menu choice " Output / Display status pars . / Processing only " . It isn ' t as complete as the Bruker output because I ' m bored and its often a mystery how they get some of their values ..... Most of the values output are taken from the parameter set which holds all the values which were read in from the Bruker parameter file . It makes no sense to use these functions if on hasn ' t first read such a file since all the parameters will be empty . A couple of values are used directly from the class when parameters need to be calculated .
int XWinPSet::brusize(double dval) const
  {
  if(dval > 300) return 1;
  int ret = 0;
  while(fabs(dval) > 1)
    {
    ret++;
    dval /= 10;
    }
  if(ret == 0) ret++;
  else if(dval < 0) ret++;
  return ret;
  }
int XWinPSet :: brusize ( double dval ) const { if ( dval > 300 ) return 1 ; int ret = 0 ; while ( fabs ( dval ) > 1 ) { ret ++ ; dval /= 10 ; } if ( ret == 0 ) ret ++ ; else if ( dval < 0 ) ret ++ ; return ret ; }
These functions perform ASCII output of processing parameters.
These functions perform ASCII output of processing parameters .