Skip to main content Skip to navigation

IDL Library

signof.pro

Calculate the sign of an input variabl, output is the same format as input

x_sign=signof(x)

gradient.pro

Calculate the gradient function of a 2D image or array

meshgrid.pro

the same as meshgrid in matlab.

nonlinear diffision image filtering

Perform nonlinear diffusion image filtering

NB: if you are not under solarsoft environment, please include the handy function from solar soft in you working directory.

exist.pro

function exist,var

return,n_elements(var) ne 0

end

in_range.pro

function in_range,input,array

if (not exist(input)) or (not exist(array)) then return,0b
np=n_elements(input)
amax=max(array,min=amin)
imax=max(input,min=imin)

out=(imin lt amin) or (imax gt amax)

return,1b-out

end

sgn.pro

FUNCTION sgn,in

return, fix(in gt 0) - fix(in lt 0)

end