# ManageNoData

## Brief Description

Manage No-Data

## Tags

Conversion,Image Dynamic,Image Manipulation

## Long Description

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.

## Parameters

- [param] -in <string> Input image. Mandatory: True. Default Value: ""
- [param] -out <string> Output image. Mandatory: True. Default Value: ""
- [param] -usenan <boolean> If active, the application will consider NaN as no-data values as well. Mandatory: False. Default Value: "True"
- [param] -ram <int32> Available memory for processing (in MB). Mandatory: False. Default Value: "128"
- [param] -inxml <string> Load otb application from xml file. Mandatory: False. Default Value: ""
- [param] -outxml <string> Save otb application to xml file. Mandatory: False. Default Value: ""
[choice] -mode Allows choosing between different no-data handling options buildmask,changevalue,apply. Mandatory: True. Default Value: "buildmask"

- [group] -buildmask

- [param] -mode.buildmask.inv <float> Value given in the output mask to pixels that are not no data pixels. Mandatory: True. Default Value: "1"
- [param] -mode.buildmask.outv <float> Value given in the output mask to pixels that are no data pixels. Mandatory: True. Default Value: "0"

- [group] -changevalue

- [param] -mode.changevalue.newv <float> The new no-data value. Mandatory: True. Default Value: "0"

- [group] -apply

- [param] -mode.apply.mask <string> Mask to be applied on input image (valid pixels have non null values). Mandatory: True. Default Value: ""
- [param] -mode.apply.ndval <float> No Data value used according to the mask image. Mandatory: True. Default Value: "0"

## Limitations

None

## Authors

OTB-Team

## See Also

BanMath

## Example of use

- in: QB_Toulouse_Ortho_XS.tif

- out: QB_Toulouse_Ortho_XS_nodatamask.tif uint8

- mode.buildmask.inv: 255

- mode.buildmask.outv: 0