<?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: Merging Raster files in Water Resources Questions</title>
    <link>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535327#M2786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of the tiles seem to be overlapping. Here is the extent.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/352342_Screenshot 2017-05-17 10.10.49.png" style="width: 620px; height: 465px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 May 2017 01:13:50 GMT</pubDate>
    <dc:creator>AnanG</dc:creator>
    <dc:date>2017-05-17T01:13:50Z</dc:date>
    <item>
      <title>Merging Raster files</title>
      <link>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535323#M2782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to merge many&amp;nbsp;landuse raster data. Each raster file has its own different kinds of landuse type.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/351250_Screenshot 2017-05-16 16.00.33.png" style="width: 620px; height: 348px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to merge all of them (I have like 30+ raster files) the "Mosaic to New Raster" tool gives me an output with only 4 (the minimum number of unique values in one of the raster files) types of landuse&amp;nbsp;file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="/legacyfs/online/351254_Screenshot 2017-05-16 16.02.55.png" style="width: 620px; height: 348px;" /&gt;&lt;/P&gt;&lt;P&gt;I also tried using "Combine" tool with (&amp;lt; 20 files) but it didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I merge all the landuse&amp;nbsp;raster files and also get 7 unique values in the final output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 07:04:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535323#M2782</guid>
      <dc:creator>AnanG</dc:creator>
      <dc:date>2017-05-16T07:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Raster files</title>
      <link>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535324#M2783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do they overlap in extent?&lt;/P&gt;&lt;P&gt;are they adjacent with no overlap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answers to these questions might suggest whether a reclass is necessary for some or all the files or whether a merge/mosaic in combination with a combine is necessary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 09:06:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535324#M2783</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-05-16T09:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Raster files</title>
      <link>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535325#M2784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean by "overlap in extent"? They all have the same geographic coordinate system.&lt;/P&gt;&lt;P&gt;Prior to merging, I previously reclassified them with landuse categories from 1 to 7.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 00:45:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535325#M2784</guid>
      <dc:creator>AnanG</dc:creator>
      <dc:date>2017-05-17T00:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Raster files</title>
      <link>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535326#M2785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;extent.... left right, top bottom... are they all the same or are they side-by-side or are there some that overlap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 01:01:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535326#M2785</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-05-17T01:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Raster files</title>
      <link>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535327#M2786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of the tiles seem to be overlapping. Here is the extent.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/352342_Screenshot 2017-05-17 10.10.49.png" style="width: 620px; height: 465px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 01:13:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535327#M2786</guid>
      <dc:creator>AnanG</dc:creator>
      <dc:date>2017-05-17T01:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Raster files</title>
      <link>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535328#M2787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so you have to check that they are all in the same coordinate system.&amp;nbsp; Your example is in decimal degrees, hence a Geographic Coordinate System.&amp;nbsp; When you do a merge, or anything with multiple files, you have to decide whether you are working with the union (ie combination) of their extents... what to do with overlaps (if any), what to do with gaps (spaces between adjoining layers), the final cell size (if any differ) and a variety of other things.&amp;nbsp; This is why I said that it may be a combination of steps/processes and a one-button solution may not be possible.&amp;nbsp; So figure out exactly what you have and how to proceed incrementally.&amp;nbsp; It is apparent from your previous attempt that something got left out during the process... you have to figure out why.&amp;nbsp; There is nothing wrong with combining a couple of files that you know are adjacent without overlaps etc... then proceed to introduce other files as you go.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 01:23:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535328#M2787</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-05-17T01:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Raster files</title>
      <link>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535329#M2788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked my files again and all their extents are different. I also noticed a small gap between the adjoining layers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/352355_Screenshot 2017-05-17 11.00.03.png" style="width: 620px; height: 348px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="/legacyfs/online/352356_Screenshot 2017-05-17 11.00.18.png" style="width: 620px; height: 348px;" /&gt;&lt;/P&gt;&lt;P&gt;How do I make sure there are no gaps and also make the extents uniform? Thanks, Dan! Appreciate your help!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 02:03:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535329#M2788</guid>
      <dc:creator>AnanG</dc:creator>
      <dc:date>2017-05-17T02:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Raster files</title>
      <link>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535330#M2789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/Dan_Patterson"&gt;Dan_Patterson&lt;/A&gt;‌ - Hi again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I unified the extent of the each file by exporting the data and changing the pixel size to a uniform size (0.00054). I just merged it again but could not get the output. I checked the coordinate system too, it looks alright. What else could I be doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 03:11:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535330#M2789</guid>
      <dc:creator>AnanG</dc:creator>
      <dc:date>2017-05-17T03:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Raster files</title>
      <link>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535331#M2790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This option looks like you are getting on track, it appears that the colour maps differ, and I would check the cell sizes of these to ensure that they are the same. Then examine the options in&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/mosaic.htm"&gt; mosaic &lt;/A&gt;to ensure that you get everything aligned and color matched.&amp;nbsp; I would do this with copies,... you can mosaic to new raster, but that tool keeps saying mosaic has more options.&amp;nbsp; the &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/create-mosaic-dataset.htm"&gt;mosaic dataset option&lt;/A&gt; is another to look at depending on what you want to do&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 03:35:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535331#M2790</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-05-17T03:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Raster files</title>
      <link>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535332#M2791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How would you suggest me to match the colours? I used the "Mosaic Dataset Option" only to get a black coloured raster that looked like DEM. I need to put all the coloured landuse maps together for landuse analysis.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 04:50:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535332#M2791</guid>
      <dc:creator>AnanG</dc:creator>
      <dc:date>2017-05-17T04:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Raster files</title>
      <link>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535333#M2792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again &lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I tried the "Mosaic to raster tool" for two files with different classes and it merged. The dark blue map shows the merged file (One file with 6 values; other 7)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="As you can see here, the dark blue map shows two files merging despite the differences in values (one had 7; other had 6)" class="image-1 jive-image j-img-original" src="/legacyfs/online/352357_Screenshot 2017-05-17 14.04.39.png" style="width: 620px; height: 348px;" /&gt;&lt;/P&gt;&lt;P&gt;The problem is definitely with the gaps between the adjoining rasters. I tried to increase the pixel size for the raster which had gaps. But no matter how much I increase the pixel size, the gaps don't disappear. How do you suggest me to fix these gaps?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="/legacyfs/online/352358_Screenshot 2017-05-17 14.04.47.png" style="width: 620px; height: 348px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the inconvenience. I really appreciate your help. Thank you.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 05:09:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535333#M2792</guid>
      <dc:creator>AnanG</dc:creator>
      <dc:date>2017-05-17T05:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Raster files</title>
      <link>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535334#M2793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;from the &lt;A href="http://support.esri.com/technical-article/000004792" rel="nofollow noopener noreferrer" target="_blank"&gt;&lt;STRONG&gt;support pages&lt;/STRONG&gt;&lt;/A&gt;, one method is to use an averaging approach&lt;/P&gt;&lt;P&gt;To: Remove and replace no data values within a raster using statistical information from the surrounding data values. &lt;IFRAME frameborder="0" height="0px" name="stSegmentFrame" scrolling="no" style="display: none;" width="0px"&gt;

