<?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: ArcGRID format to ASCII in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/arcgrid-format-to-ascii/m-p/281947#M16168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I build a lot of ascii grids and found that the number precision makes a big difference in the storage space for ascii grids. For a float grid Arc will automatically fill up an 8-character space in the ascii grid. I round off the values before exporting by multiplying the float grid by the number of decimal places, then converting it to an integer grid, then dividing it by the initial value. The following is a python script to do just that on an interpolated grid of precipitation (ras_out_ppt) for one day (str_day), and stored in the folder in the string variable grid_path_str.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.RasterToASCII_conversion((Float(Int(ras_out_ppt * 1000)) / 1000), grid_path_str + str_date)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jan 2012 13:08:00 GMT</pubDate>
    <dc:creator>DerekRyter</dc:creator>
    <dc:date>2012-01-05T13:08:00Z</dc:date>
    <item>
      <title>ArcGRID format to ASCII</title>
      <link>https://community.esri.com/t5/data-management-questions/arcgrid-format-to-ascii/m-p/281945#M16166</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can anyone tell me why the size of a ArcGID file when converted to ASCI increased by almost 4 times. I converted a 8GB ArcGrid file to ASCI file which is almost 37GB. Can any one tell me the reason ? Is there any thing i can do to reduce its size ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Dec 2011 01:21:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcgrid-format-to-ascii/m-p/281945#M16166</guid>
      <dc:creator>Naga_RaghuveerModala</dc:creator>
      <dc:date>2011-12-04T01:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGRID format to ASCII</title>
      <link>https://community.esri.com/t5/data-management-questions/arcgrid-format-to-ascii/m-p/281946#M16167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Grid format is binary, and uses compression, while ASCII isn't binary and doesn't.&amp;nbsp; If the increase&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is only 4x, it's only because the range of values in the grid is rather small -- I'd expect a larger increase&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in storage with a wider range of values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There isn't really any way to make an ASCII raster smaller than binary -- even without compression&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;coming into play, rasters that store in a byte are going to require, on average, 3.57 bytes in ASCII&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(0-9 use two bytes [with spaces], 10-99 use 3, and 100-255 use 4).&amp;nbsp; The grid format uses compression&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;on four-byte integer or floating-point values, so a grid is already 2x or 4x larger than a GeoTIFF that&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;supports 1- and 2-byte integers. Once you start transcribing into ASCII, you've got the separator space&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;plus 1-11 digits (with the negitive ranges) for integers and 2 characters left of the decimal, the decimal,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and 6-8 characters to the right, and then "e" a sign character and to two digits for the exponent&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(~15 characters for each 4-byte uncompressed float).&amp;nbsp; Compression usually achieves ~40-60% savings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so the worst case expansion is on the order of 10-12x.&amp;nbsp; It that light, 4x doesn't look so bad.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to reduce the storage, you'll need to look at a raster format that supports smaller pixel depth&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and lossless compression.&amp;nbsp; The lossy compression formats (JPEG, MrSID, JP2K) achieve high compression&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at the cost of precise reproduction of the source data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 02:16:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcgrid-format-to-ascii/m-p/281946#M16167</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-12-19T02:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGRID format to ASCII</title>
      <link>https://community.esri.com/t5/data-management-questions/arcgrid-format-to-ascii/m-p/281947#M16168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I build a lot of ascii grids and found that the number precision makes a big difference in the storage space for ascii grids. For a float grid Arc will automatically fill up an 8-character space in the ascii grid. I round off the values before exporting by multiplying the float grid by the number of decimal places, then converting it to an integer grid, then dividing it by the initial value. The following is a python script to do just that on an interpolated grid of precipitation (ras_out_ppt) for one day (str_day), and stored in the folder in the string variable grid_path_str.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.RasterToASCII_conversion((Float(Int(ras_out_ppt * 1000)) / 1000), grid_path_str + str_date)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 13:08:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcgrid-format-to-ascii/m-p/281947#M16168</guid>
      <dc:creator>DerekRyter</dc:creator>
      <dc:date>2012-01-05T13:08:00Z</dc:date>
    </item>
  </channel>
</rss>

