Chris Beaumont's IDL Library

Download source code

single page | use frames     summary     class     fields     routine details     file attributes



nanswap, data, swap [, unswap=unswap]

This procedure swaps out NANs in an array with another value. It can also undo this swapping


data in required

A data cube

swap in required

A value to substitute in place of nans within data


unswap in optional

Reverse the procedure, replacing instances of swap with nan. Note that any naturally occuring instances of SWAP will be also replaced with nans.

File attributes

Modifcation date: Wed Oct 20 15:59:24 2010
Lines: 37