REPLACENANS

Replaces NANs with NoData or specified value


EnvironmentsPYTHON :: EASI
Quick linksDescription :: Parameters :: Parameter descriptions :: Details :: Example

Back to top

Description


To replace all NANs with a specified value or the default NoData value found in the metadata.
Back to top

Parameters


Name Type Caption Length Value range
FILE * String Input file. 1 - 192  
DBIC Integer Input raster channel 0 -   Default: 1
NEWVAL String 0 -  
MONITOR String Monitor mode 0 - 3 ON, OFF
Default: ON

* Required parameter
Back to top

Parameter descriptions

FILE

>Name of file in which all NANs will be replaced with the NoData value or some other specified value.

C:/pixfile.pix

DBIC

Complex and real channels are supported.

NEWVAL

If NEWVAL = nodata, and nodata is not defined at the file level or at the channel level, the PPF will error.

MONITOR

The program progress can be monitored by printing the percentage of processing completed. A system parameter, MONITOR, controls this activity.

Available options are:

Back to top

Details

Back to top

Example

Default, replaces nans with nodata.

EASI>FILE="file.pix"						!File to have nans replaced
EASI>DBIC=									!select channel, default 1st channel
Easi>NEWVAL=""								!specify value to replace NANs, defualt NoData
EASI>run REPLACENANS
			

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.