<?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 Trying to convert a .csv with XY coordinates to .tiff raster in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/trying-to-convert-a-csv-with-xy-coordinates-to/m-p/1277817#M67880</link>
    <description>&lt;P&gt;I wish to take a .csv with lat long values for "fish catches" and rasterize the values to a .tiff for the sake of displaying the different concentration levels of the "Total_PCB" column. I created a function to calculate the latitude of each catch, based on the reference point given in the dataset, the NYC battery (&lt;SPAN&gt;-74.015700,&amp;nbsp;40.703160) (GCS_WGS_1984 for all points) and the "river mile" column giving exactly how many miles upstream from the battery this catch was. I want to create a raster that symbolizes the "Total_PCB" , perhaps as a choropleth. Right now I have the code listed below, but yield&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;ERROR 000055: Cannot create a Query Table for this workspace
Failed to execute (MakeXYEventLayer).&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;from arcpy.sa import *&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = r"C:\Users\aazma\Desktop\Incomplete(503)\Incomplete"&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;in_csv = "PCBs_in_Hudson_River_Fish_Data.csv"&lt;BR /&gt;out_raster = "output.tif"&lt;/P&gt;&lt;P&gt;layer_name = "temp_layer"&lt;BR /&gt;x_field = "X"&lt;BR /&gt;y_field = "Y"&lt;BR /&gt;spatial_reference = arcpy.SpatialReference(4326)&lt;BR /&gt;arcpy.MakeXYEventLayer_management(in_csv, x_field, y_field, layer_name, spatial_reference)&lt;/P&gt;&lt;P&gt;cellsize = 0.1&lt;BR /&gt;value_field = "value"&lt;BR /&gt;assignment_type = "MEAN"&lt;BR /&gt;arcpy.PointToRaster_conversion(layer_name, value_field, out_raster, assignment_type, value_field, cellsize)&lt;/P&gt;&lt;P&gt;arcpy.Delete_management(layer_name)&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2023 14:43:05 GMT</pubDate>
    <dc:creator>AlexanderZirilli</dc:creator>
    <dc:date>2023-04-12T14:43:05Z</dc:date>
    <item>
      <title>Trying to convert a .csv with XY coordinates to .tiff raster</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/trying-to-convert-a-csv-with-xy-coordinates-to/m-p/1277817#M67880</link>
      <description>&lt;P&gt;I wish to take a .csv with lat long values for "fish catches" and rasterize the values to a .tiff for the sake of displaying the different concentration levels of the "Total_PCB" column. I created a function to calculate the latitude of each catch, based on the reference point given in the dataset, the NYC battery (&lt;SPAN&gt;-74.015700,&amp;nbsp;40.703160) (GCS_WGS_1984 for all points) and the "river mile" column giving exactly how many miles upstream from the battery this catch was. I want to create a raster that symbolizes the "Total_PCB" , perhaps as a choropleth. Right now I have the code listed below, but yield&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;ERROR 000055: Cannot create a Query Table for this workspace
Failed to execute (MakeXYEventLayer).&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;from arcpy.sa import *&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = r"C:\Users\aazma\Desktop\Incomplete(503)\Incomplete"&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;in_csv = "PCBs_in_Hudson_River_Fish_Data.csv"&lt;BR /&gt;out_raster = "output.tif"&lt;/P&gt;&lt;P&gt;layer_name = "temp_layer"&lt;BR /&gt;x_field = "X"&lt;BR /&gt;y_field = "Y"&lt;BR /&gt;spatial_reference = arcpy.SpatialReference(4326)&lt;BR /&gt;arcpy.MakeXYEventLayer_management(in_csv, x_field, y_field, layer_name, spatial_reference)&lt;/P&gt;&lt;P&gt;cellsize = 0.1&lt;BR /&gt;value_field = "value"&lt;BR /&gt;assignment_type = "MEAN"&lt;BR /&gt;arcpy.PointToRaster_conversion(layer_name, value_field, out_raster, assignment_type, value_field, cellsize)&lt;/P&gt;&lt;P&gt;arcpy.Delete_management(layer_name)&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 14:43:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/trying-to-convert-a-csv-with-xy-coordinates-to/m-p/1277817#M67880</guid>
      <dc:creator>AlexanderZirilli</dc:creator>
      <dc:date>2023-04-12T14:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to convert a .csv with XY coordinates to .tiff raster</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/trying-to-convert-a-csv-with-xy-coordinates-to/m-p/1277870#M67889</link>
      <description>&lt;P&gt;Have you missed the full filepath to your CSV? '&lt;SPAN&gt;in_csv'&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 16:29:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/trying-to-convert-a-csv-with-xy-coordinates-to/m-p/1277870#M67889</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2023-04-12T16:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to convert a .csv with XY coordinates to .tiff raster</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/trying-to-convert-a-csv-with-xy-coordinates-to/m-p/1278592#M67968</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added file paths, AND r" ", but still get the same error, at line 15 instead of line 7 this time. Some other solutions online suggest pandas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;from arcpy.sa import *&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = r"C:\Users\aazma\Desktop\Incomplete(503)\Incomplete"&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;in_csv = r"C:\Users\aazma\Desktop\Incomplete(503)\Incomplete\PCBs_in_Hudson_River_Fish_Data.csv"&lt;BR /&gt;out_raster = r"C:\Users\aazma\Desktop\Incomplete(503)\Incomplete\output.tif"&lt;/P&gt;&lt;P&gt;layer_name = "temp_layer"&lt;BR /&gt;x_field = "X"&lt;BR /&gt;y_field = "Y"&lt;BR /&gt;spatial_reference = arcpy.SpatialReference(4326)&lt;BR /&gt;arcpy.MakeXYEventLayer_management(in_csv, x_field, y_field, layer_name, spatial_reference)&lt;/P&gt;&lt;P&gt;cellsize = 0.1&lt;BR /&gt;value_field = "value"&lt;BR /&gt;assignment_type = "MEAN"&lt;BR /&gt;arcpy.PointToRaster_conversion(layer_name, value_field, out_raster, assignment_type, value_field, cellsize)&lt;/P&gt;&lt;P&gt;arcpy.Delete_management(layer_name)&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;from arcpy.sa import *&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = r"C:\Users\aazma\Desktop\Incomplete(503)\Incomplete"&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;in_csv = r"C:\Users\aazma\Desktop\Incomplete(503)\Incomplete\PCBs_in_Hudson_River_Fish_Data.csv"&lt;BR /&gt;out_raster = "output.tif"&lt;/P&gt;&lt;P&gt;layer_name = "temp_layer"&lt;BR /&gt;x_field = "X"&lt;BR /&gt;y_field = "Y"&lt;BR /&gt;spatial_reference = arcpy.SpatialReference(4326)&lt;BR /&gt;arcpy.MakeXYEventLayer_management(in_csv, x_field, y_field, layer_name, spatial_reference)&lt;/P&gt;&lt;P&gt;cellsize = 0.1&lt;BR /&gt;value_field = "value"&lt;BR /&gt;assignment_type = "MEAN"&lt;BR /&gt;arcpy.PointToRaster_conversion(layer_name, value_field, out_raster, assignment_type, value_field, cellsize)&lt;/P&gt;&lt;P&gt;arcpy.Delete_management(layer_name)&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 22:30:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/trying-to-convert-a-csv-with-xy-coordinates-to/m-p/1278592#M67968</guid>
      <dc:creator>AlexanderZirilli</dc:creator>
      <dc:date>2023-04-13T22:30:34Z</dc:date>
    </item>
  </channel>
</rss>

