Jump to content

set null in ARCMAP


oz1

Recommended Posts

Would appreciate some help with this as the help section doesn't

 

I have a jpeg RGB image "test.jpg" with some white areas that I want to set to null.  The white values are B=251, G=255, R=255.

 

I cannot for the life of me get ARCMAP to do this.  Have been trying Set Null from the Spatial Analyst conditional toolbox as follows:

Input conditional raster - test.jpg

Expression - value>=251

Input false or constant raster - test.jpg

Output raster - SetNull_jpg4

 

Result is an error message:

ERROR 010152: Object IRasterStatistics is null.
ERROR 010152: Object IRasterStatistics is null.
ERROR 010152: Object IRasterStatistics is null.
Failed to execute (SetNull).
 

What am I doing wrong?

Link to comment
Share on other sites

There are two ways to assign the cell value in a raster dataset to be NoData—using the Set Null tool or through the raster dataset's Properties dialog box. You can also remove a value from being NoData using the raster dataset's Properties dialog box.

NoData values can also be assigned for a mosaic dataset using the Define Mosaic Dataset NoData tool. This tool allows you to specify more than one NoData value.

Editing a raster dataset's NoData value
Steps:
  1. In the ArcCatalog or the Catalog window, right-click the raster dataset and click Properties.
  2. On the General tab, under Raster Information is the NoData Value. Click the Edit button.

    The NoData Editor dialog box is opened.

  3. Click the column next to the band name to edit the NoData Value.
    • You must enter a value contained within the dataset.
    • Only one value can be entered for each band.
    • You can specify a different value for each band.
    • Alternatively, you can clear the value entered to remove the NoData value.

    ---------------------------------------------------------------------------

    caution.pngCaution:

    Be careful not to specify a value that is also valid within the dataset. For example, 0 may be used as a default value for cells that don't have a valid value, but 0 may also be used to define valid values in the raster dataset. If this is the case you may need to define a mask. For more information, see the Mask environment setting or the Mask function.

    --------------------------------------------------------------------------

  4. If you don't know the value to enter, you can click the Compute button and the application will choose the appropriate value.
  5. Click OK to close the dialog boxes.

Hope that will help you.

;)

 

darksabersan.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.

Disable-Adblock.png

 

If you enjoy our contents, support us by Disable ads Blocker or add GIS-area to your ads blocker whitelist