Advanced Photon Source at Argonne National Laboratory   APS USAXS instrument
USAXS instrument at the Advanced Photon Source,
X-ray science division, beamline 9ID-C

Advanced Photon Source

A U.S. Department of Energy, Office of Science,
Office of Basic Energy Sciences national synchrotron x-ray research facility

 
 
Argonne Home > Advanced Photon Source > USAXS >

extractModelingNotes.ipf

Useful Macros for IgorPro

Here we gather together some useful macros we have developed for IgorPro that do not seem to fit into any other category.

Extract Wavenotes from Least-Squares Modeling curve fits

The extractModelingNotes.ipf macro is to be used with the Irena SAS data analysis macro package to extract curve fit results from the wavenote for Least Squares Modeling.

//Function IN2G_UniversalFolderScan(startDF, levels, FunctionName)
//runs Function called in string FunctionName in each subfolder of the startDF
//e.g. IN2G_UniversalFolderScan("root:USAXS:", 5, "IN2G_CheckTheFolderName()")

FUNCTION ExtractModelingNotesFunction()
  // MaximumIntensity
  STRING dist
  Variable i
  FOR (i=0; i<20; i+=1)
    sprintf dist, "ModelingDiameters_%d", i
    IF ( EXISTS(dist) )
        PRINT  "FIT_RESULT:", i, getDataFolder(1), note($dist), "END_RESULT"
    ENDIF
  ENDFOR
END

MACRO ExtractModelingNotes()
  PRINTF "\r\r\r\r\r"
  IN2G_UniversalFolderScan("root:USAXS:", 5, "ExtractModelingNotesFunction()")
  PRINTF "\r\r\r\r\r"
END
		

        

Privacy & Security Notice  |   Contact Us    
This page last modified: 2006-09-28 10:54 AM