<?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: Best methods for extracting raster cell values to points from Mosaic Dataset in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/best-methods-for-extracting-raster-cell-values-to/m-p/747241#M24525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured out a way to get this to work. For some reason, and I have no idea why, if you run the ExtractMultiValuesToPoints from a mosaic dataset you end up with values not found in the raster cells. I'm still not sure the source of the values. However, if you run it again with the exact same data you will get the desired results. I modified my above script to so that the ExtractMultiValuesToPoints uses the mosaic dataset twice. Also, I determined there is no need to make the mosaic layer, the tool works from the mosaic dataset alone. This solution will give you two new columns in the attribute table; one with the unknown values and the second with the desired values. Depending on how many files you are running you can either manually delete the extra column from each table or just modify the script to delete the first column of unknown values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcpy &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; env
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; os

&lt;SPAN class="comment token"&gt;#create a list of all folders in the directory&lt;/SPAN&gt;
directory &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"path to folders with rasters and mosaic datasets"&lt;/SPAN&gt;
folders &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listdir&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;directory&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#create list of the point feature classes&lt;/SPAN&gt;
env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'path to point feature classes'&lt;/SPAN&gt;
files &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListFeatureClasses&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#iterate the point files and mosaic datasets&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CheckOutExtension&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Spatial"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; j &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; zip&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;folders&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; files&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    in_workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; i&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"path to each geodatabase"&lt;/SPAN&gt;
    in_mosaic_dataset_name &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"mosaic dataset name"&lt;/SPAN&gt;
    path_to_raster &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; in_workspace&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;in_mosaic_dataset_name
    rasterlist &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;path_to_raster&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; path_to_raster&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; 
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sa&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ExtractMultiValuesToPoints&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;j&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; outlayername&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone knows why the initial run gives you the unknown values, or where those values come from, please let me know.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 07:46:53 GMT</pubDate>
    <dc:creator>adamwade1</dc:creator>
    <dc:date>2021-12-12T07:46:53Z</dc:date>
    <item>
      <title>Best methods for extracting raster cell values to points from Mosaic Dataset</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/best-methods-for-extracting-raster-cell-values-to/m-p/747234#M24518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have roughly 50 mosaic datasets with 50 corresponding point feature classes. My goal is to append the raster cell value (elevation) to the overlying point. The mosaic datasets are all from a single band rasters (elevation).&amp;nbsp; I've been trying to iterate the process in arcpy, but I've been having mixed results. I'm running ArcGIS Desktop 10.6.1, and all the feature classes and mosaic datasets are in the same projection. When I run my script I'll get the results I want for the first few iterations, but then the remaining point feature classes contain extracted values that don't exist within any of the rasters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure on the best method to extract values from a mosaic dataset. The one way that seems to work is to make a a mosaic layer from the mosaic dataset. I've been creating the mosaic layer in the same geodatabase where the point feature classes are stored and then running extraction.&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcpy &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; env
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; os

&lt;SPAN class="comment token"&gt;#create a list of all folders in the directory&lt;/SPAN&gt;
directory &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"path to folders with rasters and mosaic datasets"&lt;/SPAN&gt;
folders &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listdir&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;directory&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#create list of the point feature classes&lt;/SPAN&gt;
env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'path to point feature classes'&lt;/SPAN&gt;
files &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListFeatureClasses&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;


