<?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: Extract-by-Mask tool outputs a raster with noData values? in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-mask-tool-outputs-a-raster-with-nodata/m-p/591767#M8592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Dan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Sorry, I am a bit new to ArcMap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are some screenshots of my study area.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original DEM, input raster to&amp;nbsp;Extract-by-Mask (after running Slope on the DEM) and mask (building shapefile) have the geographic coordinate system “GCS_GDA_1994”. So they have unprojected coordinates, right? The slope tool was run on the DEM with this geographic coordinate system, so not projected data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The building shapefile represents a very small area on the DEM with a small number of buildings (see Study_Area2 screenshot).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To run “Extract-by-Mask”, do both the input raster and mask have to be in a projected coordinate system?&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/402784_Study_area1.PNG" style="width: 620px; height: 346px;" /&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/402785_Study_area2.PNG" style="width: 620px; height: 398px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2018 09:02:47 GMT</pubDate>
    <dc:creator>ChathurikaMediwaththe</dc:creator>
    <dc:date>2018-04-24T09:02:47Z</dc:date>
    <item>
      <title>Extract-by-Mask tool outputs a raster with noData values?</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-mask-tool-outputs-a-raster-with-nodata/m-p/591765#M8590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ArcMap 10.3.1 Desktop app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to run ‘Extract-By-Mask’ tool on a raster dataset. The input raster is generated by running “Slope” tool on a DEM which I downloaded online. The input mask is a polygon shapefile which has area information of buildings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run “Extract-by-Mask”, this produces the output raster with layer property values from -3.40282e+038 to 3.40282e+038 which means noData. Also, the output raster is not visible on ArcMap. Because of this reason, the next step in my code, which is “Extract-by-Attributes” on the output raster of “Extract-by-Mask”, gives me the following error in ArcPy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;“ERROR 010423: D:\Slope\slpbldg does not have valid statistics as required by the operation. Failed to execute (ExtractByAttributes).”&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached screenshots of the Python code I used to run Extract-by-Mask and the input&amp;nbsp;(slpraw) and output rasters (slpbldg) as visible on ArcMap table of contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not just with Extract-by-Mask, I also noticed that when I try to resample the original DEM to a different resolution (cell size(X,Y) from (0.0008333, 0.000833) to (1,1)) using the “resample” tool, the output DEM cannot also visible on ArcMap and has noData layer property values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me out to resolve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this something to do with the original DEM? The original DEM has 20383 columns and 24013 rows, GRID format, cell size (X, Y) 0.000833333, 0.000833333.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 01:50:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-mask-tool-outputs-a-raster-with-nodata/m-p/591765#M8590</guid>
      <dc:creator>ChathurikaMediwaththe</dc:creator>
      <dc:date>2018-04-24T01:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extract-by-Mask tool outputs a raster with noData values?</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-mask-tool-outputs-a-raster-with-nodata/m-p/591766#M8591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You seem to be working with unprojected coordinates (ie decimal degrees) was this accounted for when deriving the slope? or was it determined using projected data?&lt;/P&gt;&lt;P&gt;If you extract by a mask, then nodata values are expected unless your mask was perfectly rectangular and aligned with the X/Y axes.&amp;nbsp; Do you have an image of your study area with the mask?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There seems to be some confusion on the use of resample... You are trying to go from a resolution of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt; (0.0008333 degrees, 0.000833 degrees) to (1 degree,1 degree))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;That is a pretty big resampling and unless your study area is much bigger than 1 degree X 1 degree it isn't surprising that you don't see much of anything.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;Can you clarify your procedures prior to code examinations, just to make sure you are working with the correct units etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 02:08:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-mask-tool-outputs-a-raster-with-nodata/m-p/591766#M8591</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-04-24T02:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Extract-by-Mask tool outputs a raster with noData values?</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-mask-tool-outputs-a-raster-with-nodata/m-p/591767#M8592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Dan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Sorry, I am a bit new to ArcMap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are some screenshots of my study area.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original DEM, input raster to&amp;nbsp;Extract-by-Mask (after running Slope on the DEM) and mask (building shapefile) have the geographic coordinate system “GCS_GDA_1994”. So they have unprojected coordinates, right? The slope tool was run on the DEM with this geographic coordinate system, so not projected data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The building shapefile represents a very small area on the DEM with a small number of buildings (see Study_Area2 screenshot).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To run “Extract-by-Mask”, do both the input raster and mask have to be in a projected coordinate system?&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/402784_Study_area1.PNG" style="width: 620px; height: 346px;" /&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/402785_Study_area2.PNG" style="width: 620px; height: 398px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 09:02:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-mask-tool-outputs-a-raster-with-nodata/m-p/591767#M8592</guid>
      <dc:creator>ChathurikaMediwaththe</dc:creator>
      <dc:date>2018-04-24T09:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extract-by-Mask tool outputs a raster with noData values?</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-mask-tool-outputs-a-raster-with-nodata/m-p/591768#M8593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, extract the small portion of the dem from the larger one.&amp;nbsp; This can be done by a variety of means, like simply setting the Extent in Geoprocessing Properties then using Copy raster. &amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you have the area extracted, Project (raster) it using an appropriate cell size and projection (maybe a UTM for your area)&lt;/P&gt;&lt;P&gt;After projection, then perform Slope calculations... you X, Y and Z values will now have the same values (ie meters).&lt;/P&gt;&lt;P&gt;Proceed from there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 10:35:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-mask-tool-outputs-a-raster-with-nodata/m-p/591768#M8593</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-04-24T10:35:34Z</dc:date>
    </item>
  </channel>
</rss>

