I have a raster with 2 rows:
- one with a ton of cells on it,
- the other row with a few cells that I got after using the raster calculator tool.
How I can convert only those cells into points but not all of them?
I have a raster with 2 rows:
How I can convert only those cells into points but not all of them?
You can use the "Extract by Mask" tool to create a new raster layer that only contains the cells of interest, and then use the "Raster to Point" tool to convert the cells of this new raster layer to points.
Here's how to do this:
Open ArcMap and add the raster layer that you want to extract cells from.
Go to the "ArcToolbox" window and navigate to the "Spatial Analyst Tools" > "Extraction" > "Extract by Mask" tool.
In the "Extract by Mask" window, select the input raster layer as the "Input raster or feature mask data".
Select the layer or feature class that you want to use as the mask. This can be a raster layer, a feature layer, or a shapefile. Only the cells that fall within the mask will be extracted.
Select the output location and name for the output raster that will be created.
Click "OK" to run the tool. This will create a new raster layer that only contains the cells of interest. You can then use the "Raster to Point" tool as described above to convert the cells of this new raster layer to points.
Alternatively, you can also use the "Extract Values to Points" tool to extract the values of the cells of interest directly to a point feature class, without creating a new raster layer. This tool is available in the Spatial Analyst toolbox in ArcGIS. To use this tool, follow the steps above to create a mask, and then use the mask as the "Input Features" in the "Extract Values to Points" tool, and the input raster as the "Input Raster or Feature Class". This will create a new point feature class with the values of the cells of interest as attributes of the points.