Having difficulty with the following script. A couple of variables to know about are not shown but have been run prior to this snippet, they are:
outrasterpath = r"S:/General-Offices-GO-Trans/SLR-Mapping/GIS_Projects_2018/Smart_T_Line_Model/geodata/TEST_RASTERCLIP.gdb/"
outrastertopoint = r"S:/General-Offices-GO-Trans/SLR-Mapping/GIS_Projects_2018/Smart_T_Line_Model/geodata/TEST_RASTERTOPOINT.gdb/"
arcpy<SPAN class="punctuation token">.</SPAN>env<SPAN class="punctuation token">.</SPAN>workspace <SPAN class="operator token">=</SPAN> outrasterpath
rasterList <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>ListRasters<SPAN class="punctuation token">(</SPAN><SPAN class="string token">"*"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"GRID"</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">for</SPAN> raster <SPAN class="keyword token">in</SPAN> rasterList<SPAN class="punctuation token">:</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>conversion<SPAN class="punctuation token">.</SPAN>RasterToPoint<SPAN class="punctuation token">(</SPAN>raster<SPAN class="punctuation token">,</SPAN> outrastertopoint <SPAN class="operator token">+</SPAN> raster<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"Pixel Value"</SPAN><SPAN class="punctuation token">)</SPAN>
Traceback <SPAN class="punctuation token">(</SPAN>most recent call last<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">:</SPAN>
File <SPAN class="string token">"<string>"</SPAN><SPAN class="punctuation token">,</SPAN> line <SPAN class="number token">2</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">in</SPAN> <SPAN class="operator token"><</SPAN>module<SPAN class="operator token">></SPAN>
File <SPAN class="string token">"c:\program files\arcgis\pro\Resources\arcpy\arcpy\conversion.py"</SPAN><SPAN class="punctuation token">,</SPAN> line <SPAN class="number token">195</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">in</SPAN> RasterToPoint
<SPAN class="keyword token">raise</SPAN> e
File <SPAN class="string token">"c:\program files\arcgis\pro\Resources\arcpy\arcpy\conversion.py"</SPAN><SPAN class="punctuation token">,</SPAN> line <SPAN class="number token">192</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">in</SPAN> RasterToPoint
retval <SPAN class="operator token">=</SPAN> convertArcObjectToPythonObject<SPAN class="punctuation token">(</SPAN>gp<SPAN class="punctuation token">.</SPAN>RasterToPoint_conversion<SPAN class="punctuation token">(</SPAN><SPAN class="operator token">*</SPAN>gp_fixargs<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">(</SPAN>in_raster<SPAN class="punctuation token">,</SPAN> out_point_features<SPAN class="punctuation token">,</SPAN> raster_field<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="token boolean">True</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN>
File <SPAN class="string token">"c:\program files\arcgis\pro\Resources\arcpy\arcpy\geoprocessing\_base.py"</SPAN><SPAN class="punctuation token">,</SPAN> line <SPAN class="number token">496</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">in</SPAN> <SPAN class="operator token"><</SPAN><SPAN class="keyword token">lambda</SPAN><SPAN class="operator token">></SPAN>
<SPAN class="keyword token">return</SPAN> <SPAN class="keyword token">lambda</SPAN> <SPAN class="operator token">*</SPAN>args<SPAN class="punctuation token">:</SPAN> val<SPAN class="punctuation token">(</SPAN><SPAN class="operator token">*</SPAN>gp_fixargs<SPAN class="punctuation token">(</SPAN>args<SPAN class="punctuation token">,</SPAN> <SPAN class="token boolean">True</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN>
arcgisscripting<SPAN class="punctuation token">.</SPAN>ExecuteError<SPAN class="punctuation token">:</SPAN> Failed to execute<SPAN class="punctuation token">.</SPAN> Parameters are <SPAN class="operator token">not</SPAN> valid<SPAN class="punctuation token">.</SPAN>
ERROR <SPAN class="number token">000860</SPAN><SPAN class="punctuation token">:</SPAN> Input raster<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">is</SPAN> <SPAN class="operator token">not</SPAN> the type of Composite Geodataset<SPAN class="punctuation token">,</SPAN> <SPAN class="operator token">or</SPAN> does <SPAN class="operator token">not</SPAN> exist<SPAN class="punctuation token">.</SPAN>
ERROR <SPAN class="number token">001000</SPAN><SPAN class="punctuation token">:</SPAN> Field<SPAN class="punctuation token">:</SPAN> Field Pixel Value does <SPAN class="operator token">not</SPAN> exist
Failed to execute <SPAN class="punctuation token">(</SPAN>RasterToPoint<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
A few other bits of info. I have tried "VALUE", "Pixel value", and "Stretch.Pixel Value" for the last argument, none work.
Have left the () with no inputs on Line 2 with no luck.
Thanks for any help!