Hello all,
First post after many years of lurking. I am currently building a workflow in python. I am trying to use IDW to create a wind direction map. The input is a fc containing the location of weatherstations and the recorded wind directions. When I run the IDW tool from arcgis itself it works fine. However, when I try to recreate the map using arcpy I keep getting a raster with a single value. All parameters are the same in both the arcgis desktop and the arcpy script.
Is there a known issue with IDW when using arcpy?
See extract from script below:
input_tbl = r'...windspeed.csv'
workspace = r'...\scratch.gdb'
#environment settings
arcpy.env.workspace = workspace
arcpy.env.overwriteOutput = True
spatial_ref = arcpy.SpatialReference(4326)
out_weatherstations = arcpy.management.XYTableToPoint(input_tbl,'weather_stations','long','lat','',spatial_ref)
print('point created')
out_IDWdirection = arcpy.sa.Idw(out_weatherstations,
"direction_degrees",
2000,
2,
'VARIABLE 12',
None);
out_IDWdirection.save(r'/...IDW_direction')