<?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 raster to .csv bug- using sample tool in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/raster-to-csv-bug-using-sample-tool/m-p/567072#M24941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A colleague of mine who works in R requested a .csv table of a habitat/landcover raster dataset, including the habitat values as well as the location x,y coordinate data.&amp;nbsp;&lt;SPAN&gt;I was trying to save my colleague a step of converting to .csv in R studio, but was unsure if there is a solution in ArcPro at the moment?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a work around to converting a raster dataset (categorical) to a .csv I used the Sample tool,&amp;nbsp;&lt;A href="https://support.esri.com/en/technical-article/000007693"&gt;Sample Tool Description&lt;/A&gt;&amp;nbsp;, to create a table and then exported this table to a .csv in &lt;STRONG&gt;ArcPro 2.5.1&lt;/STRONG&gt;. However, one persistent issue was brought to my attention by the colleague when they imported the .csv table into R.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #222222; font-size: small;"&gt;&lt;EM&gt;I found a sneaky little bug in the habitat layer that I'm hoping you could help me with. When I rasterized the point's you provided I saw these horizontal white lines, as shown below.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #222222; font-size: small;"&gt;&lt;EM&gt;I thought these were just plotting artifacts, but it turns out that there's actually missing habitat values across these bands. I dug into it and found which rows in the habitat data were missing, and realized these bands were 140 rows apart (so if the row with index "i" is missing, so is the row with index "i + 140").&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="image.png" src="https://mail.google.com/mail/u/0?ui=2&amp;amp;ik=b78ae71ca3&amp;amp;attid=0.1&amp;amp;permmsgid=msg-f:1666969875061233617&amp;amp;th=17224444f64d57d1&amp;amp;view=fimg&amp;amp;sz=s0-l75-ft&amp;amp;attbid=ANGjdJ-TJN6xKsEx0291e4xUBcXmKpxV4xTBaPhOME2teNOO0R8N-iz4vSTaywNcsypQANcbU08j0ZeCkjb6MUQ_z7gs0u3gtrHTkVXtr_k4vozpZbL7kGe7-owkZ1k&amp;amp;disp=emb&amp;amp;realattid=ii_kabgzkyp0" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts? Has anyone else encountered this issue of missing Y values every x# of rows or has other suggestions for converting direct to .csv in ArcPro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2020 17:09:37 GMT</pubDate>
    <dc:creator>AmandaTemple</dc:creator>
    <dc:date>2020-05-18T17:09:37Z</dc:date>
    <item>
      <title>raster to .csv bug- using sample tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/raster-to-csv-bug-using-sample-tool/m-p/567072#M24941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A colleague of mine who works in R requested a .csv table of a habitat/landcover raster dataset, including the habitat values as well as the location x,y coordinate data.&amp;nbsp;&lt;SPAN&gt;I was trying to save my colleague a step of converting to .csv in R studio, but was unsure if there is a solution in ArcPro at the moment?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a work around to converting a raster dataset (categorical) to a .csv I used the Sample tool,&amp;nbsp;&lt;A href="https://support.esri.com/en/technical-article/000007693"&gt;Sample Tool Description&lt;/A&gt;&amp;nbsp;, to create a table and then exported this table to a .csv in &lt;STRONG&gt;ArcPro 2.5.1&lt;/STRONG&gt;. However, one persistent issue was brought to my attention by the colleague when they imported the .csv table into R.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #222222; font-size: small;"&gt;&lt;EM&gt;I found a sneaky little bug in the habitat layer that I'm hoping you could help me with. When I rasterized the point's you provided I saw these horizontal white lines, as shown below.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #222222; font-size: small;"&gt;&lt;EM&gt;I thought these were just plotting artifacts, but it turns out that there's actually missing habitat values across these bands. I dug into it and found which rows in the habitat data were missing, and realized these bands were 140 rows apart (so if the row with index "i" is missing, so is the row with index "i + 140").&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="image.png" src="https://mail.google.com/mail/u/0?ui=2&amp;amp;ik=b78ae71ca3&amp;amp;attid=0.1&amp;amp;permmsgid=msg-f:1666969875061233617&amp;amp;th=17224444f64d57d1&amp;amp;view=fimg&amp;amp;sz=s0-l75-ft&amp;amp;attbid=ANGjdJ-TJN6xKsEx0291e4xUBcXmKpxV4xTBaPhOME2teNOO0R8N-iz4vSTaywNcsypQANcbU08j0ZeCkjb6MUQ_z7gs0u3gtrHTkVXtr_k4vozpZbL7kGe7-owkZ1k&amp;amp;disp=emb&amp;amp;realattid=ii_kabgzkyp0" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts? Has anyone else encountered this issue of missing Y values every x# of rows or has other suggestions for converting direct to .csv in ArcPro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2020 17:09:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/raster-to-csv-bug-using-sample-tool/m-p/567072#M24941</guid>
      <dc:creator>AmandaTemple</dc:creator>
      <dc:date>2020-05-18T17:09:37Z</dc:date>
    </item>
  </channel>
</rss>

