<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: delete random pixels in grid in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/delete-random-pixels-in-grid/m-p/194384#M11065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is what I came up with in the mean time and I think my approach is similiar to your suggestion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a raster where vegetation is Value 1 and Non Vegetion NODATA. I used this raster as an analysis mask in Spatial Analyst to create a random raster with the function rand() (not exactly sure on this point, as I do not really know what this function does), then to delete 35% of the pixels I changed all pixels with a value above 0.35 to 1 and the others became NODATA. I used con([randomgrid]&amp;gt;0.35, 1). I then reclassified this grid so all NODATA cells became 0 and I multiplied this raster with my original vegetation raster and the result is hopefully what I wanted to achieve, 35% less pixels representing vegetation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds really longwinded, but I do not have a lot experience with ArcGIS, but I hope my approach works. Maybe someone can suggest a quicker route?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jul 2011 15:57:09 GMT</pubDate>
    <dc:creator>JuliaPaleari</dc:creator>
    <dc:date>2011-07-14T15:57:09Z</dc:date>
    <item>
      <title>delete random pixels in grid</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-random-pixels-in-grid/m-p/194382#M11063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope someone could help, or direct me to some useful resources. I have a raster dataset representing vegetation and I would like to delete randomly lets say 30% of the vegetation pixels. How can this be achieved?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your replies&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Juli&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 12:44:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-random-pixels-in-grid/m-p/194382#M11063</guid>
      <dc:creator>JuliaPaleari</dc:creator>
      <dc:date>2011-06-29T12:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: delete random pixels in grid</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-random-pixels-in-grid/m-p/194383#M11064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You cannot just remove cells from a raster.&amp;nbsp; The equivalent would be to change the value of random cells to NODATA (or zero, as needed).&amp;nbsp; To do this, you could create a random point layer, then convert this to raster.&amp;nbsp; Once a raster, reclassify the cells to whatever value will delete the vegetation values. Make sure your other cells have some other value to keep them apart, of course.&amp;nbsp; Do you have Spatial Analyst?&amp;nbsp; If so, the Set Null function can be used to replace cell values where a condition is met, e.g. where your random points lie.&amp;nbsp; Use this to change your vegetation cell values accordingly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 16:31:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-random-pixels-in-grid/m-p/194383#M11064</guid>
      <dc:creator>MarkEllis</dc:creator>
      <dc:date>2011-07-12T16:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: delete random pixels in grid</title>
      <link>https://community.esri.com/t5/data-management-questions/delete-random-pixels-in-grid/m-p/194384#M11065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is what I came up with in the mean time and I think my approach is similiar to your suggestion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a raster where vegetation is Value 1 and Non Vegetion NODATA. I used this raster as an analysis mask in Spatial Analyst to create a random raster with the function rand() (not exactly sure on this point, as I do not really know what this function does), then to delete 35% of the pixels I changed all pixels with a value above 0.35 to 1 and the others became NODATA. I used con([randomgrid]&amp;gt;0.35, 1). I then reclassified this grid so all NODATA cells became 0 and I multiplied this raster with my original vegetation raster and the result is hopefully what I wanted to achieve, 35% less pixels representing vegetation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds really longwinded, but I do not have a lot experience with ArcGIS, but I hope my approach works. Maybe someone can suggest a quicker route?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 15:57:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/delete-random-pixels-in-grid/m-p/194384#M11065</guid>
      <dc:creator>JuliaPaleari</dc:creator>
      <dc:date>2011-07-14T15:57:09Z</dc:date>
    </item>
  </channel>
</rss>

