Unexpected Error Encountered with NaN or INF data values

One of the common causes of an "Unexpected Error Encountered" message if the background value for your data is -INF or negative infinity (-3.4E+0038) or contains NaN values. Some modules aren't able to handle those numbers, even though some data formats now use them as a background values. If a module tries to do multiplication functions on –INF or NaN, it goes out of a valid range and causes an Unexpected/untrapped error.


We have an easy fix for this -- a module called NANFIX. NaN means Not a Number. This module is designed to replace either NaN values or INF or -INF values with a different, user-specified value (e.g. -999).


It will convert all of the INF/NaN values in a single RST file, or in batch mode, it will convert all of the raster files in an input folder, and create fixed files of the same names in an output folder.

Have more questions? Submit a request

3 Comments

  • 0
    Avatar
    Srishtigwal01

    Is it available for libera gis terrset 2024 recent version.

  • 0
    Avatar
    Clark Labs

    Yes, NANFIX is included in TerrSet liberGIS.

  • 0
    Avatar
    Clark Labs

    You can either type NaNFix into the shortcut area on the toolbar:

    or you can find NANFIX under the File -- Import -- General Conversion Tools menu:

Please sign in to leave a comment.
Powered by Zendesk