<?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: Raster rescale problem in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604422#M20048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried rescaling a raster, and it seemed to work fine. If you look at the details for the raster (Properties -&amp;gt; Source), do you see the expected cell size information displayed? It's possible that it's a display issue, and the output raster is correct, depending on the scale you're looking at the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ASCII driver doesn't support non-square pixels for import, another alternative is to do an initial conversion to a format that does support rectangular cells. For example, you can use &lt;A href="http://www.gdal.org/"&gt;GDAL&lt;/A&gt; to create a Golden Surfer compatible ASCII grid, by adding DX and DY elements instead of CELLSIZE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;DX 0.1667&lt;BR /&gt;DY 0.1000&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With that alternate header, you can use gdal_translate to output a GeoTIFF which is almost universally readable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1430237851506947 jive_text_macro" data-renderedposition="321_8_914_16" jivemacro_uid="_1430237851506947"&gt;&lt;P&gt;gdal_translate -of GTiff&amp;nbsp; output.tif input.asc&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another alternative would be to write out the file as a BIL and generate a header with differing X and Y heights, but I'd recommend the solution above over it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2015 16:18:16 GMT</pubDate>
    <dc:creator>ShaunWalbridge</dc:creator>
    <dc:date>2015-04-28T16:18:16Z</dc:date>
    <item>
      <title>Raster rescale problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604421#M20047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the climatology (1971-2000) temperature and salinity data for the European Shelf from Berx &amp;amp; Hughes (2009) Con Shelf Res 29, 2286-2292.&amp;nbsp; Each of the datasets have a resolution of 1/6 deg longitude by 1/10 deg latitude.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the raw files I have created a raster (*.asc) file with the following header:&lt;/P&gt;&lt;P&gt;ncols 150&lt;/P&gt;&lt;P&gt;nrows 170&lt;/P&gt;&lt;P&gt;xllcorner -14.9167&lt;/P&gt;&lt;P&gt;yllcorner 47.05&lt;/P&gt;&lt;P&gt;cellsize 0.1667&lt;/P&gt;&lt;P&gt;nodata_value -9999&lt;/P&gt;&lt;P&gt;-9999 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While this created a raster with the LL point correct the raster has square tiles and does not match the correct coverage.&amp;nbsp; I have tried using the raster RESCALE function to multiply the Y-values by 0.59988 to bring them correct, but the result is a raster comprising lines (rows) of square, rectangle, rectangle, square, rectangle, rectangle, etc etc rather than all the original squares becoming rectangles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried making the rasters at 0.1 dd and multiplying the other axis by 1.667 but the same thing happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using 10.2 and have heard of problems with rasters.&amp;nbsp; Do I need a different version or a different process?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wishing to stretch all the squares to rectangles and do so, so they are all 1/6 deg longitude by 1/10 deg latitude.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 17:37:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604421#M20047</guid>
      <dc:creator>StephenCotterell</dc:creator>
      <dc:date>2015-04-27T17:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Raster rescale problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604422#M20048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried rescaling a raster, and it seemed to work fine. If you look at the details for the raster (Properties -&amp;gt; Source), do you see the expected cell size information displayed? It's possible that it's a display issue, and the output raster is correct, depending on the scale you're looking at the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ASCII driver doesn't support non-square pixels for import, another alternative is to do an initial conversion to a format that does support rectangular cells. For example, you can use &lt;A href="http://www.gdal.org/"&gt;GDAL&lt;/A&gt; to create a Golden Surfer compatible ASCII grid, by adding DX and DY elements instead of CELLSIZE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;DX 0.1667&lt;BR /&gt;DY 0.1000&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With that alternate header, you can use gdal_translate to output a GeoTIFF which is almost universally readable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1430237851506947 jive_text_macro" data-renderedposition="321_8_914_16" jivemacro_uid="_1430237851506947"&gt;&lt;P&gt;gdal_translate -of GTiff&amp;nbsp; output.tif input.asc&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another alternative would be to write out the file as a BIL and generate a header with differing X and Y heights, but I'd recommend the solution above over it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 16:18:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604422#M20048</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2015-04-28T16:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Raster rescale problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604423#M20049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shaun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a few odd things here and you have suggested a good plan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the resolution is 1/6 deg longitude by 1/10 deg latitude I can either create the raster at 0.16667 degree spacing and shrink the x-axis, or at 0.1 degree and expand the Y-axis and I've tried both.&amp;nbsp; Here the example is with the spacing at 0.16667; 150 C and 170 R.&amp;nbsp; After resizing with the x-axis kept at 1.0 and the y-axis expanded by 1.667 the cellsize is now 0.1 x 0.1 and I have 251 C and 170 R.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not think the problem is with the display, exactly.&amp;nbsp; Whatever scale I try to view the file in I see the same repeating pattern.&amp;nbsp; Please see attached for the Irish Sea (with unique values as symbology).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We've been doing a little digging with other versions of ArcMap (10.3) and the raster rescale works correctly in that version however, when we move it to a PC running version 10.2 it does not display correctly so it seems to be related to the problems with 10.2's raster calculator functions/inability to 'see' rectangular raster cells.&amp;nbsp; I think I need to move up a version!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 11:26:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604423#M20049</guid>
      <dc:creator>StephenCotterell</dc:creator>
      <dc:date>2015-04-29T11:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Raster rescale problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604424#M20050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I would have made points from the original input and then just re-gridded them using Natural Neighbour interp into square pixels.&lt;/P&gt;&lt;P&gt;The ration of X to Y will be a function of the projection that the data was processed in.&lt;/P&gt;&lt;P&gt;Why not go back to a projected coord sys for the area of interest.&lt;/P&gt;&lt;P&gt;To me, square pixels makes more sense than "rectangular" ones...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 14:37:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604424#M20050</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2015-04-29T14:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Raster rescale problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604425#M20051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Neil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may be getting this all wrong, but it makes some sense to be able to take a file, which is arranged as a sort of 'raster' to begin with and create a header so it actually is a raster, regardless of whether the cells are square or rectangular.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached an original file (from the ICES climatology web section) so you can see what these look like and the accompanying readme file.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to RESCALE these in 10.2 the output seems wrong.&amp;nbsp; Someone has used the raster rescale function to alter these using 10.3 and it worked fine, but when I put these in 10.2 the results are wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is currently with ESRI as I think there may be a bug in 10.2's raster RESIZE function.&amp;nbsp; I'll post what they get back to me with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no joy it'll be point data and interpolation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 15:15:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604425#M20051</guid>
      <dc:creator>StephenCotterell</dc:creator>
      <dc:date>2015-04-29T15:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Raster rescale problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604426#M20052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, but I don't see any attachment here...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 06:28:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604426#M20052</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2015-04-30T06:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Raster rescale problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604427#M20053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Neil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'attachments' are at the bottom of the above message.&amp;nbsp; One is called 'README.TXT.zip' the other is 'mon_jan_tempS.txt.zip'&amp;nbsp; I've included a screen grab, below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm also sending them to your email address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 10:37:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604427#M20053</guid>
      <dc:creator>StephenCotterell</dc:creator>
      <dc:date>2015-04-30T10:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Raster rescale problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604428#M20054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can't get Rescale or GDAL to do what you need, the point conversion isn't particularly onerous, I've uploaded a script which converts your example file to an XYZ formatted CSV:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/EsriOceans/support/blob/master/fixed-width-to-xyz/parse.py" title="https://github.com/EsriOceans/support/blob/master/fixed-width-to-xyz/parse.py"&gt;support/parse.py at master · EsriOceans/support · GitHub&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WIth that, you should be able to import the text directly into ArcGIS, and then right click the layer &amp;gt; Display XY Data to get a vector representation of it, and continue your analysis from there with the cell centers being represented by the points. You can do a variety of things from that point, including creating your correct raster, and joining against the points to assign values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 20:52:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604428#M20054</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2015-04-30T20:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Raster rescale problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604429#M20055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shaun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While I'm ok at running tools (once I know which one to pick) scripts are a new area for me.&amp;nbsp; I've followed a few youtube tutorials and looked on the ESRI pages, but I get an error (see attached).&amp;nbsp; Can you recommend a suitable link to assist with this.&amp;nbsp; Sorry, I realise that this is outwith the original post, but I have 48 of these files to convert and ESRI have yet to assign the raster rescale query to one of their support team.&amp;nbsp; Your script is my best hope at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 13:21:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604429#M20055</guid>
      <dc:creator>StephenCotterell</dc:creator>
      <dc:date>2015-05-07T13:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Raster rescale problem</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604430#M20056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The example script I posted just looked for a single file in the current directory. Here's a more robust version as a Python toolbox (requires 10.1+):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/EsriOceans/support/blob/master/fixed-width-to-xyz/fixed-width-to-xyz.pyt" title="https://github.com/EsriOceans/support/blob/master/fixed-width-to-xyz/fixed-width-to-xyz.pyt"&gt;support/fixed-width-to-xyz.pyt at master · EsriOceans/support · GitHub&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open that in Catalog view, and you should get a toolbox with a single tool. It takes an input text file from the project and generates an output text file with X, Y, Z values, which you can use directly in the software.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 14:42:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/raster-rescale-problem/m-p/604430#M20056</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2015-05-07T14:42:41Z</dc:date>
    </item>
  </channel>
</rss>

