Manage No-Data
This application has two modes. The first allows building a mask of no-data pixels from the no-data flags read from the image file. The second allows updating the change the no-data value of an image (pixels value and metadata). This last mode also allows replacing NaN in images with a proper no-data value. To do so, one should activate the NaN is no-data option.
This section describes in details the parameters available for this application. Table 4.14, page 439 presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is ManageNoData.
Parameter key | Parameter type |
Parameter description |
in | Input image |
Input image |
out | Output image |
Output Image |
usenan | Boolean |
Consider NaN as no-data |
mode | Choices |
No-data handling mode |
mode buildmask | Choice |
Build a no-data Mask |
mode changevalue | Choice |
Change the no-data value |
mode apply | Choice |
Apply a mask as no-data |
mode.buildmask.inv | Float |
Inside Value |
mode.buildmask.outv | Float |
Outside Value |
mode.changevalue.newv | Float |
The new no-data value |
mode.apply.mask | Input image |
Mask image |
mode.apply.ndval | Float |
Nodata value used |
ram | Int |
Available RAM (Mb) |
inxml | XML input parameters file |
Load otb application from xml file |
outxml | XML output parameters file |
Save otb application to xml file |
|
||
|
||
|
||
|
||
|
Consider NaN as no-data If active, the application will consider NaN as no-data values as well
No-data handling mode Allows choosing between different no-data handling options Available choices are:
Available RAM (Mb) Available memory for processing (in MB)
Load otb application from xml file Load otb application from xml file
Save otb application to xml file Save otb application to xml file
To run this example in command-line, use the following:
To run this example from Python, use the following code snippet:
None
This application has been written by OTB-Team.
These additional ressources can be useful for further information: