Hi,
I have an issue with running arcpy.sa.Kriging when defining cell_size. In ArcGIS Pro it is all running smoothly. When I run this code in a notebook or anywhere else it runs infinitely.
When cell_size is not set, everything is running fine. What is the issue?
# List of columns to interpolate
columns_to_interpolate = ["R","R_1", "R_2", "R_3", "R_4", "R_5", "R_6", "R_7", "R_8", "R_9", "R_10", "R_11", "R_12"]
cell_size = 0.1
# Loop through each column and perform kriging interpolation
for column in columns_to_interpolate:
in_field = column
out_raster_name = f"R_factor_MR_SK_{column}"
# Perform kriging interpolation
print(f"Interpolating column {column}...")
KM = arcpy.sa.KrigingModelOrdinary("CIRCULAR")
kriging_output = arcpy.sa.Kriging("R_factor", in_field, KM, cell_size) # unfortunately, custom cell size is not working at the moment
kriging_output.save(out_raster_name)
print(f"Interpolation completed for column {column}.")