| Environments | PYTHON :: EASI |
| Quick links | Description :: Parameters :: Parameter descriptions :: Details :: Example |
| Back to top |
| Back to top |
replacenans(file, dbic, newval)
| Name | Type | Caption | Length | Value range |
|---|---|---|---|---|
| FILE * | str | Input file. | 1 - | |
| DBIC | List[int] | Input raster channel | 0 - | Default: 1 |
| NEWVAL | str | 0 - |
| Back to top |
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.| Back to top |
| Back to top |
Default, replaces nans with nodata.
from pci.replacenans import replacenans file="file.pix" #File to have nans replaced dbic=[] #select channel, default 1st channel newval="" #specify value to replace NANs, defualt NoData replacenans(file, dbic, newval)
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.