&lt;/IFRAME&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;STRONG&gt;For version 10.0&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;1. In ArcMap, navigate to ArcToolbox &amp;gt; Spatial Analyst Tools &amp;gt; Map Algebra and open the Raster Calculator.&lt;P&gt;&lt;/P&gt;2. In Raster Calculator, input the following syntax:&amp;nbsp;&lt;BR /&gt;&lt;DIV&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;
Con(IsNull("raster"), FocalStatistics("raster", NbrRectangle(5,5, "CELL"), "MEAN"), "raster")

&lt;/PRE&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/focal-statistics.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;&lt;STRONG&gt;Focal Statistics&lt;/STRONG&gt;&lt;/A&gt; from help.... You might have to experiment a big.&amp;nbsp; BUT!!! get everything together and quit playing around with the cell size to try and close the gaps...it does NOT work that way &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:15:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535334#M2793</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T23:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Raster files</title>
      <link>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535335#M2794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;Thank you for the help Dan!&lt;/P&gt;&lt;P&gt;I used the "Raster Calculator" and it gave me something like this. Something still seems wrong though (see the red box). Maybe my focal mean&amp;nbsp;values are still smaller for that file. Moreover, it does not have any attribute table which would show&amp;nbsp;the number of pixels for each landuse type. What do I do now? Sorry for troubling you so much. I feel like I am getting closer to the solution so I can't help but ask you &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/352367_Screenshot 2017-05-17 15.35.22.png" style="width: 620px; height: 348px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 06:42:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535335#M2794</guid>
      <dc:creator>AnanG</dc:creator>
      <dc:date>2017-05-17T06:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Raster files</title>
      <link>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535336#M2795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the equivalent tools from Arctoolbox since you have better control over the analysis properties in the Environments tab for every arctoolbox tool.&amp;nbsp; The raster calculator is nice... but get used to using the actual tools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do the focal statistic when the whole area is merged together... AND... if you do the mean you will end up with a floating point raster.&amp;nbsp; Do the majority or something so that you get an integer raster to maintain your integer classes!&lt;/P&gt;&lt;P&gt;The whole purpose of the venture is to get rid of the gaps at the edges while maintaining the input data type.&amp;nbsp; Don't lose sight of the important bits as you go along.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 06:59:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/merging-raster-files/m-p/535336#M2795</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-05-17T06:59:06Z</dc:date>
    </item>
  </channel>
</rss>

