Ultra-Small-Angle X-ray Scattering Facility


Nika package for 2D -> 1D SAS data reduction

Nika is package of Igor Pro macros designed to reduce 2D (area) detector (e.g., CCD) data into 1D "lineouts" for SAXS or WAXS. Nika is written for Igor Pro, Igor Pro 7.05 & 8.0x (and higher) from Wavemetrics, Inc.

For introduction and description of capabilities, please see here: http://saxs-igorcodedocs.readthedocs.io/en/stable/Nika/Introduction.html

On-line manual : You can open on line manual in your web browser and read it here: http://saxs-igorcodedocs.readthedocs.io/ .

Wiki : There is now wiki for Irena and Nika packages on our Github depository. Check it up - questions of general importance may be answered there, if someone already asked them.

Workshops on using Irena & Nika packages... since 2012 we organize at the APS ~ three sessions per year workshops on use of Irena and Nika packages. To request to be put on waiting list for next workshops send e-mail to Connie.

Current version :  1.80 released 7/7/2018

How to install:

Igor 7 & 8   Instructions
Installer GithubInstaller Check Youtube channel for instructions.
Uses Github to distribute Irena, Nika, and Indra. Most likely what you want!
Clone & link Github depository Clone the Github depository to your computer and link folders from your clone to proper Igor locations. If you need help, let me know.
NOTE: Github depository "master" version should be considered development version and while I try to submit to Github only working versions, the code is "beta" version only...
Igor 6    
Igor 6.37 32bit

Universal Installer,


Dropbox links if APS do not work:

Universal Installer,


For Igor 6.37; Installs/updates/uninstalls Nika, Irena, Indra, and 32 bit versions of xop, uses APS depository
Nika version 1.761 is the last version which is Igor 6 compatible and is now obsolete.
NOTE: 64bit version of Igor is NOT supported, use 32bit version.

If you get "HDF5OpenFile" error, see here

Igor 5    
zip files


Link folders to proper locations, contact me if you need help. 

Mailing group for Nika users: If you want to be informed about Nika updates and possibly have place to inquire about data reduction problems, visit the page: http://www.aps.anl.gov/mailman/listinfo/nika_users where you can join this group.

Obtaining help:

BUGs can be expected, please, let me know if something is not right!

Modification history:

1.80 7/7/2018

  • Igor 8.0 tested. 
  • Fixed NEXUS exporter to save data which are easily compatible with sasView. sasView has serious limitations on what it can accept as input NXcanSAS nexus data. 
  • Removed range selection controls and moved Save data options to its own tab "Save"
  • Added ImageStatistics and control for user for delay between series of images. 
  • Added font type and size control from configuration to be used for CCD image label. 
  • Added ability to fix negative intensities over subtraction. Checkbox on Empty tab and if checked, ~1.5*abs(V_min) is added to ALL points intensities. 

1.79 1/27/2018

  • Converted all procedure files to UTF8 to prevent text encoding issues.
  • Modified main interface to have radio buttons and only one button for action. This makes cleaner interface as some controls can be hidden. Unluckily, panel is now higher by 20 points.
  • Added support for ALS SRoXS soft energy beamline.
  • Improved 9IDC USAXS support.
  • Added more masking options into main panel listbox right click.
  • Checked that - with reduced functionality - code will work without Github distributed xops.
  • Bug fix - changed ki/kout single precision waves to double precision. This caused issues under very small angles when data were unintentionally binned to less points what should have been produced. This is very old bug causing issues at very small Q vectors with short wavelengths and no beamstops. 
  • Tested and fixed for Igor 8 beta version.

1.78 11/05/2017

  • Promoted required minimum version to 7.05 due to bug in Igor prior of this version.
  • Added restore of prior size of panels when user closes and reopens a tool. Data stored in the current Igor experiment. Size limited to 50% width and 90% height. Hold down any modifier key and size will be reset to original default state.
  • Added ColorTable to preferences, Saved every time color table is changed and restored as needed. Should change the Panel GUI and colors of graph, if exists.
  • Modified folder name length - now each segments (_C, sectors, etc) will use longest possible part of the input file name, previously was limited to 17 characters. This allows longest user input names, but different directions may have different length of name allowed as the strings are different length. _C is shortest, in this case the length of name is about 29 characters.
  • Added ability to read multidimensional data from Nexus. Up to 4D data can be read, index 0 is first, index 2 second index, next two indexes are the image points. Standard. 3D data have only index1 (index0=0), 2D data have both indexes=0.
  • 9ID support - will keep the _270_30 sector of SAXS data for use with desmeared USAXS data.
  • Added UserSamplename string to each folder for long names.
  • Changed and streamlined 9IDC support package to have less controls and be more robust. Reads parameters from each file.
  • ASCII exporter - added export of GSAS-II xye data file.
  • Removed pdf manual from distribution. It is obsolete, use on-line version and if needed, download pdf from the on-line source.
  • Added Update Message to CheckForUpdate code. If present, it will display a message for users.

1.77, 5/1/2017

  • Made Igor 7 compatible ONLY. Thanks to GeneralProcedures changes will not work on Igor 6.
  • Version check - using Github now.
  • Added buttons with links to web based manual pages to each tool.
  • Reduced number of characters allowed in name to 18, Ellipse was adding too many characters and was creating errors…

1.76, 5/1/2017

  • Version 1.75 updated with on line manuals, Igor 6 release only.


  • Fixed old bug where Sample Thickness was not converted to cm before use. This means that prior experiments with calibration constants need to have calibration constant also scaled by factor of 10 to compensate. Added warning to Panel version check.
  • Modified Nexus support, added new library to use it. Major revision of Nexus import and export of data.
  • Moved some common functions to IN2G_GeneralProcedures
  • Removed Utility_JZT from distribution, not needed and causing conflict with JZT package.
  • Updated manual.
  • Fixed slow down caused by debugging messages function


Registration/e-mail list: Please, if you are using these macros let me know via e-mail. This will allow me to have some idea who is interested in these macros and how much of my time is worth to invest in further development. Also, please, indicate if you would like to be included on e-mail list I would like to maintain – I can then sent e-mail announcements when a new version is available. I will not misuse the e-mail list in any way…

Quick disclaimer:  This set of macros is currently being developed for use on any SAS data. Their use by anyone for open science is free of charge. If you want to use them for proprietary work, please contact me, the author, Jan Ilavsky, for permission. There are no warrantees with respect to functionality of these macros, please, verify all results by independent methods.