point_path &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"path to point feature classes"&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;#for use in creating the mosaic layer&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CheckOutExtension&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Spatial"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; j &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; zip&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;folders&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; files&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    in_workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; i&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"path to each geodatabase"&lt;/SPAN&gt;
    in_mosaic_dataset_name &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"mosaic dataset name"&lt;/SPAN&gt;
    path_to_raster &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; in_workspace&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;in_mosaic_dataset_name
    outlayername &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; point_path&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;in_mosaic_dataset_name
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeMosaicLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;path_to_raster&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;outlayername&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sa&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ExtractMultiValuesToPoints&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;j&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; outlayername&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've run this both in the python window of ArcMap and in spyder, and in both instances I run into problems. The first few iterations work fine and then the raster cell values that are extracted do not exist in any of the rasters. Is there a better way to extract raster cell values from a mosaic dataset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:46:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/best-methods-for-extracting-raster-cell-values-to/m-p/747234#M24518</guid>
      <dc:creator>adamwade1</dc:creator>
      <dc:date>2021-12-12T07:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Best methods for extracting raster cell values to points from Mosaic Dataset</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/best-methods-for-extracting-raster-cell-values-to/m-p/747235#M24519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe values from secondary rasters are being applied? When you create the mosaic layer you could use a query. There also might be overlap operations not being controlled?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 21:17:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/best-methods-for-extracting-raster-cell-values-to/m-p/747235#M24519</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-01-28T21:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Best methods for extracting raster cell values to points from Mosaic Dataset</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/best-methods-for-extracting-raster-cell-values-to/m-p/747236#M24520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to happen starting with the third iteration. The first two iterations give me expected values, and then the problem starts. If I rerun the code starting at the previous third iteration I'll again get the expected values for two more iterations and then it goes bad again. So it's not a problem with rasters. How would I check for overlap operations?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 21:33:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/best-methods-for-extracting-raster-cell-values-to/m-p/747236#M24520</guid>
      <dc:creator>adamwade1</dc:creator>
      <dc:date>2020-01-28T21:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Best methods for extracting raster cell values to points from Mosaic Dataset</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/best-methods-for-extracting-raster-cell-values-to/m-p/747237#M24521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the help it seems like the extract multi value to point append the raster values to the input points? Negating any iteration. Unless I'm looking at old syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script seems to be trying to create point outputs for each raster if I'm reading it right?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies if I'm reading it wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 21:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/best-methods-for-extracting-raster-cell-values-to/m-p/747237#M24521</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-01-28T21:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Best methods for extracting raster cell values to points from Mosaic Dataset</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/best-methods-for-extracting-raster-cell-values-to/m-p/747238#M24522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script does an extraction for about 50 different point featureclasses over 50 different mosaic datasets. It does exactly what I need for two iterations and then doesn't. I've had similar problems doing the same operation using the toolbox. I'll run the tool using a point feature class and mosaic dataset and get completely unexpected values. I'll run it again with the same data and it will work fine. It must be something with reading the mosaic datasets. It's driving me nuts.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 22:16:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/best-methods-for-extracting-raster-cell-values-to/m-p/747238#M24522</guid>
      <dc:creator>adamwade1</dc:creator>
      <dc:date>2020-01-28T22:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Best methods for extracting raster cell values to points from Mosaic Dataset</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/best-methods-for-extracting-raster-cell-values-to/m-p/747239#M24523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Haha! What about running it through the source rasters of your mosaic datasets?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the OID field of your points could be getting changed if that's giving misleading info.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 22:20:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/best-methods-for-extracting-raster-cell-values-to/m-p/747239#M24523</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-01-28T22:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Best methods for extracting raster cell values to points from Mosaic Dataset</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/best-methods-for-extracting-raster-cell-values-to/m-p/747240#M24524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are hundreds of rasters in each mosaic, so I would end up with hundreds of new new columns in each point feature class. I only want one column with all the values. I could concatenate all the columns into one, and afterward delete the previous columns but that's a serious amount of extra time, and defeats the purpose of using a mosaic dataset. The processes obviously works, but runs into a problem during the iteration. Just not sure what's causing the problem.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 22:31:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/best-methods-for-extracting-raster-cell-values-to/m-p/747240#M24524</guid>
      <dc:creator>adamwade1</dc:creator>
      <dc:date>2020-01-28T22:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Best methods for extracting raster cell values to points from Mosaic Dataset</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/best-methods-for-extracting-raster-cell-values-to/m-p/747241#M24525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured out a way to get this to work. For some reason, and I have no idea why, if you run the ExtractMultiValuesToPoints from a mosaic dataset you end up with values not found in the raster cells. I'm still not sure the source of the values. However, if you run it again with the exact same data you will get the desired results. I modified my above script to so that the ExtractMultiValuesToPoints uses the mosaic dataset twice. Also, I determined there is no need to make the mosaic layer, the tool works from the mosaic dataset alone. This solution will give you two new columns in the attribute table; one with the unknown values and the second with the desired values. Depending on how many files you are running you can either manually delete the extra column from each table or just modify the script to delete the first column of unknown values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcpy &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; env
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; os

&lt;SPAN class="comment token"&gt;#create a list of all folders in the directory&lt;/SPAN&gt;
directory &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"path to folders with rasters and mosaic datasets"&lt;/SPAN&gt;
folders &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listdir&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;directory&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#create list of the point feature classes&lt;/SPAN&gt;
env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'path to point feature classes'&lt;/SPAN&gt;
files &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListFeatureClasses&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#iterate the point files and mosaic datasets&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CheckOutExtension&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Spatial"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; j &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; zip&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;folders&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; files&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    in_workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; i&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"path to each geodatabase"&lt;/SPAN&gt;
    in_mosaic_dataset_name &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"mosaic dataset name"&lt;/SPAN&gt;
    path_to_raster &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; in_workspace&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;in_mosaic_dataset_name
    rasterlist &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;path_to_raster&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; path_to_raster&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; 
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sa&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ExtractMultiValuesToPoints&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;j&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; outlayername&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone knows why the initial run gives you the unknown values, or where those values come from, please let me know.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:46:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/best-methods-for-extracting-raster-cell-values-to/m-p/747241#M24525</guid>
      <dc:creator>adamwade1</dc:creator>
      <dc:date>2021-12-12T07:46:53Z</dc:date>
    </item>
  </channel>
</rss>

