6.10.x

NRFit IGOR.6.10.x-6.1-MAC

in
Downloaded 39 times
Download: NRfit_mac.ipf
Size: 346.88 KB
md5_file hash: 7b41a3780df19d0c0db2457b15ce8234
First released: October 28, 2011 - 17:44

MAC OSX version for IgorPro>=6.1

NRFit IGOR.6.10.x-6.0

in
Downloaded 14 times
Download: NRfit.ipf
Size: 346.26 KB
md5_file hash: 70a3fb00ca798a3f852d9e3d39e36080
First released: October 28, 2011 - 17:38

Window version for Igor 6.xx

Recursively List Data Folder Contents

Average rating
(0 votes)

// ListDataFolder(dfr, level)
// Recursively lists objects in data folder.
// Pass data folder path for dfr and 0 for level.
// Example: ListDataFolder(root:, 0)
Function ListDataFolder(dfr, level)
	DFREF dfr
	Variable level			// Pass 0 to start
 
	String name
 
	if (level == 0)
		name = GetDataFolder(1, dfr)
		Printf "%s\r", name
	endif
 
	Variable i
 
	String indentStr = "\t"
	for(i=0; i<level; i+=1)
		indentStr += "\t"
	endfor
 
	Variable numWaves = CountObjectsDFR(dfr, 1)
	for(i=0; i<numWaves; i+=1)
		name = GetIndexedObjNameDFR(dfr, 1, i)

Date Control

Average rating
(2 votes)

// Creates a date control that uses YYYY-MM-DD format.
// Sticking to one standard date format simplifies life immensely.
// You can enter a date directly in YYYY-MM-DD format. You can also use up/down
// buttons. And you can also use the mouse scroll wheel.
// Two SetVariable controls are used - one to display the date and to accept a date string
// and the other to provide the up/down buttons.
// Does not support fractional dates or date and time.
// To try it, execute:
//	DemoDateControlPanel()
 
static Constant kDebugDateControl = 0	// Set to 1 for debug printouts

A basic chebyshev fit function

Average rating
(0 votes)

A basic fit function for fitting any type of curve (interpolation) using Chebyshev polynomials.
Gencurvefit is very useful for fitting with this kind of problem.
You can use more or less terms by using more parameters in the fit wave (w).
1 parameter would fit a constant
2 parameters would fit a straight line
3 parameters would fit a quadratic, etc.

The entire X-range is rescaled to between -1 and 1 during the fit. Note that the fit parameters will only be applicable to this scaled range, if you increase the size of the x range then the best fit parameters will change.

convert image wave by a lookup wave

Average rating
(0 votes)

This procedure converts a 2D image wave with use of a lookup wave. The converted wave looks in an image plot like its unconverted counterpart that is drawn with a lookup wave.

IMPORTANT:
The function alters the image wave. So make sure to you work with duplicates.

function convertByLookUpWave(wave2d,lookupWave[,reverseColors])
	wave wave2d			// the wave to be transformed
	wave lookupWave		// the lookup wave that is used
	variable reverseColors	// pass reverseColors=1 if the original image is shown with a reversed color table
 
	if(wavedims(wave2d)!=2)

ScrollTracesPanel IGOR.6.10.x-1.1

in
Downloaded 48 times
Official release from Subversion tag: IGOR-6-10--1-1
Download: ScrollTracesPanel-IGOR.6.10.x-1.1.zip
Size: 16.2 KB
md5_file hash: 6a3d5da65bec30db3ea0d4cd279ac195
First released: July 16, 2010 - 10:28
Last updated: July 16, 2010 - 10:30

Overview

Final 6.10 release version. This version does NOT use PackageTools.

Error propagation

Average rating
(1 vote)

Some code for error propagation (use at own risk, not triple checked it).

#pragma rtGlobals=1		// Use modern global access method.
//http://en.wikipedia.org/wiki/Propagation_of_uncertainty
 
Function EP_add(a, da, b, db, c, dc, [covar])
wave a, da, b, db, c, dc
variable covar
    // C = A + B
	duplicate/free a, tempa
	duplicate/free b, tempb
	duplicate/free da, tempda
	duplicate/free db, tempdb
 
	redimension/n=(dimsize(a, 0), dimsize(a, 1), dimsize(a, 2), dimsize(a, 3)) c, dc
	if(paramisdefault(covar))
		covar = 0
	endif
 
	multithread c = tempa + tempb

Find traces that intersect the graph marquee

Average rating
(1 vote)

This snippet shows a function that will examing the named graph and return a list of all traces that have points that fall within the graph marquee. Note that the traces must have points in the marquee, it's not enough that they intersect the marquee. The snippet handles the standard additive offset. I have not tried it on log axes. As written, it handles only the left and bottom axes.

#include <Graph Utility Procs>
 
// Make a list of all traces that have points that fall within the marquee
Function/S ListTracesInMarquee(graphname)
	String graphname
 

Determine the version of a procedure file

Average rating
(0 votes)

//**
// Determine the version of a compiled procedure window
// named procedureWinTitleStr.
// The version is defined using the #pragma version
// compiler directive.  For example,
// #pragma version=1.05.
//
// As stated in the Igor documentation, the line must
// start flush with the left of the window (that is, there
// can be no leading whitespace).  Spaces
// and tabs within the directive are ignored.
//
// Returns NaN if procedure window doesn't exist,
// 1.00 if no version is defined in the procedure window,

Syndicate content

Back to top