A very nice feature in GSAS-II that was contributed by a GSAS-II user is the auto-background feature. This uses the Python pybaselines package to estimate where the baseline should be placed. This package is included in the standard GSAS-II installation, but since one can install GSAS-II in other ways, it might not be present if you installed Python yourself. GSAS-II will run fine without this package being installed, but if it is not, the auto-background feature will not function. The Help menu has a command “Add packages for more functionality” that can be used to install pybaselines if not present.
To invoke the auto-background feature, press the “Compute auto background” button. This creates a smooth spline function that will tend to ignore sharp peaks. Selecting this will open a new window with the following options:
Once a good background choice has been found, either fixed background points can be created along the red baseline or one can create a new histogram that can be subtracted point-by-point. These are selected by the two buttons on the window: